I’ve started this thread for help / discussions around the Strategy link below …
https://www.prorealcode.com/prorealtime-trading-strategies/trendfollower-eurusd-5m/
I don’t get anything like the results shown on the link above, anybody offer any reason why or any thoughts at all please?
Attached are results I get with the three versions shown on the link above.
I’ve changed times to suit my Platform (from UTC+2 to UTC+1).
It’s got to be something simple I’m missing surely?
Many Thanks
GraHal
I felt the need to implement a Moneymanagement-System. Because I cant Prog this by myself, I took Kasper’s reinvestment version Code from “ALE’s Fractals breakout intraday Strategy EUR/USD 1H” and ty to implement it. Mayby it looks a little bit rudimentary, but it seems to be working! I also take some different Numbers. Does someone get similar results?
// Timeframe M15
// EURUSD (IG - Markets)
// Spread 1,5 pips
DEFPARAM CumulateOrders = False
DEFPARAM FLATBEFORE = 080000
DEFPARAM FLATAFTER = 210000
Reinvest=1
if reinvest then
Capital = 10000
Risk = 1//0.1//in % pr position
StopLoss = 26
REM Calculate contracts
equity = Capital + StrategyProfit
maxrisk = round(equity*(Risk/100))
MAXpositionsize=5000
MINpositionsize=1
Positionsize= MAX(MINpositionsize,MIN(MAXpositionsize,abs(round((maxrisk/StopLoss)))))//*Pointsize))))
else
Positionsize=1
StopLoss = 26
Endif
IF (abs(close-open[2]) > 0.006) THEN
IF (close > open[2]) THEN
BUY positionsize CONTRACT AT MARKET
set stop loss stoploss*pointsize
SET TARGET pPROFIT 191
ENDIF
IF (close < open[2]) THEN
SELLSHORT positionsize CONTRACT AT MARKET
set stop loss stoploss*pointsize
SET TARGET pPROFIT 191
ENDIF
ENDIF
The result is not the same because the 60 pips comparison is not correctly calculated for your IG EUR/USD (1 decimal for that pair while it is coded with four ones in the code), just replace the line 25 of the code provided by imokdesign above :
IF (abs(close-open[2]) > 60*pointsize) THEN
Hi ive been messing around with the code, and went back to the original simple code as it suited my risk profile better. I also didn’t like the size variation on the latest version, or the draw down.
After some optimization i came up with this, which seems not to bad, but would be happy to listen to your views.
// Timeframe M5
// EURUSD (IG - Markets)
// Spread 1 pips
DEFPARAM CumulateOrders = False
DEFPARAM FLATBEFORE = 010000
DEFPARAM FLATAFTER = 210000
daysforbiddenentry = openDayofweek = 6 or opendayofweek = 0
IF (abs(close-open[8]) > 51*pointsize) THEN
IF (close > open[8]) and not daysforbiddenentry THEN
BUY 1 CONTRACTS AT MARKET
SET STOP pLOSS 50
SET TARGET pPROFIT 90
ENDIF
IF (close < open[8]) and not daysforbiddenentry THEN
SELLSHORT 1 CONTRACTS AT MARKET
SET STOP pLOSS 35
SET TARGET pPROFIT 90
ENDIF
ENDIF
Sorry i forgot to mention, this is for EUR/USD and works best on 15 min. Will get back with some live trade results if anyone is interested.
Of course, i am very interested at your life results. 🤗