I want to add 2 lines to the momentum indicator. But I would like to be able to pass in the line values as parameters to the initialization of the momentum indicator.
For example, instead of the normal instantiation:
Momentum1 = Momentum(SMASlow, Period);
GreenLine = 0.02; RedLine = -0.02; Momentum1 = Momentum(SMASlow, Period, GreenLine, RedLine);
In this way I am able to change the position of the green and red lines when the indicator is instantiated instead of just having a hard coded red and green line that can't be changed.
Thank you for your help!

Comment