I will like to have a 5 day high and 5day low marked on an intraday chart.
I also want a horizontal line across the 5 day high and low
I coded it using the below
Timeframe (Daily)
myhigh=highest[5]
Mylow=lowest[5]
Return myhigh as “myhigh”, mylow as “mylow”
Please help. Thanks in advance
Shown below is an example of the chart
ZigoParticipant
Master
timeframe(daily, updateonclose)
myhigh = highest[5](high)
mylow= lowest[5](low)
timeframe(default)
return myhigh, mylow
Maybe this can help