Sarasota + Florida/USA
Experience: Advanced
Platform: Ninja,tradestation,metatrader
Trading: Futures eminis
Posts: 6 since Sep 2014
Thanks Given: 2
Thanks Received: 0
|
I have an indicator that plots volume histograms from the session start time similar to dValueArea.
My indicator additionally allows sub session volume histograms to be triggered and displayed
within the session. I have done this by setting a boolean flag for a secondary session and
specifying a time stamp which specifies the time (bar) at which to start the sub session histogram.
By selecting the indicator's properties panel and setting the flag and time stamp and applying the changes
the chart will be redrawn with the child histograms in the specified places.
All of this works fine when using the indicator's property panel and applying the changes. My problem
is that I have added a simple toolstrip button to do the same thing. The button sets the boolean flag
and captures the desired bar.
My problem is that, unlike applying changes from the indicator's properties panel which apparently re-initializes
and redraws the chart, I get no changes when using the toolstrip button.
I have tried calling ChartControl.ChartPanel.Invalidate() and ChartControl.Refresh() from OnMarketUptate()
and within the button click routine to no avail.
I would greatly appreciate any advice that sheds light on the sequence of events that are triggered
when an indicator's properties are changed and how to initiate those changes programmatically.
Thanks in advance and I apologize if I am posting a redundant thread. I have not found the answer yet.
|