You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thanks a lot onewithzachy, Luenbo! Your suggestions worked perfectly.
I've actually solved this one while waiting for somebody to reply. I got this idea from the book "Expert Advisor Programming" by Andrew Young:
Just thought of sharing my code in case somebody might stumble across the same task.
Thanks again!
Thanks a lot onewithzachy, Luenbo! Your suggestions worked perfectly.
I've actually solved this one while waiting for somebody to reply. I got this idea from the book "Expert Advisor Programming" by Andrew Young:
Just thought of sharing my code in case somebody might stumble across the same task.
Thanks again!
Thank You very much for saving my time! i optimized your code into one function for easier use:
you should add above code in global scope and use it in OnTick in this way:
Thank You very much for saving my time! i optimized your code into one function for easier use:
you should add above code in global scope and use it in OnTick in this way:
Thank you so much for this, I appreciate the updated function!
Hi onewithzachy,
Thanks for the advise! I've also stumbled across this article:
MQL5 Wizard - Trade Signals Based on Crossover of Two EMA with intraday time filter
but I find it very difficult to understand since all the links to CSignalITF and CSignal2EMA_ITF lead to a 404 error page.
I've resorted to digging up the source codes in the include folder instead and I'm trying to dissect the classes line by line.
Thanks again!
I had this same problem a few days ago and some one helped me so I will help you.
First of all you need a simple bool funtion
you can see here that I am allowing trades between the hours of 7am and 9am then 1pm and 3 pm.
I then need to call the function just before entering the trade and declare it to be true for the trade to work.
Hope that helps
you can see here that I am allowing trades between the hours of 7am and 9am then 1pm and 3 pm.
I then need to call the function just before entering the trade and declare it to be true for the trade to work.
Hope that helps
You are not.
You are allowing trades between 7AM and 9:59:59 , 1PM and 3:59:59
This can be optimized:
Not compiled, not tested
Not compiled, not tested.
I'm doing it like this:
You are not.
You are allowing trades between 7AM and 9:59:59 , 1PM and 3:59:59
Please help me to add minutes....ie, from 7am to 7:03 and 1pm to 1:03... ea should only trade only 3 minutes from candle opening...please help..thanks
Please help me to add minutes....ie, from 7am to 7:03 and 1pm to 1:03... ea should only trade only 3 minutes from candle opening...please help..thanks