The examples I have seen so far create builtin study objects outside of main(). This seems reasonable since creating an object on every tick (or bar with setComputeOnClose) would likely impose a heavy processor load.
However, the only method I have seen to pass user-configurable parameters to efs code, such as specifying the length of a moving average, is through arguments to main(). But if a study object is created before main(), it appears you cannot set its parameters that way.
Is there another way of passing parameters to a formula, or is there a method to alter a study object's parameters after it's created? Or is there any other way to code using builtin studies that allows the user to affect its paramters?
However, the only method I have seen to pass user-configurable parameters to efs code, such as specifying the length of a moving average, is through arguments to main(). But if a study object is created before main(), it appears you cannot set its parameters that way.
Is there another way of passing parameters to a formula, or is there a method to alter a study object's parameters after it's created? Or is there any other way to code using builtin studies that allows the user to affect its paramters?
Comment