Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 03:07:23 +0000



Post From: Change plot style for current bar

[2014-12-22 20:15:50]
WarEagle - Posts: 73
I would like to be able to change the style or somehow highlight the value of an indicator on the current bar. I wrote an indicator that plots ahead on the chart so I have to use the cross-hairs to see the current value. If I could change the current plot on the indicator to either a thicker plot (see attached pic from another platform) or even a different style like a bar instead of a line that would be great. I tried using

if(sc.Index == sc.IndexOfLastVisibleBar) MyIndicator.DrawStyle = DRAWSTYLE_BAR;


but this changes the entire plot style from the beginning. I have also considered using a separate subgraph with the same indicator value but a different plot style, however I don't know how to get it to show only on the current bar. Would that be possible?

Thanks in advance.
imagehighlight_current_value.jpg / V - Attached On 2014-12-22 20:10:17 UTC - Size: 8.74 KB - 344 views