Hi,
I have written an efs to plot stochastics in a seperate study window, as is usual. And I have also added a variable which the user can select to plot the stoch on top of the price bars.
The study simply calls preMain() again and the selected variable tells a switch statement that it is to use setPriceStudy( true ).
Of course, I have to scale the stoch values, etc...not the problem.
The study works fine and the values are correct if I hard code for either the price window or the study pane. But when I change the variable in Edit Studies, the asked for study does not appear.
If I had started in a seperate pane, I still have that pane on screen and the stoch plots there with the scaled values, values that tell me that the preMain() settings were accepted. However, the pane never gets removed, and the plot never goes to the price window.
So, I guess this is a question on how do I get rid of that first setting and completely repaint my screen with the stoch where I want it?
Thanks for any ideas.
Bob
I have written an efs to plot stochastics in a seperate study window, as is usual. And I have also added a variable which the user can select to plot the stoch on top of the price bars.
The study simply calls preMain() again and the selected variable tells a switch statement that it is to use setPriceStudy( true ).
Of course, I have to scale the stoch values, etc...not the problem.
The study works fine and the values are correct if I hard code for either the price window or the study pane. But when I change the variable in Edit Studies, the asked for study does not appear.
If I had started in a seperate pane, I still have that pane on screen and the stoch plots there with the scaled values, values that tell me that the preMain() settings were accepted. However, the pane never gets removed, and the plot never goes to the price window.
So, I guess this is a question on how do I get rid of that first setting and completely repaint my screen with the stoch where I want it?
Thanks for any ideas.
Bob
Comment