Discussion of article "Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners" - page 12
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
Please forgive me, I didn't understand how to use this button at the time, now I think I do.
Please forgive me, I didn't understand then how to use this button, now I think I do.
It's all about the condition:
It lacks a check that the date you specified date1 has occurred. Now you should open an order immediately with the first tick, if there are no open orders! I.e. you need to do the same as here,
but specify the correct day, hour, minute, second (a few seconds).
Yes and one more thing. Prices sl and tp should be normalised, otherwise there may be errors.
Something it has stopped joining to the chart and please tell me what it means to normalise sl and tp prices?
Please forgive me, I didn't understand how to use this button, now I think I understand it.
When date1 occurs we open a position, when date2 occurs we close it, after that we do nothing until restart.
Something it has stopped joining to the chart and please tell me what it means to normalise sl and tp prices?
Thank you all very much for your help and for your patience, but so far, unfortunately, it does not work!!!?
I'm trying to add an Expert Advisor, but it's not added!?!?
Thank you all very much for your help and for your patience, but so far, unfortunately, it does not work!!!?
I'm trying to add an Expert Advisor, but it's not added!?!?
It means that you have not created an Expert Advisor, but an indicator.
Create a new EA through the wizard and replace only the code of the OnStart function and all global variables/external parameters.
It means that you have not created an Expert Advisor, but an indicator.
Create a new EA through the wizard and replace only the code of the OnStart function and all global variables/external parameters.
Thank you all very much for your help and for your patience, but so far, unfortunately, it does not work!!!?
I'm trying to add an Expert Advisor, but it's not added!?!?
Create a new Expert Advisor in MQL4, copy the existing code there and replace the line
by
This is in case you want to create an Expert Advisor. If you want to create a script, create a new script and completely copy the existing code there without changes (although there is no sense in a script in case of time-based trading).
Where is the code that satisfies this description? I don't understand something, or there is no such thing in the code.