Eggo:
I want to get some values from my indicator to EA. But can get only from first buffer, how to get values from other buffers?
In example below, i try to get values from third buffer, and always get 4806 error. When I try to get from first buffer, everything is all right. I tested it in strategy tester.
Have another look at the iCustom documentation, in particular the "mode" parameter
double iCustom( string symbol, // symbol int timeframe, // timeframe string name, // path/name of the custom indicator compiled program ... // custom indicator input parameters (if necessary) int mode, // line index int shift // shift );
![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
I want to get some values from my indicator to EA. But can get only from first buffer, how to get values from other buffers?
In example below, i try to get values from third buffer, and always get 4806 error. When I try to get from first buffer, everything is all right. I tested it in strategy tester.