Comment on algoZ- a simple example

surya_talkin commented on 01 Sep 2014, 11:39 PM

i want a to
BUY : when previous candle’s low is below the lower bollinger band and current candle is within the previous candle ( Low > Ref(low, 1) and high < ref(high, 1) )

SELL : when previous candle's high is above the upper bollinger band and current candle is within the previous candle range

I've tried this

BUY: (REF(LOW,1) Ref(low, 1)) and (high BBT(CLOSE,20,2,EXPONENTIAL)) AND (Low > Ref(low, 1) and high < ref(high, 1))
SELL EXIT:0

not giving the correct signal ( I've checked the time interval also )

View the full comment thread »