Hello All,
I am new to think script and would like to assign the date of the month high and low to a variable.
input ShowOnlyLastPeriod = Yes;
plot MonHigh = high(period = AggregationPeriod.MONTH)[1];
plot MonLow = low(period = "MONTH")[1];
plot MonthHigh = (high(period="MONTH")[1]);
I understand that there is no GetDate function in Thinkscript but how can I get the date of the high or low price assigned to a variable?
Def GetHighDt = GetDate(MonHigh);
Def GetLowDt = GetDate(MonLow);
I would like to use the date variables for other calculations.
Thanks
Jay
I am new to think script and would like to assign the date of the month high and low to a variable.
input ShowOnlyLastPeriod = Yes;
plot MonHigh = high(period = AggregationPeriod.MONTH)[1];
plot MonLow = low(period = "MONTH")[1];
plot MonthHigh = (high(period="MONTH")[1]);
I understand that there is no GetDate function in Thinkscript but how can I get the date of the high or low price assigned to a variable?
Def GetHighDt = GetDate(MonHigh);
Def GetLowDt = GetDate(MonLow);
I would like to use the date variables for other calculations.
Thanks
Jay