I have read through the earlier post as I want to set a max value for a plot. Hope you can help as the suggestions made did not work and it is because I am working with time.
I have written a simple code to time a volume bar relative to previous bars and then color it accordingly. This shows me whether the volume is accelerating or not. I want to limit the plot value of each bar to a max of 120 secs regardless of the actual time value.
I want to do this as the first bar on Sunday pm is 179,100 secs (fri close to sunday pm open)
and the average is about 70 secs during trading hours so the 70 gets lost from the graph once the bar is plotted. Same problem over night as well.
Obviously I cant have anything less or more than 86,400 secs in a day but I was hoping to be able to terminate the plot (not the value) at 120 secs per bar.
Any ideas?
Code:
TimeSpan timer = Time[0] - Time[1];
Value.Set(timer.TotalSeconds);
Thanks;
Ben.
Comment