Hello,
I would like to code a buy entry when the close is lower the low Bollinger band for two consecutive periods. I have coded this, but it not working; I appreciate any help, Thanks. Gaby
// Definition of code parameters
DEFPARAM CumulateOrders = False
Once COUNT = 0
// variables ===================================
LowBoll = Average[20](close)- (3*std[20](close))
// conditions ====================================
c1 = close < LowBoll
IF NOT onmarket AND c1 AND COUNT = 0 THEN
COUNT = 1
ELSIF NOT onmarket AND c1 AND COUNT =1 THEN
BUY 1 PERPOINT AT MARKET
COUNT = 0
ENDIF