Comment on Code your Technical Analysis strategy

Nithin Kamath commented on 26 Apr 2013, 10:16 AM

Jimmy, there is no features of trailing stop loss presently. But in your alert preference you can preset Stop loss%.

Crossover of exponential moving averages are probably what most technical analysts, start off with. With these crossovers, if markets are trending in a big way it makes you money but in flat markets can again chop you.

Your code:

Buy: EMA(Close,7)>EMA(Close,14) Sell: EMA(Close,7)<EMA(Close,14)

Buy exit: 0 Sell exit: 0

Again exit as 0 because for ex, if you bought nifty at 5800 on a crossover at 5850 if a sell crossover happens, you not only exit what you had both also short another.

Cheers,

View the full comment thread »