Comment on Code your Technical Analysis strategy

Nithin Kamath commented on 12 Jun 2013, 08:42 AM

Deepak,

When you write a strategy you don’t choose the time frame. You choose the time frame when you are going live. Check this blog on Managing your script

Also to set how you want to buy once the signal has initiated a trade, use the alert preferences mentioned on the blog.

When you are backtesting, you will get an intraday chart with 1 min by default, change this to 5 mins and then backtest the strategy.

Your code is pretty simple and explained above:

Buy: EMA(Close,13)>EMA(Close,50)

Buy exit: 0

Sell: EMA(Close,13)<EMA(Close,50)

Sell exit: 0

View the full comment thread »