Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You can try this as a quick fix:
You get a file like this:
To stop adding to the file, you must manually delete the global variable STEP.
The question is this:
How do I set the values of the elements of an array if it has many elements?
At the moment I have the following working version:
On the global level, it is declared as follows:
In init():
But this is if only 2 external parameters. The tutorial says that you can only assign values to an array element by element, which is what I did.
Why can't it be done, for example, like this?
g_maPeriod[2] = {i_fastMaPeriod,i_slowMaPeriod};After all, if it's declared globally, it can be done this way:
This is allowed, but when variables are passed toinit() instead of numeric values, it's not... It's strange.
advise if there is an advisor that would close all trades on a chart
advise if there is an advisor that would close all trades on a chart
Go to
at
script "close first market order if it is first in the list"
Good afternoon! I don't understand, everything seems to be in order, but it won't put a position.
2013.02.13 19:15:37 2007.11.15 08:55 Version_dynamic_with_understanding_Alex_WearwolfTry GBPUSD,H4: Bid 2.0611 Price_SELL 2.0511 TP_SELL 2.0226 SL_SELL 2.0711
2013.02.13 19:15:37 2007.11.15 08:55 Version_dynamic_with_Alex_WearwolfTry GBPUSD,H4: OrderSend error 4051
Good afternoon! I don't understand, everything seems to be in order, but it won't put a position.
2013.02.13 19:15:37 2007.11.15 08:55 Version_dynamic_with_Alex_Wearwolf try GBPUSD,H4: Bid 2.0611 Price_SELL 2.0511 TP_SELL 2.0226 SL_SELL 2.0711
2013.02.13 19:15:37 2007.11.15 08:55 Version_dynamic_with_Alex_WearwolfTry GBPUSD,H4: OrderSend error 4051
Comment text, parameter 8. "NULL" in quotes.
something like this.