Amit ji ,
Kindly check the formula once... Pin bar are not selected properly.
My requirement
Bullish Pin bar (Close candle) should be outside bollinger band = Buy
Bearish Pin bar (Close candle) Should be Outside bolllinger band = Sell
Thanx you
Kindly check the formula once... Pin bar are not selected properly.
My requirement
Bullish Pin bar (Close candle) should be outside bollinger band = Buy
Bearish Pin bar (Close candle) Should be Outside bolllinger band = Sell
Thanx you
Check this and let me know.
Code:
blpin = (((H-L)>6*(O-C)) AND ((C-L)/(.001+H-L)>0.6) AND ((O-L)/(.001+H-L)>0.6));
brpin = (((H-L)>6*(O-C)) AND ((H-C)/(.001+H-L)>0.7) AND ((H-O)/(.001+H-L)>0.7));
top1=BBandTop(20,2);
bot1=BBandBot(20,2);
Buy=C<bot1 AND blpin;
Sell=C>top1 AND brpin;
Filter=Buy OR Sell;
AddColumn(IIf(Buy,BuyPrice,Null)," Buy Signal ", 6.2,1.2,colorGreen);
AddColumn(IIf(Sell,SellPrice,Null)," Sell Signal ",6.2,1.2,colorOrange);