- Need some help with my simple alert indicator
- Whats wrong with this simple code?
- Hi! Please my code doesnt show any data, Im new in Mql4 and I want to learn here is my code, what is wrong with it?
ASHWANI KUSHWAHA:
you will need to define what is wrong first before anyone can help...
First problem is you have not specified your indexing direction, both your buffers and the OnCalculate arrays to match your loop.
To define the indexing direction in the time[], open[], high[], low[], close[], tick_volume[], volume[] and spread[] arrays, call the ArrayGetAsSeries() function. In order not to depend on defaults, call the ArraySetAsSeries() function for the arrays to work with.
Event Handling / OnCalculate - Reference on algorithmic/automated trading language for MetaTrader 5
Event Handling / OnCalculate - Reference on algorithmic/automated trading language for MetaTrader 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