EMA Crossover system -- Simple yet very effective
Hello Friends,
I'm working on three EMA cross over system & my initial testing (back testing as well live testing) yielded me some fantastic returns. This makes me think why this can't be used be MFs or big institutes as it can easily multiply your wealth manifold.
To me it looks like that it is almost risk free (with sufficient capital & proper position sizing) and earning is way beyond my expectations. Yes this system can be improved in big way. I need comments/inputs & most importantly ideas to improve for everybody's benefit.
Primary consideration
1. Need very few trades
2. No less than 30 minutes period.. higher time frame is preferred
3. Strict stop loss but remain in trade for long (I initally started with 100 points trailing)
4. Trade primarily in Nifty only
Basic rules about the system
1. Three EMAs – I call them FastAvg (FA), SlowAvg (SA) & StopAvg (ST)
2. Buy when FA crosses SA from below
3. Sell when FA crosses ST from above or at SL
4. Short when FA crosses SA from above
5. Cover when FA crosses ST from below or at SL
All actions are to be taken at the close of candle (30-min) only.
Risk management:
Initial stop loss of 20 points only.
Trailing stop loss 50 points
Money Management:
I suggest starting with 1 Lac & trading strictly 2 lots of Nifty.
Results:
See results attached.
Please understand that these results are achieved by trading 2 lots of nifty all the time. Period is from 16-Aug to 15-Apr (8 months). Also add 40K in profits as Amibroker sometimes takes lot size as one (don't know why -- may be my programming mistake -- I need help here -- see last para)
Also, I've purposefully not mentioned EMA values. As to me they are not important. With little testing & understanding your trading profile, you can optimize numbers. I actually can generate these results with lot of different combinations. Key here is to remain in trade for long & cut the losses if trade is going wrong.
Scope for improvements…
1. This system is taking long & short trade alternatively. Thus we miss quite a few entries. For example… we entered in a long trade but hit SL – in this case now our next trade is short trade only & if market is trending upwards than we may miss entire move. Solution here could be another entry signal – may be?
2. Also while using this system, you may notice that few trades are such where trades are reversed (from short to long or otherwise) in 3-4 candles only. I thought of using delayed entry (after 20 points or so) or angle of crossover (for example if angle is more than 30 degree than only go for trade).
I think if above two can be achieved than it would be very effective system.
Need help for better AFL programming
I also need help to program following points in better way…
1. Visual signal for entry & exits
2. Info box to show details such as entry price, current profit, current sl etc.
3. Position sizing logic – I’ve taken this from some other AFL… however AmiBroker arbitrarily takes one or two lots… or I could not understand logic…
Currently my syntax is as below...
SetOption("MaxOpenPositions",1);
RoundLotSize = 50;
SetOption("MinShares",RoundLotSize);
PositionSize = C*50*2;
I appreciate discussion on improving this system & also other aspects of AFL coding.
Request to Seniors/AFL experts : your help/comments needed & will be highly appreciated.
Request to other members: Please engage seniors/AFL experts to this discussion & let's have a meaningful discussion.
Thank you all.
Hello Friends,
I'm working on three EMA cross over system & my initial testing (back testing as well live testing) yielded me some fantastic returns. This makes me think why this can't be used be MFs or big institutes as it can easily multiply your wealth manifold.
To me it looks like that it is almost risk free (with sufficient capital & proper position sizing) and earning is way beyond my expectations. Yes this system can be improved in big way. I need comments/inputs & most importantly ideas to improve for everybody's benefit.
Primary consideration
1. Need very few trades
2. No less than 30 minutes period.. higher time frame is preferred
3. Strict stop loss but remain in trade for long (I initally started with 100 points trailing)
4. Trade primarily in Nifty only
Basic rules about the system
1. Three EMAs – I call them FastAvg (FA), SlowAvg (SA) & StopAvg (ST)
2. Buy when FA crosses SA from below
3. Sell when FA crosses ST from above or at SL
4. Short when FA crosses SA from above
5. Cover when FA crosses ST from below or at SL
All actions are to be taken at the close of candle (30-min) only.
Risk management:
Initial stop loss of 20 points only.
Trailing stop loss 50 points
Money Management:
I suggest starting with 1 Lac & trading strictly 2 lots of Nifty.
Results:
See results attached.
Please understand that these results are achieved by trading 2 lots of nifty all the time. Period is from 16-Aug to 15-Apr (8 months). Also add 40K in profits as Amibroker sometimes takes lot size as one (don't know why -- may be my programming mistake -- I need help here -- see last para)
Also, I've purposefully not mentioned EMA values. As to me they are not important. With little testing & understanding your trading profile, you can optimize numbers. I actually can generate these results with lot of different combinations. Key here is to remain in trade for long & cut the losses if trade is going wrong.
Scope for improvements…
1. This system is taking long & short trade alternatively. Thus we miss quite a few entries. For example… we entered in a long trade but hit SL – in this case now our next trade is short trade only & if market is trending upwards than we may miss entire move. Solution here could be another entry signal – may be?
2. Also while using this system, you may notice that few trades are such where trades are reversed (from short to long or otherwise) in 3-4 candles only. I thought of using delayed entry (after 20 points or so) or angle of crossover (for example if angle is more than 30 degree than only go for trade).
I think if above two can be achieved than it would be very effective system.
Need help for better AFL programming
I also need help to program following points in better way…
1. Visual signal for entry & exits
2. Info box to show details such as entry price, current profit, current sl etc.
3. Position sizing logic – I’ve taken this from some other AFL… however AmiBroker arbitrarily takes one or two lots… or I could not understand logic…
Currently my syntax is as below...
SetOption("MaxOpenPositions",1);
RoundLotSize = 50;
SetOption("MinShares",RoundLotSize);
PositionSize = C*50*2;
I appreciate discussion on improving this system & also other aspects of AFL coding.
Request to Seniors/AFL experts : your help/comments needed & will be highly appreciated.
Request to other members: Please engage seniors/AFL experts to this discussion & let's have a meaningful discussion.
Thank you all.
Last edited: