Kindly provide code for
Highest candle value when CCI greater than zero and before it becomes negative AND
lowest candle value when CCI less than zero and before it becomes positive
Kindly provide code for
Highest candle value when CCI greater than zero and before it becomes negative AND
lowest candle value when CCI less than zero and before it becomes positive
hello trader,
not valid conditions for tradescript coding.
For the above given condition
CCI(12, SIMPLE) > 0 AND REF(CCI(12, SIMPLE), 1) < 0
Evaluates to true when the CCI has just moved into positive territory.
CCI(12, SIMPLE) < 0 AND REF(CCI(12, SIMPLE), 1) < 0
Evaluates to true when the CCI has just moved into negetive territory.
thnx again algo
HOW ABOUT MACD HISTOGRAM CODE WTH SAME CONDITION
ie Highest candle value when MACD HISTOGRAM greater than zero and before it becomes negative AND lowest candle value when MACD HISTOGRAM less than zero and before it becomes positive