Hi,
My goal is to get my simple test expert to fetch the data from my simple custom indicator. Below are the custom indicator and the expert. For some reason I can't get the data. Please help. Thanks!
This code in your indicator
//--- assign value 1 to index 0 of indicator buffer custom_buff[0]=1;
is assign value to buffer of the oldest bar.
This code however,
//--- assign value 1 to index rates_total (= bars) of indicator buffer custom_buff[rates_total] = 1;
is assign value to buffer of the newest/current bar
This code in your indicator
is assign value to buffer of the oldest bar.
This code however,
is assign value to buffer of the newest/current bar
//--- assign value 1 to index 0 of indicator buffer custom_buff[rates_total-1]=1;
You mean:
Because:
//--- assign value 1 to index 0 of indicator buffer custom_buff[rates_total]=1;
Generates the error:
2013.02.15 06:55:23 ReturnValuetoExperts (EURUSD,H4) array out of range in 'ReturnValuetoExperts.mq5' (41,15)
![Documentation on MQL5: MQL5 programs / Runtime Errors Documentation on MQL5: MQL5 programs / Runtime Errors](/i/community/logo_mql5_small.png)
- www.mql5.com
Because:
Generates the error:
2013.02.15 06:55:23 ReturnValuetoExperts (EURUSD,H4) array out of range in 'ReturnValuetoExperts.mq5' (41,15)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
My goal is to get my simple test expert to fetch the data from my simple custom indicator. Below are the custom indicator and the expert. For some reason I can't get the data. Please help. Thanks!