Follow two basic rules:
- OnInit is intended FOR INITIALIZATION !!! CopyBuffer cannot be used inside OnInit !!!
- Be sure to read the ArraySetAsSeries help

Documentation on MQL5: Array Functions / ArraySetAsSeries
- www.mql5.com
ArraySetAsSeries - Array Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Gholamhossein Eslamizadeh:
Hi, I am trying to use iCustom and I get wrong results can anybudy help me . thanks.
to set your zzBuffer with ArraySetAsSeries as true might help. that's the key difference vs mql4's.
Print("zigzag Handle = ",MaHandle," error = ",GetLastError()); ArraySetAsSeries(zzBuffer,true); int copy=CopyBuffer(MaHandle,0,0,limit,zzBuffer);
Vladimir Karputov:
Follow two basic rules:
- OnInit is intended FOR INITIALIZATION !!! CopyBuffer cannot be used inside OnInit !!!
- Be sure to read the ArraySetAsSeries help
Tsungche Kuo:
to set your zzBuffer with ArraySetAsSeries as true might help. that's the key difference vs mql4's.
I am really Grateful, you guys saved my day and fixed my headache. I hope best for you . Thanks a lot.

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, I am trying to use iCustom and I get wrong results can anybudy help me . thanks.