https://www.mql5.com/en/docs/basis/function/events#oncalculate
You can write second form of OnCalculate function and use predefined open[], high[], low[] or close[] array in accordance with your taste
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
- www.mql5.com
Language Basics / Functions / Event Handling Functions - Documentation on MQL5
I was busy I could replyt right away, thnk you.
but the problem I have with that indicator is that the end values are zero? I dont know what I am doing wrong.
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
I just copied the ROC code, and try to use a custum function that needs price[].
Also what is in price, close, open...?
thnks