Montpellier
Posts: 6 since Apr 2021
Thanks Given: 3
Thanks Received: 0
|
I've made this script where the horizontal
line should appear in the chart
,but it applies to all days i'd like to be
applied only on the current day.
def AP = AggregationPeriod.DAY;
def Priorclose = close(period = AP)[1];
def HighOfTheDay = high(period = AP);
plot Red = (HighOfTheDay + Priorclose) / 5 ;
plot green = (HighOfTheDay + Priorclose) *(0.7) ;
|