79082957

Date: 2024-10-13 11:03:28
Score: 1
Natty:
Report link

No, it´s not because of your subscription. Your code causes a runtime error in line 8:

enter image description here

Line 8 is lowest_0 := low[lowest_idx] and this function only accepts positive values, but ta.lowestbars() returns an OFFSET, a negative number.

I changed line 8 and added a minus sign: lowest_0 := low[-lowest_idx] and the script compiles without error.

I tried it on the TSLA chart on a 2 minute timeframe. The lowest value is $214.38, which corresponds with the lowest value on the chart.

This is your table:

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: August1328