one can use the value of Input[barsAgo] since this allows flexibility for what the indicator is calculated based off of, because users have the option to select a price type (High, Open, Close etc...) from the Indicator Dialog window.
This is nice and working correctly.
However, if I write e.g. High[barsAgo] in the script, although this also works correctly, my problem is that the user still could select a price type (High, Open, Close etc...) from the Indicator Dialog window and it doesn’t seem that the logic is hard coded in the script for something other than Input[barsAgo] and changing the setting has no effect.
My suggestion:
If other than Input[barsAgo] is used then darken (make it impossible to change) the price type in the Indicator Dialog window (Data \ Input series).
Comment