Array out of range
ArrayResize(lowP,cn);
- Emad E: Whats my problem?
Obviously you can't read. The image clearly states "array out of range"
-
double lowP[];Array has no size, you can't store into it. -
void OnInit(){ ⋮ … iLow(Symbol(),60,i);
Don't try to use any price or server related functions in OnInit (or on load), as there may be no connection/chart yet:- Terminal starts.
- Indicators/EAs are loaded. Static and globally declared variables are initialized. (Do not depend on a specific order.)
- OnInit is called.
- For indicators OnCalculate is called with any existing history.
- Human may have to enter password, connection to server begins.
- New history is received, OnCalculate called again.
- New tick is received, OnCalculate/OnTick is called. Now TickValue, TimeCurrent, account information and prices are valid.
Whats my problem?
show this!