Request for a simple double-time-frame strategy to be coded for spread betting
I’d love to ask you clever folk on this forum for some help in creating a ProRealCode system that uses 2 timeframes, 200 EMAs and a MACD on the shorter time frame chart.
Here’s the proposed system for testing on EUR/USD (and other major FX pairs):
LONG TRADE
If price is > 200EMA on DAILY chart then execute LONG only trades
[and]
If price is > 200EMA on 30 min chart
[and]
If there’s a bullish cross on the MACD on the 30 min chart (where the 12ma moves up through the 26ma regardless of where it is).
[If ALL of the above, then]
BUY 1 / pip on next candle open
STOP LOSS: 50 pips (Spread betting, so not using ‘LOTS’)
TAKE PROFIT: 100 pips (Spread betting, so not using ‘LOTS’)
SHORT TRADE
If price is < 200EMA on DAILY chart then execute SHORT only trades
[and]
If price is < 200EMA on 30 min chart
[and]
If there’s a bearish cross on the MACD on the 30 min chart (where the 12ma moves down through the 26ma regardless of where it is).
[If ALL of the above, then]
SELL 1 / pip on next candle open
STOP LOSS: 50 pips (Spread betting, so not using ‘LOTS’)
TAKE PROFIT: 100 pips (Spread betting, so not using ‘LOTS’)
BONUS POINTS
I’d also love to see how this model would work if used with a TRAILING STOP LOSS rather than a fixed risk/reward. If you felt inclined to also include a version of the code with a trailing stop loss then, I’d probably want to test it trailing by say 25 pips.
QUESTIONS?
I’m open to them 🙂
Thank you so much for taking the time to read and consider this, I’d be very grateful for any help or comments on this from the community.
All the best!
Matt