Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You have been informed of this before, so please post in the correct section for your queries.
Fernando Carreiro #:
Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You have been informed of this before, so please post in the correct section for your queries.
sorry some time do thing with out think sorry
for(int i = start; i < rates_total; i++) { ⋮ CorrelationBuffer[i] = correlation;
Your loop is non-series, but your buffer defaults to as-series.
In MT5, you must set the direction.
To define the indexing direction in the time[], open[], high[], low[], close[], tick_volume[], volume[] and spread[] and other arrays (copyXXXX functions), 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
not understund i must use ArrayGetAsSeries() instead of ArraySetAsSeries() ?

Documentation on MQL5: Array Functions / ArrayGetAsSeries
- www.mql5.com
It checks direction of an array index. Parameters array [in] Checked array. Return Value Returns true , if the specified array has the...

Documentation on MQL5: Array Functions / ArraySetAsSeries
- www.mql5.com
The function sets the AS_SERIES flag to a selected object of a dynamic array , and elements will be indexed like in timeseries . Parameters array[]...

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 guys anyone can explain me why this indicator not plot nothing ?