Hey Guys, find the community here: www.skool.com/automated-traders-elite/about I just created a community for everyone who wants to interact with other algotraders. I will also upload the code files from all of my TH-cam tutorials (from now on) to this group. The code of this DCA Strategy is already uploaded and waiting for you. This saves you from the hustle of copying everything if you only want to test the EA or make some adjustments. Hope you like it! Let us all grow together!
Consider only placing a trade when the candle closes above or below the range for buy and sell, and not stop orders, look at it in a way that candles do the damage but the bodies tell the story of the market. After a trade was placed, you add a function that stops any other trade for that day.
Tested this on multiple pairs, Quite a lot are not profitable. USDJPY best performer by far however still works on a lot of other JPY pairs and GBPUSD. Very decent return as a portfolio with AUD/JPY GBP/USD, GBP/JPY, USD/JPY, and EUR/JPY however a lot of stagnant and DD periods. Thanks for sharing.
Hello Rene can you explain what "VOLUME_MANAGED" selection means? Also for the range settings is there a selection to choose either "Min Range Points" or "Min Range Percentage"? I am seeing that both can be populated without selection. Same for Max Range..
Hi, Thanks from Nürnberg. Question: 1) what is the difference between the paid version and the free version? 2) Which one would you recommend? 3) If I take the paid version can I use with any broker? 4) I would need some help (did not find a video) with importing the commisions from broker so they are taken in account in Startegy Tester, otherwise the results are not kind of real. Can you advise where to look for? maybe a link. Thanks a lot!
when you put in the time this would depend on your locations time zone? For example my VPS is in new york so would time inputs be the same as you showed in this video?
Yes, you would need to offset the times as I believe @ReneBalke 's broker is on central European time. If say six hours forward, 60*6 minutes forward for minute based inputs. You will need to test it visually, and see if you get a "similar" trend to Rene with his settings. Good luck 👍
nice work, thanks ! just one question : you have an equity drawdown of 17k meaning that it will be a problem for a 10k initial account. Are the position sizes adapted to the account balance during backtesting ? or is it always $500 risk ?
It would be cool to create a live monitoring account for this EA of yours. It would be nice to see the results after few months or years. Nice Video man. keep it up
Absolutely no problem with CFD's on a live account. Noone in the real market cares what retailers do at all. Although running EA's can be a problem on funded accounts if too many people start using the same EA with the same settings. Most (if not all) of the prop firms will close accounts with similar trades instantly. I have seen this happening multiple times even if there has been no copying going on at all - just because there were two similar trades taken by different traders. So be aware of that.
Hi Rene, I still don't understand the use of percentages for calculating take profit, stoploss and also the size of the channel to start a trade or not. How is the percentage measured, based on what? Can you explain in a little more detail how the percentage is measured and based on what?
Is this code available on your community platform? And another question, have you made any modifications to it? Lastly, if I use it, will I get the same results?
Is it possible to set the SL some Pips under/above the Range? Often i see a swap of liquidity below the Range and than revers and break above the Range. Can you test this? I think this will improve the Results a lot...
hi René great video :). btw when checking commission in strategy tester doesn't it pull the data from whatever broker its attached to ? because if you export the data and save the data it should show ICMarkets since that is the broker that you were connected to. Shouldn't you connect to an ftmo account to actually get their commission and rates or does this not matter? just a question. thanks for the video and your input.
Yes usually it takes the commission from the broker. But for custom symbols it is not applied automatically and you have to set the commission manually.
Hi Rene! I was wandering.. why are you using a version of this algo that closes the opposite order when a position is opened? According to my tests it's is better if you leave them opened (USDJPY from QDM, using the same time zone ranges). I tested this idea with Nasdaq and EURUSD and again, I do not see any improvement, neither in drowdawn nor in profit factor Your transparency is much appreciated!
I coded my own version of the Range Breakout Strategy (inspired by Rene Balke), incorporated it into one of my EAs and it works just like his (i.e. on the Strategy Tester). Otherwise I haven't tested it anywhere else yet but mine flipped $80.00 to just over $400.00 in 8 years using a micro lot on the USDJPY pair/instrument.
@@TLinh-0906 I coded mine from scratch and made it very basic; therefore it doesn't use the settings that on Rene's other than just implementing his findings and suggestions.
Thanks for sharing this, I need to back test like this, been using FX replay but it is ridiculously slow work! I need to learn to code a strategy tester in MQL5?
You do not need to code your own strategy tester. You can use the one that is available in the MT5. But your EA code should be optimized and efficient for backtesting to speed it up.
Rene, ich bekomme ein Error: unknown retcode 10044 only position closing is allowed Fehler im Journal und in den settings steht noch Delete Orders Hour drin. Nicht wie bei dir im Video. Kannst du mir helfen?
Hey, in dem Fall ist dein Symbol scheinbar nur für Positionseröffnungen freigeschaltet. Vielleicht liegt es auch an der Tageszeit. Hast du das schon überprüft? Ich nutze in diesem Video einen speziell für den Backtest erstellten EA.
Jetzt Blick ich nicht mehr durch. Ich hab ihn seit dem du ihn veröffentlicht hast damals gekauft. Funktioniert hat er schon immer ich hab ihn nur nicht mehr genutzt. Nach dem Update auf sie Version 1.38 gerade geht er nicht mehr. Das Symbol ist das selbe wie du im Video. Die Tageszeit ist die von jetzt aber das tut ja dem Backtest nichts. Ist egal welches Symbol ich nutze. Ist egal ob ich tick Data oder 1 MOHLC nehme. Geht alles nicht. Egal welche start Zeit und Endzeit ich eingebe wegen der range. Error: 4756
@@alexandermaraver5683 Hm error 4756 bedeutet laut Dokumentation, dass es ein Problem mit deinem Einstiegspreis, dem SL oder dem TP gibt. Schick mir bitte eine Dokumentation davon per e-mail an info@bmtrading.de. Ich benötige einen Screenshot deiner gesamten Einstellungen, vom gesamten Chart und vom Journal (mit der Fehlermeldung). Dann schaue ich mir das einmal an.
Ich weiß was es ist. Hab seit Wochen eine Optimierung am laufen und weil ich nur vier cores habe gehet nur das importierte custom Symbol Backtesten das ich mal gedownloadet habe. Warum die Symbole vom Broker nicht gehen verstehe ich gerade nicht. Danke für die Hilfe. Wenigstens liegt es nicht an deinem Expert Advisor. Danke Rene für deine schnelle Hilfe.
It shouldn't really matter IMO since if you do a full algorithm optimization in 15 min steps you will have for let's say a 6 hour timeframe 24 steps, which is the same as having 6 1-hour steps and 4 15-min steps (since that also comes down to 24 total runs). Code efficiency itself depends fully on how you implement the time function in your code, both ways can be about equally efficient i think.
nevermind, I've played around a bit over the past day and a half, it actually does matter! Not the amount of parameters is important but the fact that you dont have overlapping time settings. If you want to find the best settings and scan the entire day, so lets say you set the starting time to midnight and test it until 3 in the afternoon, and set your ending time to start at 1 in the night and test until 4 in the afternoon, you have a lot of tests where the ending time is below the starting time, which doesn't make any sense obviously but the tester still tests those settings. With Renes solution you can avoid that actually really nicely, so I'm going to implement that in my code as well I think!
Hi Rene! Thanks for the great video. I have just coded the strategy using the rules you described in the video and backtested it using my broker, the results were really nice. Have you tried it on FTMO? My FTMO backtest results have lots of drawdowns (much more than IC Markets or Oanda backtests) and the strategy is not showing consistent results. I think that the problem is the broker that FTMO uses for their accounts. What do you think? I am also gonna try to optimize it and may be code some additional functionalities, so I will update it here
Hi Rene, thanks for this wonderful tutorial. 2 things; you mention 10K profit per year, but to me it seems 25K profit a year or am I mistaken here? Second; 17% maximum drawdown is fine in this example at the end of 10 year backtesting and with this profit! But if this happens in your first year, it’s a whole other feeling about this strategy. But it also shows how backtesting on reliable data and for many years is highly recommended
@Metalus_Prime But, I'll be honest, if I test the bot from January 1st 2024 to June 30th 2024 100% short wins, 100% long wins. But after July through current, 60% wins and 40% loss, oddly i guess it was pre learned.
It appears to work but very gradually, with periods of several months of no profit, just pretty much flat. It did succeed in beating the horrendous house edge though, which is miraculous. If you tried it in market with less horrendous conditions, like using all maker orders in Vertex, which has zero fees on maker orders, it might be worth doing. Trading forex is pretty much making large donations to the exchange. Your gross profit, shown in the upper left at about 0:17, was $1.254M while the net profit was $256K, you donated a million dollars to the exchange, 4 times what you kept. You gave them about 80% of your profits, all because of the spreads and fees, that's how bad forex is.
The difference between gross profit and net profit is not commissions and spreads. Gross profit is essentially the sum of all the winning trades and gross loss is the sum of all the losses. The difference between the two is the net profit.
Hello René, do you really consider 10% per year as a good return in the forex market? My aim is at least 20% to be more profitable then my real estate investments or other financial products. Thank you.
@@ryzz80 as mentioned before.. leverage.. if a strategy makes 1% (or in other words: is profitable) you can just leverage it... or use it together with 69 other strategies that make 1% per year..
Danke Dir für die Offenheit Deine Strategien so detailliert zu zeigen. Wenn Du Dein Gesicht jetzt noch kleiner einblenden würdest, dann wäre die Spalte "Profit" noch zu erkennen. Dein Gesicht wäre links , mittig optimal eingeblendet, da dort im "Data-Window" aktuell nichts spannendes zu sehen ist. Ich weiß schon, meckern auf sehr hohem Niveau ... zwinker
Hey Guys, find the community here: www.skool.com/automated-traders-elite/about
I just created a community for everyone who wants to interact with other algotraders. I will also upload the code files from all of my TH-cam tutorials (from now on) to this group. The code of this DCA Strategy is already uploaded and waiting for you. This saves you from the hustle of copying everything if you only want to test the EA or make some adjustments. Hope you like it! Let us all grow together!
Consider only placing a trade when the candle closes above or below the range for buy and sell, and not stop orders, look at it in a way that candles do the damage but the bodies tell the story of the market. After a trade was placed, you add a function that stops any other trade for that day.
Tested this on multiple pairs, Quite a lot are not profitable. USDJPY best performer by far however still works on a lot of other JPY pairs and GBPUSD. Very decent return as a portfolio with AUD/JPY GBP/USD, GBP/JPY, USD/JPY, and EUR/JPY however a lot of stagnant and DD periods. Thanks for sharing.
Hello Rene can you explain what "VOLUME_MANAGED" selection means? Also for the range settings is there a selection to choose either "Min Range Points" or "Min Range Percentage"? I am seeing that both can be populated without selection. Same for Max Range..
Awesome video! Thanks for the inspo
Hi, Thanks from Nürnberg. Question:
1) what is the difference between the paid version and the free version?
2) Which one would you recommend?
3) If I take the paid version can I use with any broker?
4) I would need some help (did not find a video) with importing the commisions from broker so they are taken in account in Startegy Tester, otherwise the results are not kind of real. Can you advise where to look for? maybe a link. Thanks a lot!
So cool man. We love it.
when you put in the time this would depend on your locations time zone? For example my VPS is in new york so would time inputs be the same as you showed in this video?
Yes, you would need to offset the times as I believe @ReneBalke 's broker is on central European time. If say six hours forward, 60*6 minutes forward for minute based inputs.
You will need to test it visually, and see if you get a "similar" trend to Rene with his settings. Good luck 👍
Better use server time, because it is independent of your local and vps local time.
nice work, thanks ! just one question : you have an equity drawdown of 17k meaning that it will be a problem for a 10k initial account. Are the position sizes adapted to the account balance during backtesting ? or is it always $500 risk ?
Yes but why would you risk 500USD per trade in a 10k account? ;) So yes every trade had about 500USD risk.
It would be cool to create a live monitoring account for this EA of yours. It would be nice to see the results after few months or years. Nice Video man. keep it up
Doing it already ;) I use it in many of my accounts and make regular analysis videos on this channel ;)
Hi René ! where can I find the last version of the range breakout ea ? I have the 1.00 for the moment, Thnks
Hello . I am stuck in strategy development and in know how to code do you guide pple on how to manuever
Thanks Rene. I cannot see your community link in the description. Thanks
ahh yeah sorry was late. here is the link: www.skool.com/automated-traders-elite/about
If every trader uses this, sure enough the market wii get stucked. Thanks for the video Rene.👍
naaa not really when trading cfd/forex :D this is more a "real" market thing i guess
Absolutely no problem with CFD's on a live account. Noone in the real market cares what retailers do at all. Although running EA's can be a problem on funded accounts if too many people start using the same EA with the same settings. Most (if not all) of the prop firms will close accounts with similar trades instantly. I have seen this happening multiple times even if there has been no copying going on at all - just because there were two similar trades taken by different traders. So be aware of that.
Hi Rene, I still don't understand the use of percentages for calculating take profit, stoploss and also the size of the channel to start a trade or not. How is the percentage measured, based on what? Can you explain in a little more detail how the percentage is measured and based on what?
it is a percentage of the position open price
Hello Rene do you ever use cost averaging?& Do you only trade breakout?
I do not use any martingale/grid/cost averaging methods
@ReneBalke oow I thought those are the only wats of becaming profitable lol 😑.
Is this code available on your community platform? And another question, have you made any modifications to it? Lastly, if I use it, will I get the same results?
Is it possible to set the SL some Pips under/above the Range? Often i see a swap of liquidity below the Range and than revers and break above the Range. Can you test this? I think this will improve the Results a lot...
sure everything is possible with mql5 coding
hi René great video :). btw when checking commission in strategy tester doesn't it pull the data from whatever broker its attached to ? because if you export the data and save the data it should show ICMarkets since that is the broker that you were connected to. Shouldn't you connect to an ftmo account to actually get their commission and rates or does this not matter? just a question. thanks for the video and your input.
Yes usually it takes the commission from the broker. But for custom symbols it is not applied automatically and you have to set the commission manually.
oh ok, because in the video when you showed the commissions tab it looked almost the same as icmarkets raw spread
Hi Rene!
I was wandering.. why are you using a version of this algo that closes the opposite order when a position is opened? According to my tests it's is better if you leave them opened (USDJPY from QDM, using the same time zone ranges). I tested this idea with Nasdaq and EURUSD and again, I do not see any improvement, neither in drowdawn nor in profit factor
Your transparency is much appreciated!
hm maybe i have to test again ;)
nice video. what is the time zone you using for this EA?
Gmt +3 or +2 when dst
I coded my own version of the Range Breakout Strategy (inspired by Rene Balke), incorporated it into one of my EAs and it works just like his (i.e. on the Strategy Tester). Otherwise I haven't tested it anywhere else yet but mine flipped $80.00 to just over $400.00 in 8 years using a micro lot on the USDJPY pair/instrument.
What is Time range in GMT Bro?
@@TLinh-0906 I coded mine from scratch and therefore doesn't use Rene's settings. I made mine very basic and just applied Rene's suggestions.
@@TLinh-0906 I coded mine from scratch and made it very basic; therefore it doesn't use the settings that on Rene's other than just implementing his findings and suggestions.
Thanks for sharing this, I need to back test like this, been using FX replay but it is ridiculously slow work! I need to learn to
code a strategy tester in MQL5?
You do not need to code your own strategy tester. You can use the one that is available in the MT5. But your EA code should be optimized and efficient for backtesting to speed it up.
Cheers Rene. I will get into this tonight.
What TIME ZONE do you use?
Gmt +2 or +3 depends on dst
sir can you develop NFD news Ea thanks
Rene, ich bekomme ein Error: unknown retcode 10044 only position closing is allowed Fehler im Journal und in den settings steht noch Delete Orders Hour drin. Nicht wie bei dir im Video. Kannst du mir helfen?
Hey, in dem Fall ist dein Symbol scheinbar nur für Positionseröffnungen freigeschaltet. Vielleicht liegt es auch an der Tageszeit. Hast du das schon überprüft? Ich nutze in diesem Video einen speziell für den Backtest erstellten EA.
Jetzt Blick ich nicht mehr durch. Ich hab ihn seit dem du ihn veröffentlicht hast damals gekauft. Funktioniert hat er schon immer ich hab ihn nur nicht mehr genutzt. Nach dem Update auf sie Version 1.38 gerade geht er nicht mehr. Das Symbol ist das selbe wie du im Video. Die Tageszeit ist die von jetzt aber das tut ja dem Backtest nichts. Ist egal welches Symbol ich nutze. Ist egal ob ich tick Data oder 1 MOHLC nehme. Geht alles nicht. Egal welche start Zeit und Endzeit ich eingebe wegen der range. Error: 4756
@@alexandermaraver5683 Hm error 4756 bedeutet laut Dokumentation, dass es ein Problem mit deinem Einstiegspreis, dem SL oder dem TP gibt. Schick mir bitte eine Dokumentation davon per e-mail an info@bmtrading.de. Ich benötige einen Screenshot deiner gesamten Einstellungen, vom gesamten Chart und vom Journal (mit der Fehlermeldung). Dann schaue ich mir das einmal an.
Ich weiß was es ist. Hab seit Wochen eine Optimierung am laufen und weil ich nur vier cores habe gehet nur das importierte custom Symbol Backtesten das ich mal gedownloadet habe. Warum die Symbole vom Broker nicht gehen verstehe ich gerade nicht. Danke für die Hilfe. Wenigstens liegt es nicht an deinem Expert Advisor. Danke Rene für deine schnelle Hilfe.
thanks so much, does this strategy has best returns only on usdjpy?
in backtesting i did not find any better symbol so far
From 3 to 6 GMT? What timezone you are using?
gmt+2 or +3 when dst
Is more efficent to use a range calculation base only in minutes than hours?
It has some benefits for optimizations if you have less parameters.
It shouldn't really matter IMO since if you do a full algorithm optimization in 15 min steps you will have for let's say a 6 hour timeframe 24 steps, which is the same as having 6 1-hour steps and 4 15-min steps (since that also comes down to 24 total runs). Code efficiency itself depends fully on how you implement the time function in your code, both ways can be about equally efficient i think.
nevermind, I've played around a bit over the past day and a half, it actually does matter! Not the amount of parameters is important but the fact that you dont have overlapping time settings. If you want to find the best settings and scan the entire day, so lets say you set the starting time to midnight and test it until 3 in the afternoon, and set your ending time to start at 1 in the night and test until 4 in the afternoon, you have a lot of tests where the ending time is below the starting time, which doesn't make any sense obviously but the tester still tests those settings. With Renes solution you can avoid that actually really nicely, so I'm going to implement that in my code as well I think!
Hi Rene! Thanks for the great video. I have just coded the strategy using the rules you described in the video and backtested it using my broker, the results were really nice. Have you tried it on FTMO? My FTMO backtest results have lots of drawdowns (much more than IC Markets or Oanda backtests) and the strategy is not showing consistent results. I think that the problem is the broker that FTMO uses for their accounts. What do you think? I am also gonna try to optimize it and may be code some additional functionalities, so I will update it here
hm yeah used it in ftmo account already and so far it is fine
Hi Rene, thanks for sharing insightful breakout strategy. May you review my Momentum AI XAU EA? Thank you for the effort in advance.
Hi Rene, thanks for this wonderful tutorial. 2 things; you mention 10K profit per year, but to me it seems 25K profit a year or am I mistaken here? Second; 17% maximum drawdown is fine in this example at the end of 10 year backtesting and with this profit! But if this happens in your first year, it’s a whole other feeling about this strategy. But it also shows how backtesting on reliable data and for many years is highly recommended
Yeah dunno what I was saying with the 10k :D
Oddly, I backtested a bot from the market and I set $10,000 start, over 7 years, $22,000,000
@@HandyDan did you use "Every Tick based on real tick with 100% price data"?
@Metalus_Prime Yes
@Metalus_Prime But, I'll be honest, if I test the bot from January 1st 2024 to June 30th 2024 100% short wins, 100% long wins. But after July through current, 60% wins and 40% loss, oddly i guess it was pre learned.
It appears to work but very gradually, with periods of several months of no profit, just pretty much flat. It did succeed in beating the horrendous house edge though, which is miraculous. If you tried it in market with less horrendous conditions, like using all maker orders in Vertex, which has zero fees on maker orders, it might be worth doing. Trading forex is pretty much making large donations to the exchange. Your gross profit, shown in the upper left at about 0:17, was $1.254M while the net profit was $256K, you donated a million dollars to the exchange, 4 times what you kept. You gave them about 80% of your profits, all because of the spreads and fees, that's how bad forex is.
The difference between gross profit and net profit is not commissions and spreads. Gross profit is essentially the sum of all the winning trades and gross loss is the sum of all the losses. The difference between the two is the net profit.
Are you new to forex? He lost 997k but he won 1.2 mill meaning he made a 200k profit. Its not only commissions
why 326?
What is 326? :D
Hello René, do you really consider 10% per year as a good return in the forex market? My aim is at least 20% to be more profitable then my real estate investments or other financial products. Thank you.
Leverage baby leverage
Lol I consider 1% per year a good performance :D 10% is outstanding!! And yeah as already mentioned: leverage :D
1% a year good? Hahahahha might as well keep it in a bank
@@ryzz80 as mentioned before.. leverage.. if a strategy makes 1% (or in other words: is profitable) you can just leverage it... or use it together with 69 other strategies that make 1% per year..
Danke Dir für die Offenheit Deine Strategien so detailliert zu zeigen.
Wenn Du Dein Gesicht jetzt noch kleiner einblenden würdest, dann wäre die Spalte "Profit" noch zu erkennen.
Dein Gesicht wäre links , mittig optimal eingeblendet, da dort im "Data-Window" aktuell nichts spannendes zu sehen ist.
Ich weiß schon, meckern auf sehr hohem Niveau ... zwinker
Some propfirm donot allow this strategy like alpha capital group
Why? Too good? :D
I took the free trials, alpha capital group prop firm review my strategy then he rejected says that this strategy will not be allowed
@@aftab5391 Why?
This strategy called bracket strategy, they reject it.
Trailing stop EA always gives good result until you test it live with real spread/swap condition
Yes true but I think the big problem is with very aggressive trailing stops
This strategy doesnt work on real account due to high slipage on real accounts
Hmm how long did you test? I am using it for over 6 years live and it is profitable :D But I would love to learn more about your experience