algotrader01:
Hello, struggling with a simple array copy. cannot find why it is wrong...
Works for me.
#property strict // because you should void OnStart() { int A[]={4,3,9,12,15}; int B[]; int numCopied = ArrayCopy(B,A,0,0,WHOLE_ARRAY); Print(StringFormat("Size: [%d] Num Copied [%d]", ArraySize(B), numCopied)); }
Results:
2018.04.19 12:18:44.777 Quick Info EURJPY,H1: Size: [5] Num Copied [5]

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
Hello, struggling with a simple array copy. cannot find why it is wrong...