Followed along. Ended with unbalanced parenthesis! Stopped looking until tomorrow for fresh eyes. BUT - I really learned a lot about programming logic. And using MQL4. Thanks
Ubalanced parentheses are not too hard to find. In the Tools Options you can set the editor to highlight matching. Then just move the cursor around through your code to find where the highlights don't look right. Mine are usually at the end of a complex if statement, but that's just me.
@@OrchardForex When I solved that unbalanced issue, I ended up with 24 errors! All in OpenTrade Function or relating to it. Finally I just did the code all over from scratch and compiled without an error. Now I am testing the strategy. So far: EURUSD M1 from 10/1/2022 - 26/5.2022 8 trades $69 loss at close, but other than that small profit. M5 19 trades, closed at close for $69 loss, but that is not accurate. The profits and losses are very small. More importantly: my coding skills definitely improved. Thanks
@@OrchardForex interesting, possibly an idea for a future video? I've Been learning mql4 for 3-4 years now and still learn new things about the metaeditor platform itself like what you just said. For example I just learned a month ago that I could highlight a whole section and hit tab key and it will indent everything highlighted by 3 spaces. And honestly 80% of all the options, buttons and drop down menus in metaeditor I have no idea what they do or how/if they can speed up my coding process. Maybe your followers would find value in a video that gives deep dive into all the metaeditor tools & keyboard shortcuts? 🤔
Brilliant videos thanks. At 3:36 on the Trade Pro example i think they're saying the close price of the bar before the fractal has to be above the 100EMA, i.e. bar 4 not bar 1. So i don't think you need the skip-trade code, you've already catered for the fractal price being between the MA's.
Elegant code. I really like the NewBar() fn and the way you calculated the tp - one calc that works in both directions. It's a pity that this EA didn't perform as claimed by TradePro. However, I do have some code I can work with. Thanks for the lesson.
There is often a performance difference, and sometimes it is just due to inconsistencies in the backtest or possibly being tested with different settings to the original.
Hi Orchard I found your videos really helpful. I have request to make, By any chance can you please include in the EAs that are made by you, the coding of either having TRAILING STOP strategy or directly the SL and TP only. Also to code to take the LOT size either manually every time after the trade is closed or by Linear method where LOT size is taken in percentage that you put manually according to the EQUITY BALANCE that you have.
I wrote the code to match the published strategy. If it calls for trailing stop or proportional lot sizes I will use it but I don't change the strategy more than needed. If you want a trailing stop video try ua-cam.com/video/7O0mtUussSs/v-deo.html
Can you video on how to create dashboard... Please do a divergence indicator base on fractal swing/zigzag swings . Divergence work 80% solid with engulfing candle patterns . Divergence on lower timeframe at higher tf engulfing candle pattern. Accurate scalping .25-50 pips.
Hi, I just subscribed to this amazing channel, FYI - I have followed everything you did and after compiling I'm only getting long positions, I have tried a few symbols and the same ,only long positions
Good Morning, I have been following along with your video, but i have ended up with 19 errors in my code, i have watched the video several times and I cant find the errors.
I can't help much without the detail but often fixing the first error can remove the others. Simple things like a missed ; after a struct or enum or just a spelling error.
Thanks for the lecture chief, it's a good strategy...is it possible to set the stoploss 15-pips below or above the MAs instead of setting it directly at the MA lines. Thanks!
I will consider this but: As a platform for developing trading automation MQL4 is far superior to MQL5. MQL5 still suffers from early design errors which have only had superficial patches applied. Developing trading software in MQL5 involves more work for no additional gain. Also our analytics indicate that the demand for MQL5 specific work is low which reflects the general acceptance of MT5 in the market. Unless you have specific requirements not met by MT4 (trading stocks or futures for example) I recommend changing to the MT4 product.
@@OrchardForex thank you for your recommendation. the reason I use mt5 because of modeling which uses every tick based on real ticks and server delays function which would make the simulation as real as possible with real spread and requote, correct?
Thanks a lot for your video lessons :) I started to use many of your coding tricks. But could you please clarify why do we need to make in this particular code a SkipTrade logic? If we will use simple "close > slow" condition we can make the code easy, isn't it? //test for Long position if ( fast > mid && mid > slow && close > slow) { if ( fastF > midF && midF > slowF ) { if ( fractalLo != EMPTY_VALUE && fractalLo > slowF && fractalLo < fastF ) { sl = ( fractalLo < midF ) ? slow : mid; CurrentTicket = OpenTrade( ORDER_TYPE_BUY, sl ); return; } } }
i noticed one thing with the fractal strategy, on the Tradepro channel they stated that the trade is only to be taken when the williams fractal prints an arrow in the direction of the trend. Is that logic applied on your code as well?
@@mohammadhussainmurtaza9516 I added ADX indicator as a filter to the strategy, the ADX period is 8 and the min level is 25. I also added Breakeven, partial-close and Trailingstop to the indicator as additional money management. So if all conditions are met and the ADX period 8 is above the minimum level 25, then it buys or sells. For back resting you have to use different settings as same setting don’t always work for all pairs. eg. Try all pairs on, H1, H4, Daily etc. use different profit ratio, for higher timeframes I used a 6% profit ratio. Goodluck
@@DittoSwitz Can you please share the code so I can practice on it as well, As I am new to this channel and learning from it, would love to give it a try as well.
I have tried that but I don't have time to answer all questions and the forums in the past have not generated a lot of community input, only questions.
@@OrchardForex forum members would ask questions and give answers also along with you as Admin . The questions could get better follow up answers. Thanks
No, this is follow along only. That's the short answer. The longer answer: We were able to load to GitHub for a while because we had some sponsorship. But once we started loading to GitHub our view time dropped through the floor. It seems most people just came, took the link to GitHub and didn't bother watching the video. Just grabbing as much free stuff as they can. So then sponsorship disappeared and with lower view time the little revenue we get from UA-cam to help with costs also reduced. Now we are back to follow along to encourage longer view time.
@@OrchardForex Fair enough, I don't actually care. Follow along is fine, is the best way to learn. I keep forgetting to like your videos, I fixed it now.
@@OrchardForex how come you don't accept donations in the form of Bitcoin, PayPal, cash app? Or maybe utilize UA-cams membership badge option for even something like $1/month which would unlock additional content like private links to the source code itself? The lazy people get their code without learning a skill, other people get a chance to show appreciation through donation & you get revenue to offset expenses 😁
Hello there! It's possible that you to show one last round of the code at the end of the videos? Just show the whole code and that's it, end the video!!!
@@ruwanc2003 Clearly watching the video is a little difficult for you. See 01:00 It also seems that you have no idea what this channel or video are about.
Another Gem!
Thank you so much.
My EA is now profitable in back testing, but it needs more tweaking. Thank you so much for educating us.
Happy to help!
Thanks a Million
that we can learn zero to hero free of charge..
Thank you
@@OrchardForex Man You are a Gift!! Thanks
Mate, you are incredible !!!!! 👏🏼👏🏼👏🏼👏🏼👏🏼💥💥💥💥
Followed along. Ended with unbalanced parenthesis! Stopped looking until tomorrow for fresh eyes. BUT - I really learned a lot about programming logic. And using MQL4. Thanks
Ubalanced parentheses are not too hard to find. In the Tools Options you can set the editor to highlight matching. Then just move the cursor around through your code to find where the highlights don't look right.
Mine are usually at the end of a complex if statement, but that's just me.
@@OrchardForex When I solved that unbalanced issue, I ended up with 24 errors! All in OpenTrade Function or relating to it. Finally I just did the code all over from scratch and compiled without an error. Now I am testing the strategy. So far: EURUSD M1 from 10/1/2022 - 26/5.2022 8 trades $69 loss at close, but other than that small profit. M5 19 trades, closed at close for $69 loss, but that is not accurate. The profits and losses are very small. More importantly: my coding skills definitely improved. Thanks
@@OrchardForex interesting, possibly an idea for a future video? I've Been learning mql4 for 3-4 years now and still learn new things about the metaeditor platform itself like what you just said. For example I just learned a month ago that I could highlight a whole section and hit tab key and it will indent everything highlighted by 3 spaces. And honestly 80% of all the options, buttons and drop down menus in metaeditor I have no idea what they do or how/if they can speed up my coding process.
Maybe your followers would find value in a video that gives deep dive into all the metaeditor tools & keyboard shortcuts? 🤔
easy to understand from the previous video. i like this
Glad you liked it!
Brilliant videos thanks. At 3:36 on the Trade Pro example i think they're saying the close price of the bar before the fractal has to be above the 100EMA, i.e. bar 4 not bar 1. So i don't think you need the skip-trade code, you've already catered for the fractal price being between the MA's.
I have catered for fractal price but not close price. The skip trade is still needed and deals with any bar closing past the 100 EMA.
Elegant code. I really like the NewBar() fn and the way you calculated the tp - one calc that works in both directions. It's a pity that this EA didn't perform as claimed by TradePro. However, I do have some code I can work with. Thanks for the lesson.
There is often a performance difference, and sometimes it is just due to inconsistencies in the backtest or possibly being tested with different settings to the original.
Hi Orchard
I found your videos really helpful.
I have request to make, By any chance can you please include in the EAs that are made by you, the coding of either having TRAILING STOP strategy or directly the SL and TP only.
Also to code to take the LOT size either manually every time after the trade is closed or by Linear method where LOT size is taken in percentage that you put manually according to the EQUITY BALANCE that you have.
I wrote the code to match the published strategy. If it calls for trailing stop or proportional lot sizes I will use it but I don't change the strategy more than needed.
If you want a trailing stop video try ua-cam.com/video/7O0mtUussSs/v-deo.html
Joe, what if I only want to print the iFractal arrows on the chart? I did not understand how do I do that. Thanks mate.
Can you video on how to create dashboard...
Please do a divergence indicator base on fractal swing/zigzag swings .
Divergence work 80% solid with engulfing candle patterns .
Divergence on lower timeframe at higher tf engulfing candle pattern. Accurate scalping .25-50 pips.
Try this for dashboard ua-cam.com/video/9iLPNqcwGF8/v-deo.html
Hi, I just subscribed to this amazing channel, FYI - I have followed everything you did and after compiling I'm only getting long positions, I have tried a few symbols and the same ,only long positions
I can only think there is an error in your EA somewhere. I have this expert running live and producing signals on our discord discord.gg/fuyJW55kx5
I've looked through everything and I still have a lot of errors. Could anybody share the code with me? Thanks!
Good Morning, I have been following along with your video, but i have ended up with 19 errors in my code, i have watched the video several times and I cant find the errors.
I can't help much without the detail but often fixing the first error can remove the others. Simple things like a missed ; after a struct or enum or just a spelling error.
Hi, nice job bro! How do i convert this on MT5?
I am releasing a follow up to convert to MT5 today
@@OrchardForex
excellent! I look forward to
Nice , perfect !!
Thanks for the lecture chief, it's a good strategy...is it possible to set the stoploss 15-pips below or above the MAs instead of setting it directly at the MA lines. Thanks!
You can set sl and tp anywhere you like. You have the code.
@@andrewforrest7633 There is nothing already to change the sl value from the default but you have the code to make any change you like.
Thank you very much for sharing, especially how to handle the William fractual indy. Could you please also translate this to mlq5, thank you.
I will consider this but: As a platform for developing trading automation MQL4 is far superior to MQL5. MQL5 still suffers from early design errors which have only had superficial patches applied. Developing trading software in MQL5 involves more work for no additional gain. Also our analytics indicate that the demand for MQL5 specific work is low which reflects the general acceptance of MT5 in the market. Unless you have specific requirements not met by MT4 (trading stocks or futures for example) I recommend changing to the MT4 product.
@@OrchardForex thank you for your recommendation. the reason I use mt5 because of modeling which uses every tick based on real ticks and server delays function which would make the simulation as real as possible with real spread and requote, correct?
I am releasing a follow up to convert to MT5 today
@@OrchardForex thank you very much for your time and effort sir!
Good. And how to download source code?
This code is not available for download. You will have to follow from the video.
@@OrchardForex k sir
do you have a copy of this code id like to add it to my code to make it better for trading. thanks
It's on the web page.
Thanks a lot for your video lessons :) I started to use many of your coding tricks. But could you please clarify why do we need to make in this particular code a SkipTrade logic?
If we will use simple "close > slow" condition we can make the code easy, isn't it?
//test for Long position
if ( fast > mid && mid > slow && close > slow) {
if ( fastF > midF && midF > slowF ) {
if ( fractalLo != EMPTY_VALUE && fractalLo > slowF && fractalLo < fastF ) {
sl = ( fractalLo < midF ) ? slow : mid;
CurrentTicket = OpenTrade( ORDER_TYPE_BUY, sl );
return;
}
}
}
The code is to skip the next trade, not the current.
i noticed one thing with the fractal strategy, on the Tradepro channel they stated that the trade is only to be taken when the williams fractal prints an arrow in the direction of the trend. Is that logic applied on your code as well?
Yes, I have the fractals in the code
@@OrchardForex awesome, I tweaked the settings a little bit and tested on GBPJPY H4 and the result is mind blowing! Thanks a lot
@@DittoSwitz Can you please tell what exactly you tweaked because this one is not giving good results on XAU or EURGBP
@@mohammadhussainmurtaza9516 I added ADX indicator as a filter to the strategy, the ADX period is 8 and the min level is 25. I also added Breakeven, partial-close and Trailingstop to the indicator as additional money management. So if all conditions are met and the ADX period 8 is above the minimum level 25, then it buys or sells. For back resting you have to use different settings as same setting don’t always work for all pairs. eg. Try all pairs on, H1, H4, Daily etc. use different profit ratio, for higher timeframes I used a 6% profit ratio. Goodluck
@@DittoSwitz Can you please share the code so I can practice on it as well, As I am new to this channel and learning from it, would love to give it a try as well.
Hi, shall you code a double martingale!
That would be very unlikely
Hi Mr. Arthur, without any compilation error this robot barely makes a trade?
Maybe, it's not my strategy. Perhaps try different instruments.
@@OrchardForex Okay, thank you 🙌
Can u have the website have a engaging forum ?
I have tried that but I don't have time to answer all questions and the forums in the past have not generated a lot of community input, only questions.
@@OrchardForex forum members would ask questions and give answers also along with you as Admin .
The questions could get better follow up answers.
Thanks
Hi Professor,
Have u hooked this one on your github? Thanks
No, this is follow along only. That's the short answer. The longer answer:
We were able to load to GitHub for a while because we had some sponsorship. But once we started loading to GitHub our view time dropped through the floor. It seems most people just came, took the link to GitHub and didn't bother watching the video. Just grabbing as much free stuff as they can. So then sponsorship disappeared and with lower view time the little revenue we get from UA-cam to help with costs also reduced. Now we are back to follow along to encourage longer view time.
@@OrchardForex Fair enough, I don't actually care. Follow along is fine, is the best way to learn. I keep forgetting to like your videos, I fixed it now.
@@OrchardForex how come you don't accept donations in the form of Bitcoin, PayPal, cash app? Or maybe utilize UA-cams membership badge option for even something like $1/month which would unlock additional content like private links to the source code itself?
The lazy people get their code without learning a skill, other people get a chance to show appreciation through donation & you get revenue to offset expenses 😁
@@OrchardForex You are Right, You help a lot, so we at least have to watch your videos, Thanks!!
Hello there! It's possible that you to show one last round of the code at the end of the videos? Just show the whole code and that's it, end the video!!!
No, you have to watch the whole video
I am getting 32 errors When compiled. How to contact you, sir.
personally
I am getting errors like 'unexpected token', 'undeclared identifier', and 'some operator expected'
Try us on discord discord.gg/fuyJW55kx5
Indicatore link please whear
They are in Metatrader.
What is the Back testing Result ?
You should watch the video before asking questions like this.
@@OrchardForex you are not showing final result. Not only this EA. Your all videos. Bucause all results are bad 👎
@@ruwanc2003 Clearly watching the video is a little difficult for you. See 01:00
It also seems that you have no idea what this channel or video are about.
@@OrchardForex thank u for your time and the knowledge u give us
And clearly the man doesn't know what this channel about
@@llNuCLEaRll1 thank you for your support
Where i can download source code?
You have to copy from the video.