Trendfollower EUR/USD 5M
Forums › ProRealTime English forum › ProOrder support › Trendfollower EUR/USD 5M
- This topic has 5 replies, 4 voices, and was last updated 4 years ago by imokdesign.
-
-
05/19/2017 at 9:30 AM #36069
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
GraHal06/16/2017 at 3:35 PM #38456I 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?
12345678910111213141516171819202122232425262728293031323334353637// Timeframe M15// EURUSD (IG - Markets)// Spread 1,5 pipsDEFPARAM CumulateOrders = FalseDEFPARAM FLATBEFORE = 080000DEFPARAM FLATAFTER = 210000Reinvest=1if reinvest thenCapital = 10000Risk = 1//0.1//in % pr positionStopLoss = 26REM Calculate contractsequity = Capital + StrategyProfitmaxrisk = round(equity*(Risk/100))MAXpositionsize=5000MINpositionsize=1Positionsize= MAX(MINpositionsize,MIN(MAXpositionsize,abs(round((maxrisk/StopLoss)))))//*Pointsize))))elsePositionsize=1StopLoss = 26EndifIF (abs(close-open[2]) > 0.006) THENIF (close > open[2]) THENBUY positionsize CONTRACT AT MARKETset stop loss stoploss*pointsizeSET TARGET pPROFIT 191ENDIFIF (close < open[2]) THENSELLSHORT positionsize CONTRACT AT MARKETset stop loss stoploss*pointsizeSET TARGET pPROFIT 191ENDIFENDIF06/16/2017 at 4:24 PM #38461The 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 :
1IF (abs(close-open[2]) > 60*pointsize) THEN1 user thanked author for this post.
07/19/2017 at 4:10 PM #41089Hi 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.
1234567891011121314151617181920212223// Timeframe M5// EURUSD (IG - Markets)// Spread 1 pipsDEFPARAM CumulateOrders = FalseDEFPARAM FLATBEFORE = 010000DEFPARAM FLATAFTER = 210000daysforbiddenentry = openDayofweek = 6 or opendayofweek = 0IF (abs(close-open[8]) > 51*pointsize) THENIF (close > open[8]) and not daysforbiddenentry THENBUY 1 CONTRACTS AT MARKETSET STOP pLOSS 50SET TARGET pPROFIT 90ENDIFIF (close < open[8]) and not daysforbiddenentry THENSELLSHORT 1 CONTRACTS AT MARKETSET STOP pLOSS 35SET TARGET pPROFIT 90ENDIFENDIF1 user thanked author for this post.
07/21/2017 at 11:08 AM #4127601/21/2020 at 8:36 AM #117361Of course, i am very interested at your life results. 🤗
-
AuthorPosts
Find exclusive trading pro-tools on