Hi all,
Using an already existing thinkScript to print vertical time lines, and to include labels, I was able to modify it so that it displays the three basic time points of the Ichimoku time theory approach (interval points at 9, 17, 26), and in terms of the 5 min intraday chart. It works very well on the 5 min chart, but not on 15min or others (where I would want it to make lines at the same time points as on the 5 min). See the images below. What am I missing in the thinkScript for it to work in 15 min, 1hr, etc. charts?
here is AA on 5 min (Fri, Oct 21, 22). the vertical time lines and labels are displayed correctly
https://postimg.cc/xq71PHBy
Here is AA on 15 min (Fri, Oct 21, 22). the vertical time lines and labels are not correct. Two are missing.
https://postimg.cc/K44nzPnn
This is the thinkScript:
input showlabels = yes;
AddLabel(showlabels and SecondsFromTime(0927) >= 0 and SecondsTillTime(0933) > 0, “Opening”, Color.YELLOW);
AddLabel(showlabels and SecondsFromTime(1012) >= 0 and SecondsTillTime(1018) > 0, “9”, Color.WHITE);
AddLabel(showlabels and SecondsFromTime(1052) >= 0 and SecondsTillTime(1058) > 0, “17”, Color.YELLOW);
AddLabel(showlabels and SecondsFromTime(1137) >= 0 and SecondsTillTime(1143) > 0, “26”, Color.WHITE);
input showverticals = yes;
AddVerticalLine(showverticals and SecondsFromTime(0930) == 0, “Opening”, Color.WHITE);
AddVerticalLine(showverticals and SecondsFromTime(1015) == 0, “9”, Color.WHITE);
AddVerticalLine(showverticals and SecondsFromTime(1055) == 0, “17”, Color.WHITE);
AddVerticalLine(showverticals and SecondsFromTime(1140) == 0, “26”, Color.WHITE);
Using an already existing thinkScript to print vertical time lines, and to include labels, I was able to modify it so that it displays the three basic time points of the Ichimoku time theory approach (interval points at 9, 17, 26), and in terms of the 5 min intraday chart. It works very well on the 5 min chart, but not on 15min or others (where I would want it to make lines at the same time points as on the 5 min). See the images below. What am I missing in the thinkScript for it to work in 15 min, 1hr, etc. charts?
here is AA on 5 min (Fri, Oct 21, 22). the vertical time lines and labels are displayed correctly
https://postimg.cc/xq71PHBy
Here is AA on 15 min (Fri, Oct 21, 22). the vertical time lines and labels are not correct. Two are missing.
https://postimg.cc/K44nzPnn
This is the thinkScript:
input showlabels = yes;
AddLabel(showlabels and SecondsFromTime(0927) >= 0 and SecondsTillTime(0933) > 0, “Opening”, Color.YELLOW);
AddLabel(showlabels and SecondsFromTime(1012) >= 0 and SecondsTillTime(1018) > 0, “9”, Color.WHITE);
AddLabel(showlabels and SecondsFromTime(1052) >= 0 and SecondsTillTime(1058) > 0, “17”, Color.YELLOW);
AddLabel(showlabels and SecondsFromTime(1137) >= 0 and SecondsTillTime(1143) > 0, “26”, Color.WHITE);
input showverticals = yes;
AddVerticalLine(showverticals and SecondsFromTime(0930) == 0, “Opening”, Color.WHITE);
AddVerticalLine(showverticals and SecondsFromTime(1015) == 0, “9”, Color.WHITE);
AddVerticalLine(showverticals and SecondsFromTime(1055) == 0, “17”, Color.WHITE);
AddVerticalLine(showverticals and SecondsFromTime(1140) == 0, “26”, Color.WHITE);