Questions from Beginners MQL5 MT5 MetaTrader 5 - page 236
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
All calculations are done in OnCalculate (i.e. a new bar event is defined here)
Thanks, I'll have a look. Maybe I don't understand something, but it seems that there is no possibility to specify the buffer index to get the value of custom indicator.
iCustom gives the handle of the custom indicator. Then CopyBuffer, in which the second parameter is the buffer number.
Tell me, is it possible to get the value of an indicator in the script?
I tried it this way:
I get the value on any indicator 10.
I tried it this way too (the error 4807 comes out):
The following procedure will be used:
iCustom gives you the handle of the custom indicator. Then you CopyBuffer, in which the second parameter is the buffer number.
Tell me, is it possible to get the value of an indicator in the script?
I tried it this way:
I get the value on any indicator 10.
Tried another way (error 4807 comes out):
1.Read the iCustom help.
I see, I'll look into it. I asked about the script because it doesn't have "OnInit" and it gets the handle. Does this mean that the script requests the handle before "OnStart"?
OnInit is in experts and indicators.
It all worked out! Thank you!!!
Products in the Market have between 5 and 20 activations (at the discretion of the retailer). If you haven't used up your activation attempts, don't worry, they won't charge you extra money.