DefineGlobalColor("Open", Color.LIGHT_GRAY);
DefineGlobalColor("Close", Color.LIGHT_GRAY);
input ShowTodayOnly = yes;
if ShowTodayOnly then
{
AddVerticalLine(secondsTillTime(0930) == 0, "Open", globalColor("Open"), Curve.Short_Dash);
} else {
Double.NaN;
}
I want this vertical line only for for current day..but getting error with this code...any help ...Thanks!
Want to have this line for every time frame from 4hr to 1 min...not for daily
DefineGlobalColor("Close", Color.LIGHT_GRAY);
input ShowTodayOnly = yes;
if ShowTodayOnly then
{
AddVerticalLine(secondsTillTime(0930) == 0, "Open", globalColor("Open"), Curve.Short_Dash);
} else {
Double.NaN;
}
I want this vertical line only for for current day..but getting error with this code...any help ...Thanks!
Want to have this line for every time frame from 4hr to 1 min...not for daily
Last edited: