CCI Code strategy

My Buying Strategy

CCI should be above zero

After CCI turns above zero i need one red candle and a green colour candle which closes above the red

And buy level above the green candle high

My Selling Strategy

CCI should be Below zero

After CCI turns below zero i need one Green candle and a Red colour candle which closes below the Green

And buy level below the red candle low

For the above given condition

Buy Script:

CCI(14,SIMPLE)>0 AND REF(CLOSE,2)<REF(OPEN,2) AND 
REF(CLOSE,1)<REF(OPEN,1) AND HIGH > REF(HIGH,1)

Sell Script:

CCI(14,SIMPLE)<0 AND REF(CLOSE,2)<REF(OPEN,2) AND 
REF(CLOSE,1)>REF(OPEN,1) AND LOW < REF(LOW,1)
1 Like

thanx algogeek