Could you please help me with the code, i have strategy with EMA,SMA,MACD & Aroon indicators.
I was able to see the result with below code But the result is not getting matched with the graph
CROSSOVER(MACD(12,26,9,EXPONENTIAL),MACDSIGNAL(12,26,9,EXPONENTIAL)) AND CROSSOVER(EMA(CLOSE,3),SMA(CLOSE,34)) AND AroonUp(14) > AND AroonDown(14)
can you explain how you are comparing, are you checking with backtest on chart with create scripted alerts? alerts will be generated only when condition matches,
you can use advanced web version of streak for backtesting and scanner, try streak.zerodha.com
I am doing backtest using zerodha PI, for example for an axis bank at 1:45PM
SMA, EMA, MACD, Aroon all the indicators are getting matched But the result was different in PI
My requirement of buy is
- SMA- 34 crosses EMA-3
- MACD (12,26,9) should be crossed
- Aroon should cross -ve line
if all the indicators matches then it should be in result rght.
and exit should depends on MACD cross over
if you are backtesting on pi, you can check the indicators plotted on the chart of pi and verify the results, buy signal follows by sell and vise-versa, you can not compare with kite charts as charting libraries are different,
you can try it in streak and check.