help with this simple indicator code
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.
I just copied the ROC code, and try to use a custum function that needs price[].
Also what is in price, close, open...?
thnks