arr[] is not allocated and not resized before assignment
use
use
double arr[2];
or
ArrayResize(arr,2);
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
arr[1]=22.0;
Print ("array.... ", DoubleToStr(arr[1],4),">>>",arr[1]);
arr[1]=22.0+1.5;
Print ("array.... ", DoubleToStr(arr[1],4),">>>",arr[1]);
results in log file are:
21:09:17 test2 GBPUSD,M1: array.... 0.0000>>>0
21:09:17 test2 GBPUSD,M1: array.... 0.0000>>>0
Can anyone help? I want to put calculated indicator value into arr and let it plot on chart.