You don't size the arrays
Your for loop is rather strange as it will only ever run 1 pass, when i==0
GumRai:
You don't size the arrays
Your for loop is rather strange as it will only ever run 1 pass, when i==0
I'm just using this loop while trying to assign Bid and Ask into my array, so it is not part of any program. I'll try to size the array and see how it goes.
ty
int size=10; double _Open[]; ArrayResize(_Open,size); double _Close[]; ArrayResize(_Close,size); for(int i=0; i<size;i++) { _Open[i]=Open[i]; _Close[i]=Close[i]; }just as an example
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
Hi guys,
I'm having trouble assigning Bid or Ask price into an array. When I try to assign it to my array nothing happens, when debugging it just simply stops without any Err. ??