lolo
New member
Hello everyone,
I wanted to create a script that calculates the percentage difference between the Pre Market high preferably 04:00 a.m until 09:29 a.m. editable.
An error appeared, the text HighestAll (Period is highlighted in red.
Can someone fix this problem?
Thanks a lot.
I wanted to create a script that calculates the percentage difference between the Pre Market high preferably 04:00 a.m until 09:29 a.m. editable.
An error appeared, the text HighestAll (Period is highlighted in red.
Can someone fix this problem?
Python:
input period_Type = AggregationPeriod.DAY;
input PrestartTime = 0400;
input PreendTime = 0929;
def begin = Highest(period = period_Type);
def end = close(period = period_Type);
def NetChg = begin - end;
def PctChg = (begin / end) - 1;
AddLabel(yes, Concat("%PM High to open = " , end), color.white);