I am looking for the way to "setValue" for the Study Parameters from within the EFS code. Or may be some other way to store the values.
I use mouse double click to set values to the study variables (like here is the potential "target", here is the "stop loss" - show me what comes out).
My problem is that if I change the interval of the chart, my variable values are "reset".
I have also programmed an option to enter the values thru the Edit Parms Window - and in this case they are preserved after the interval change! But it is very cumbersome and unwieldy this way so I really have to find the way to use the mouse clicks.
One way to solve the problem of "reset" would be to get values from the mouse and store them in the study parms. Can it be done. I couldn't find any "setValue" method for the params.
Do you know the correct method or any workaround?
Thanks in advance for any help offered,
Leon
P.S. setGlobalValue is no good since I want to have this study active in several windows at the same time.
I use mouse double click to set values to the study variables (like here is the potential "target", here is the "stop loss" - show me what comes out).
My problem is that if I change the interval of the chart, my variable values are "reset".
I have also programmed an option to enter the values thru the Edit Parms Window - and in this case they are preserved after the interval change! But it is very cumbersome and unwieldy this way so I really have to find the way to use the mouse clicks.
One way to solve the problem of "reset" would be to get values from the mouse and store them in the study parms. Can it be done. I couldn't find any "setValue" method for the params.
Do you know the correct method or any workaround?
Thanks in advance for any help offered,
Leon
P.S. setGlobalValue is no good since I want to have this study active in several windows at the same time.
Comment