How to use other price types (Median/Typical/etc) in developing a custom indicator
Dominik Egert:
To be able to use applied to, you will need to use the alternative OnCalculate signature.
Thank you. Yes, this is the solution! but only in MQL5. I need it in MQL4
Thank you. Yes, this is the solution! but only in MQL5. I need it in MQL4
You write on the MQL5 forum. You write in one of the main sections of MQL5 - naturally, you get answers for MQL5.
All questions about the old terminal are discussed ONLY in ONE, SPECIAL section of the forum: MQL4 and MetaTrader 4
I will transfer your topic to this section.
- There are many examples in the codebase.
- They all have
- An input specifying which price to use
- Code to either calculate the price explicitly, or call iMA of period 1, passing the input.
Hello, OnCalculate only produce open/high/low/close. How can I use use other prices types? Like original MT4 indicators.
I nead a clue, or reference to an existing indicator in codebase which I can get idea from it
Thanks