Documentation/AlgoCode/Function reference
label
Optional custom text tag on the bar. Use inside when. Optional up / down.
label "Buy" label up "Buy"
Shows the quoted text on that bar. buy / sell / exit already caption the fill as Buy @ price — write label only for a different message. Direction up or down is optional — if omitted, Dovee infers it from a nearby buy or sell.
Return value
—
Example
when rsi(14) is below 30 buy label "Oversold"