PureBytes Links
Trading Reference Links
|
I use the code below to print a trendline based on the prior day high on the
current day chart.
It works fine on Tues through Friday, but because of the weekend days does
not work on Monday
unless I change the input value to 2 for Monday. I would like to eliminate
the input so that the
code automatically adjusts for the weekend. Any suggestions would be
appreciated. The T1 variable
is used to set Trendline attributes.
Thanks in advance.
Bill
Inputs: DOW(1);
Variable: YH(-1), T1(-1);
If High[1]>0 Then Begin
YH = TL_New(Date, Sess1StartTime, High, Date+DOW, Sess1EndTime, High);
T1 = Text_New(Date+DOW, Sess1EndTime, High, "YH");
End;
|