# Code for setting 3EMA indicators

**URL:** <https://tradingqna.com/t/code-for-setting-3ema-indicators/9361>\
**Category:** Uncategorized\
**Created:** [February 10, 2017, 5:46am UTC](https://tradingqna.com/t/code-for-setting-3ema-indicators/9361 "2017-02-10T05:46:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdsjolly](https://tradingqna.com/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@sdsjolly](https://tradingqna.com/u/sdsjolly)\
**Post date:** [February 10, 2017, 5:46am UTC](https://tradingqna.com/t/code-for-setting-3ema-indicators/9361/1 "2017-02-10T05:46:14Z")

</div>

hi,  
I want to backtest 3EMA(3,15 & 51) indicators to generate buy or sell signals.The strategy should be this:  
1.For buying – 3EMA crosses 15 & 51  
2.For selling – 3EMA crosses 15 & 51 on downside.

Please help me with the code of this strategy so that I can backtest it.  
Thanks
