Set indicator property with parameter?

 

Hi everyone!

I want to change the property "indicator_applied_price", using a parameter.
I know to how create a parameter but I couldn't find how to apply the parameter to the indicator.

I've tried plotindexset and indicatorset, but I've not found where to use the parameter.


Can someone help me?

Thanks!

 
David C: I want to change the property "indicator_applied_price", using a parameter. I know to how create a parameter but I couldn't find how to apply the parameter to the indicator. I've tried plotindexset and indicatorset, but I've not found where to use the parameter. Can someone help me?

You should read — Documentation on MQL5: Custom Indicators / Connection between Indicator Properties and Functions

Common indicator properties

Functions of IndicatorSet...() type

Description

indicator_applied_price

No function, the property can be set only by the preprocessor directive.

Default price type used for the indicator calculation. It is specified when necessary, only if OnCalculate() of the first type is used.

The property value can also be set from the dialog of indicator properties in the "Parameters" tab - "Apply to".

Reason: