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)
- 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)
- 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!