[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 153
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
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.