I have created a strategy which needs to call on an indicator several times. The indicator has 19 parameters, and the strategy code begins to look cluttered when calling the indicator each time I need it for a calculation. Can I set the indicator as a variable/function and just use that variable/function in the rest of the code? If so, can you give me an example. The results will be output to the chart via a DrawText.
Thank you!
Comment