my code is not generating the correct ATR signals, can anyone help me in finding the error?
- 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