Percent off high of day line


Category:
0
0

im trying to see if there is any way to make a indicator that draws a line at a percentage mark off of the HOD

for example the one im looking to make is a 20% retracement line from HOD

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on July 7, 2022 10:03 am
64 views
0
Private answer

The quickest and simplest solution is to reference the high from the daily time frame. However this means the solution will only work during regular session hours. But this is the free version and we have to live with limitations when the solution is free:

input percentBelow = 20.0;
def highOfDay = high(period = AggregationPeriod.DAY);
plot data = highOfDay * (1 - percentBelow * 0.01);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on July 7, 2022 1:16 pm