[MQL4 Indicator Dev] How to attach an indicator to the current chart?

 

Hi,

i'm writing a custom indicator: because it uses a Heiken Ashi indicator internally, i need to show the Heiken Ashi on the chart on which my indicator is attached on.

How can it be done using mql4?

Thank you 

 
Marco Strazzeri:

Hi,

i'm writing a custom indicator: because it uses a Heiken Ashi indicator internally, i need to show the Heiken Ashi on the chart on which my indicator is attached on.

How can it be done using mql4?

Thank you 

You can't do that directly in MQL4. You could create your own heiken ashi buffers inside your custom indicator. Or, use a template which includes your custom indicator and the heiken ashi indicator.

 
Marco Strazzeri: i'm writing a custom indicator: because it uses a Heiken Ashi indicator internally,
Don't do that. Add a HA indicator to your chart and just get the values of the indicator with iCustom. Detailed explanation of iCustom - MQL4 forum
Reason: