Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 564
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
The values of the shift and iy variables in the above code are not checked for array outliers. Therefore, everything is logical. Check their values before using them, the error will disappear.
And to be more specific, you should know how CountBars and TimeFrame variables are generated.
CountBars =400 and TimeFrame =30, are set statically, in external.
On M30 everything is fine, on M15 it flies out.
How do I check shift and iy for outliers?
Maybe someone will take the time to look up where the error is.
Maybe someone will take the time to look up where the error is.
Guys, tell me how to add data to a file on a new line
my write function:
this is what I send to it:
I need to add more lines below it:
Guys, tell me how to add data to a file on a new line
my write function:
this is what I send to it:
I need to add more data below the line:
FileSeek() with flag SEEK_END, will help you.
<You substituted in the code
//+------------------------------------------------------------------+
to
//+
but it didn't help)
Guys, can you tell me why the advisor on Alpari often fails [Invalid volume], although the lot size does not exceed the maximum, trading from 23-45 to 1-00.
I attached the log, there is no such error on other brokers
I have taken the code from the example here and am dealing with it
I defined a method
It complains that it's already defined and has a body.
Question: where is it defined?
I have taken the code from the example here and am dealing with it
I defined a method
It complains that it's already defined and has a body.
Question: where is it defined?
Good evening!
I am puzzling over how to add a universal (for different instruments) code to calculate the lot for a deal based on % of deposit.
I made it like this:
Price ( opening price) and SL (Stop Loss) are calculated separately.
For pairs where quote currency is in dollars (eg EURUSD), for index SPX500 and for gold - all correctly calculated, but for pairs where the dollar is the first in a quote (eg USDJPY) does not work.
Please, what am I missing?