I’m new to zerodha and tradescript, please could you help in converting the below stratergy into tradescript.
Consider I have four values:Resistance 1, Resistance 2, Support 1 and Support 2.
Buy Signal:
The CROSSOVER of EMA 3 & EMA 13 needs to be between Resistance 1 and Resistance 2.
AND (EMA 3 & EMA 13) needs to be above EMA 33.
AND CCI needs to be greater than 100
Sell Signal:
The CROSSOVER of EMA 13 & EMA 3 needs to be between Support 1 and Support 2.
AND (EMA 13 & EMA 3) needs to be below EMA 33.
AND CCI needs to be lesser than 100
Thanks for responding but all the conditions are not met.
The main purpose of this question was to identify those scripts for which the CROSSOVER of EMA 3 & EMA 13 is between Resistance 1 and Resistance 2 - For Buy signal
AND
The CROSSOVER of EMA 13 & EMA 3 to be between Support 1 and Support 2 for Sell signal.
Please a code be provided for this
Support and resistance levels can not be defined with tradescript, you have to check the signals generated manually by adding support and resistance horizontal lines on charts