Hey Guys, you can download the code 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 UA-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!
The approach must be parameterized to the historical average volatility of each currency pair, so the first step is to establish the average volatility of each pair to assign it its percentage value before opening the first position. You can't put JPY, EUR, GBP, etc. on the same level. It's normal for your EA to lose. The method you used is too generic, a more specific method for each currency is the average distance from a moving average X which must be evaluated on a daily time frame (for each currency pair) you see that the discussion begins to change.
The code has two mistakes as stated by some helpful commentators: 1. I forgot to change the "trade.Sell(Lots)" to "trade.Sell(lots)" at 11:50 in the video 2. The openBack variable should be initialized as follows: "double openBack = iOpen(symbol.symbol,PERIOD_D1,DaysBack);" to make use of the input variable Please make sure to change this in your code. It will make a HUGE difference when testing this expert advisor. My tests in this video are not perfect because of these errors.
Hey guy! Also remember Nick Shawn grid is based on support and resistance levels and Nick martingales after several trades have been placed to move the breakeven even closer to the current price. Nick gain 100% of the account and start over and the expectation is to gain 100% four out of five times and to blow the account only once. This makes Nick's trading strategy super successful.
How does he martingales? Like, if he has 5 lots open, will the next purchase be 10, or will he start increasing the next ones from 1 to 2, 2 to 4, etc.?
I think the question is: You can double your accont more times then blowing it? I think that his aproach is basically on this statement. we need to make backtests simulating multiple acocunts and see if the strategy doubles it faster then blows, and how many times it doubles compared to it blows.
That is the question indeed. And to be fair this is also what he says. But it is still questionable if he really trades like this with his own money. Other commentators said that he is mainly promoting mentorships
He makes a lot of Money with his group. Even if he wouldnt use his real money, its the results that count. I think he is legit. I was even in his group for some month and made %-wise the same money as he
Thanks a lot Rene . Very interesting, its easy watching a major drawdown in back testing , as it passes by in seconds but in real time where a drawdown may last many days , the stress is a killer.
Nick is using 3 Trading Strategies which video provided below: 1) Dollar Cost Average (DCA)/Grid Trading, 2) Mean Reversion, 3) Trend Trading; The 3 Best Forex Trading Strategies For Beginners. - UA-cam. ua-cam.com/video/muFG85NKriA/v-deo.html Complete Dollar Cost Average (DCA)/Grid Trading Strategy guide from Nick Video: ua-cam.com/video/rKFJAK9j5MY/v-deo.html
hi rene, my personal observation is that martingale only works for certain pairs in certain time frame........so i will not test on all pairs but only focus on 1-2 pairs to get the good initial results and then work on improving the settings. just my personal view.
I have been experimenting with this on 1hr timeframe but also using a moving average filter, so effectively trading pullbacks in the trend, and so far its not terrible.
Hi rené, i coded my own range brk ea but i have a strange problem that I have some difficult to fix that, only in live sometimes at the Hours i set to Close all positions the ea failed to Close positions in a random way, i tried to upgrade my Close position function but sometimes that happend again, can you explain me if you had the same problem in past with some of your ea? Thanks
I wonder if one were to try pairs trading mechanism, this imply that one will choose the pairs that are arranged in with positive correlation and negative correlation, the assumption is that the net effect cancels out. Another idea would be not to add trades in a constant difference, but to store the entry price in an Array and make the next trade in a logarithmic scaled distance from the previous entry and still change the lots size also.... just some thoughts
2 points. Firstly his strategy requires PA to hit a support / resistance zone for the addition of positions. That’s more difficult to systemise. Secondly there’s a portfolio of pairs that are better than others at mean reversion EURGBP for example, I think they are AUDCAD NZDCAD and AUDNZD. I’m in his free group and he’s mentioned it a few times. FWIW I watch his vids because he’s the only person I’ve found that trades like me and watch yours as I was interested in learning how to program MT, not that I’ve had much time to play with it. Don’t think I’ve commented before but thanks for your vids.
hey Rene ive followed along and i think i have wrote the code correctly as ive checked it a couple of times but for some reason the ea only trades 1 pair, only the chart that the ea is on. in the journal there is no mention of other pairs history being fetched and i only have the 1 pair in the testers market watch, am i doing something wrong
I had the same problem and actually after the trades you need to check trade.ResultRetCode() not orderresult otherwise the ticket never gets added to the tickets array. Working fine for me now. Rene... I'm going to implement all the inputs per symbol as each pair moves differently... Then can optimise for each symbol rather than a generic optimisation.
yes all pairs are in market watch on mt5 but when i start the test the visualiser market watch only has the pair being tested and no signs of other pairs being mentioned in the journal
my bad, i created a new ea for the multiple symbol version but had the original version with only 1 symbol in the tester, it took me 2 days to notice haha, i feel like a right donut lol. thanks for trying to help
@@dunknow9486translation: he’s some interesting code. Do what you want with it, but be prepared to accept any potential accounts being blown up… and most importantly “don’t sue me Bruh”
@@dunknow9486 You referring to my course? The course is definitely for real account trading also. Many of trades who took the course use their own EAs for live or prop trading already. But my UA-cam content is sometimes a bit more shallow because I do not want to record 20 hour long videos :D
Ask Nick Shawn this; when he promotes risk management of 0.03 lot size per 5k of account, per pair, and then proceeds to open about 10 positions on multiple pairs, how does that work? Sure, the size is 0.03 but 10 of them add up 0.30 don't they?
Absolutely correct; anyone that follows his videos will have seen back on August 5, when shorting that huge spike on EURAUD, he blew his account and his PAID subscribers that blindly followed him, blew their real money accounts, just a bunch of clowns, and admitted it in a video, wow.. Right now he's in deep on USDCAD shorts, the swap must be killing him, well, if it was real account.
I never said he is profitable. I do not even know him ;) With the videos I do not want to promote his stuff. Instead I want to teach about coding and make everyone understand how grid trading works and also what the risks are
could you maybe make a small 2-5 minute video update i would interested in seeing if actually that change of allowing martingale on both sides instead of just on the buy side would make a difference. or just let us know in the comments. either way like you said and 100% agree on, this strategy is not for the weak of heart and it is extremely risky . though i bet if you only placed it on 2 or 4 pairs correlate well with each other (similar to how northwest ea did in the past). i wonder if it would be semi profitable.
hopefully you add in the part about 2 pair or 4 pair correlation because i could see where this could work well as one pair being bullish and its correlation pair being bearish.
as I understand Shown trades differently from the way you had taken into the account. He's forcing his luck by opening x5 accounts and trding them simultaneously. He expects x4 accounts to blow up and x1 account to make tons of money. So, hart of his method is not in Martingale that you described, but as well in multiple account management.
Every account will eventually blow up. By running multiple accounts you will by simple chance extend the duration the best account can hold on. But this is an illusion, because you are reducing your investment and hence profit in that account by the account splitting.
this is grid trading. this can be blow account in a minute. i have tried a lot of strategy of grid trading with differents pip size but in 3 month will blow account. unfortunately not ok strategy for everyone, maybe for peoples with millions dollars on account, but for 10 20k will blow account ..
There is so many of these strategies sold on MQL5, I think the most important characteristic of all of them is exponential risk with linear returns, you risk everything to make a little each time. Any rational trader would not go near this kind of approach.
Bro people are independant and can think for themselfes :D I am just showing how to code something but I do not force anyone to do anything ;) also it will help many to understand how this all works
Hey Guys, you can download the code 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 UA-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!
The approach must be parameterized to the historical average volatility of each currency pair, so the first step is to establish the average volatility of each pair to assign it its percentage value before opening the first position. You can't put JPY, EUR, GBP, etc. on the same level. It's normal for your EA to lose. The method you used is too generic, a more specific method for each currency is the average distance from a moving average X which must be evaluated on a daily time frame (for each currency pair) you see that the discussion begins to change.
The code has two mistakes as stated by some helpful commentators:
1. I forgot to change the "trade.Sell(Lots)" to "trade.Sell(lots)" at 11:50 in the video
2. The openBack variable should be initialized as follows: "double openBack = iOpen(symbol.symbol,PERIOD_D1,DaysBack);" to make use of the input variable
Please make sure to change this in your code. It will make a HUGE difference when testing this expert advisor. My tests in this video are not perfect because of these errors.
Do a part 4 then
@@dunknow9486 Not sure if it is worth another video. Everyone can quickly fix these errors in his/her code and that is it. Problem solved.
The " HUGE difference" ist more positive or negative? please give a feedback ;-)
@@petrawolkespwolkes I recorded another video (part 4) today :)
Hey guy! Also remember Nick Shawn grid is based on support and resistance levels and Nick martingales after several trades have been placed to move the breakeven even closer to the current price. Nick gain 100% of the account and start over and the expectation is to gain 100% four out of five times and to blow the account only once. This makes Nick's trading strategy super successful.
Hey :) thanks for the comment. I just uploaded one more video for the series in which I talk about this also. You should have a look ;)
How does he martingales? Like, if he has 5 lots open, will the next purchase be 10, or will he start increasing the next ones from 1 to 2, 2 to 4, etc.?
I think the question is: You can double your accont more times then blowing it? I think that his aproach is basically on this statement. we need to make backtests simulating multiple acocunts and see if the strategy doubles it faster then blows, and how many times it doubles compared to it blows.
That is the question indeed. And to be fair this is also what he says. But it is still questionable if he really trades like this with his own money. Other commentators said that he is mainly promoting mentorships
He makes a lot of Money with his group.
Even if he wouldnt use his real money, its the results that count. I think he is legit. I was even in his group for some month and made %-wise the same money as he
@@KimboEnhanced how much in % per Month? Can you say that?
@@ddtrader1755 it differs, but about 20%
Can you not implement this approach but with adding to winning trades and cutting losses at a set pip value ?
Thanks a lot Rene . Very interesting, its easy watching a major drawdown in back testing , as it passes by in seconds but in real time where a drawdown may last many days , the stress is a killer.
Many days? On here it lasts for about 4 years.
Yeah definitely not fun with real money
Nick is using 3 Trading Strategies which video provided below:
1) Dollar Cost Average (DCA)/Grid Trading,
2) Mean Reversion,
3) Trend Trading;
The 3 Best Forex Trading Strategies For Beginners. - UA-cam.
ua-cam.com/video/muFG85NKriA/v-deo.html
Complete Dollar Cost Average (DCA)/Grid Trading Strategy guide from Nick Video:
ua-cam.com/video/rKFJAK9j5MY/v-deo.html
hi rene, my personal observation is that martingale only works for certain pairs in certain time frame........so i will not test on all pairs but only focus on 1-2 pairs to get the good initial results and then work on improving the settings. just my personal view.
I have been experimenting with this on 1hr timeframe but also using a moving average filter, so effectively trading pullbacks in the trend, and so far its not terrible.
Hi rené, i coded my own range brk ea but i have a strange problem that I have some difficult to fix that, only in live sometimes at the Hours i set to Close all positions the ea failed to Close positions in a random way, i tried to upgrade my Close position function but sometimes that happend again, can you explain me if you had the same problem in past with some of your ea? Thanks
Please how do I use the low or high of my entry point for stoploss on mql5
trade open in 2014 and closed in 2016 ?
I wonder if one were to try pairs trading mechanism, this imply that one will choose the pairs that are arranged in with positive correlation and negative correlation, the assumption is that the net effect cancels out. Another idea would be not to add trades in a constant difference, but to store the entry price in an Array and make the next trade in a logarithmic scaled distance from the previous entry and still change the lots size also.... just some thoughts
i use the similar concept. I dont use stop loss. and it works for me with some adapted details of course. I also made a video about it.
please bring control off open positions for every instruments
You need like a filter that automatically bans comments if they got that crypto name in it idk if its a thing
Yeah tried it already but i think the crypto name is also changing.. bot comments are so annoying
Look at the other words they often use and filter the phrases.
how this happen equity low and balance go up ?
Balance shows only the closed trades. Equity also includes the open trades. With this strategy you have a lot of open trades that are negative.
2 points. Firstly his strategy requires PA to hit a support / resistance zone for the addition of positions. That’s more difficult to systemise.
Secondly there’s a portfolio of pairs that are better than others at mean reversion EURGBP for example, I think they are AUDCAD NZDCAD and AUDNZD. I’m in his free group and he’s mentioned it a few times. FWIW I watch his vids because he’s the only person I’ve found that trades like me and watch yours as I was interested in learning how to program MT, not that I’ve had much time to play with it. Don’t think I’ve commented before but thanks for your vids.
hey Rene ive followed along and i think i have wrote the code correctly as ive checked it a couple of times but for some reason the ea only trades 1 pair, only the chart that the ea is on. in the journal there is no mention of other pairs history being fetched and i only have the 1 pair in the testers market watch, am i doing something wrong
I had the same problem and actually after the trades you need to check trade.ResultRetCode() not orderresult otherwise the ticket never gets added to the tickets array. Working fine for me now.
Rene... I'm going to implement all the inputs per symbol as each pair moves differently... Then can optimise for each symbol rather than a generic optimisation.
Do you have the other pairs in your market watch in the MT5? Also check the journal of the MT5 and the testing window.
yes all pairs are in market watch on mt5 but when i start the test the visualiser market watch only has the pair being tested and no signs of other pairs being mentioned in the journal
my bad, i created a new ea for the multiple symbol version but had the original version with only 1 symbol in the tester, it took me 2 days to notice haha, i feel like a right donut lol. thanks for trying to help
do you recommend run this ea in live trading ?
I do not recommend anything. Feel free to make your own test and analysis with the EA. That is why I uploaded the coding tutorial :)
His teaching of coding and his course is for programming hobby only, it is not for real account
@@dunknow9486translation: he’s some interesting code. Do what you want with it, but be prepared to accept any potential accounts being blown up… and most importantly “don’t sue me Bruh”
@@dunknow9486 You referring to my course? The course is definitely for real account trading also. Many of trades who took the course use their own EAs for live or prop trading already. But my UA-cam content is sometimes a bit more shallow because I do not want to record 20 hour long videos :D
No you will blow so many accounts trading like this, better off using Rene's conservative trading, the results have been good
Ask Nick Shawn this; when he promotes risk management of 0.03 lot size per 5k of account, per pair, and then proceeds to open about 10 positions on multiple pairs, how does that work? Sure, the size is 0.03 but 10 of them add up 0.30 don't they?
I think he has an account for each pair he trades.
That is what I have taken from what he says but it isn’t clear.
@@brentritchie6199 Nah, no way, you can only show 1 account at a time on the phone and that is the screenshots on Telegram, just a single account.
yes you are correct 0.03 x 10 positions = 0.30 lots . but if he has an account for each pair then he isn't using to much of his margin than .
I like your channel Rene, but that Shawn guy is not a profitable trader, he's a fake-course seller.
Absolutely correct; anyone that follows his videos will have seen back on August 5, when shorting that huge spike on EURAUD, he blew his account and his PAID subscribers that blindly followed him, blew their real money accounts, just a bunch of clowns, and admitted it in a video, wow.. Right now he's in deep on USDCAD shorts, the swap must be killing him, well, if it was real account.
I never said he is profitable. I do not even know him ;) With the videos I do not want to promote his stuff. Instead I want to teach about coding and make everyone understand how grid trading works and also what the risks are
you forgot to change the trade.sell (Lots to lots). so you were only using martingale in buys not sells .
ahh dang... thanks for pointing this out :)
could you maybe make a small 2-5 minute video update i would interested in seeing if actually that change of allowing martingale on both sides instead of just on the buy side would make a difference. or just let us know in the comments.
either way like you said and 100% agree on, this strategy is not for the weak of heart and it is extremely risky . though i bet if you only placed it on 2 or 4 pairs correlate well with each other (similar to how northwest ea did in the past). i wonder if it would be semi profitable.
@@rp4k yes I am recording it right now because it makes a huge difference :)
hopefully you add in the part about 2 pair or 4 pair correlation because i could see where this could work well as one pair being bullish and its correlation pair being bearish.
as I understand Shown trades differently from the way you had taken into the account. He's forcing his luck by opening x5 accounts and trding them simultaneously. He expects x4 accounts to blow up and x1 account to make tons of money. So, hart of his method is not in Martingale that you described, but as well in multiple account management.
Every account will eventually blow up. By running multiple accounts you will by simple chance extend the duration the best account can hold on. But this is an illusion, because you are reducing your investment and hence profit in that account by the account splitting.
@@simont6439 sure, that's theory, but in reality Shon is making millions.
this is grid trading. this can be blow account in a minute. i have tried a lot of strategy of grid trading with differents pip size but in 3 month will blow account. unfortunately not ok strategy for everyone, maybe for peoples with millions dollars on account, but for 10 20k will blow account ..
yes you really have to hope that you can double your account more often than you blow it with grid/martingale
There is so many of these strategies sold on MQL5, I think the most important characteristic of all of them is exponential risk with linear returns, you risk everything to make a little each time. Any rational trader would not go near this kind of approach.
@@MrHumbleOneexactly
3:31 opened the trades in December of 2014 and closed in 2017😂
yeah some trades are open for a while I guess :D
I had to stop watching this video when you said Nick Shawn the trader, he has never been a real trader??? he is another trader guru sales marketer 😂
Broooo I do not know :D I just make coding tutorials 🥹😅😅
Hi Rene
Can you please design a bot to flip $100 to $100k that has a minimum DRAW Down? That would make a great video.
Nope cannot
But I agree it would be a great video
Not liking that Shawn guy but I think his hedging idea has some potential not his martingale method
Bagholding and paying swap for 2.5 years to make 80 euros 😂😂
this can work on choppy markets only.
Yeah that is the big weakness. If a market trends into one direction for too long this is really really bad for the strategy.
How to test a robot that works on economic news. I couldn't do it.
Can you elaborate more?
Not that easy because the calendar api does not work in tester. You could feed the historical news events manually or read from a file.
On your openBack variable, you need to use the DaysBack input rather than the fixed 30.
Yes!! Thanks for pointing this out :)
Martingale strategy is gambling not need to show to the people
Bro people are independant and can think for themselfes :D I am just showing how to code something but I do not force anyone to do anything ;) also it will help many to understand how this all works