79525542

Date: 2025-03-21 13:09:11
Score: 0.5
Natty:
Report link

It's an indexing error
Try like this:

    // Create new entry label
    long_entry_label := label.new(
      bar_index, low, 
      text="LONG ENTRY\nLeverage: " + str.tostring(leverage_long) + "x\nPrice: " + str.tostring(close, format.mintick), 
      color=bgcolor_with_transparency(long_entry_color), 
      style=label.style_label_up, 
      textcolor=label_text_color, 
      size=label_text_size,
      yloc=yloc.belowbar)

test

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