79824321

Date: 2025-11-19 10:32:22
Score: 1
Natty:
Report link

ternary operator ? : expect a bool expression before "?"
ta.dev(bar_hh, 2) - returns float, not a bool
so make smth like that

float bar_h1 = ta.dev(bar_hh, 2) > 0 ? na : bar_hh

or

float bar_h1 = ta.dev(bar_hh, 2) != 0 ? na : bar_hh

or any bool expression you need

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Novelty Trade