Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1593

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
Colleagues, silly question, but I haven't needed it until now.
I need to enter a "specific" symbol in parameters, for example for MACD:
iMACD(Symbol(),PERIOD_M15,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
How to set EURUSD for Symbol(), I've tried different ways - it doesn't work
Not only that, look at the opening condition of the first order, see where CountOrders() is spelled
thanks
Colleagues, silly question, but I haven't needed it until now.
I need to enter a "specific" symbol in parameters, for example for MACD:
iMACD(Symbol(),PERIOD_M15,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
How to set EURUSD to Symbol(), I've tried different ways - it fails
iMACD("EURUSD",PERIOD_M15,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
or
input string symb="EURUSD";
iMACD( symb ,PERIOD_M15,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
Not only that, but look at the opening condition of the first order, see where CountOrders() is spelled out
and this function selects the currently open order from the total number of open orders? for(int pos=OrdersTotal()-1;pos>=0;pos--)
A question has arisen. When we call the Indicators tab from the chart, is the sequence of indicators in the table the same as they are loaded by time? And they are loaded strictly in order sequentially, or otherwise, all together, for example.
In general, the question was how to specify exactly the order of loading of indicators. (in a template or otherwise, but without scripts)
and this function selects the currently open order from the total number of open orders? for(int pos=OrdersTotal()-1;pos>=0;pos--)
A question has arisen. When we call the Indicators tab from the chart, is the sequence of indicators in the table the same as they are loaded by time? And they are loaded strictly in order sequentially, or otherwise, all together, for example.
In general, the question was how to specify exactly the order of loading of indicators. (in a template or otherwise, but without any scripts)
First, indicators are loaded in the main window in the order of their installation. Then basement indicators by window number.
The main window indicators are loaded first in the order they were installed. Then the basement ones by window number.
Yes, thank you, that reminds me), and the template is formed by the order of installation, so they start loading sequentially accordingly.
What not to get into the template, if you suddenly know, the order in the table of indicators corresponds to this sequence?
At first glance, it does. You remove the indicator from the middle. You load it. It comes last in the table.
Yes, thank you, that reminds me), and the template is formed by the order of installation, respectively start loading sequentially.
To keep out of the template, if you happen to know, does the order in the table of indicators correspond to this sequence?
At first glance, it does. You remove the indicator from the middle. You load it. It comes last in the table.
This is the range for finding orders
thanks
But in this function: double GetProfitFromStart()
yellow is just the name of the function, am I right?
And in principle it can be anything?