Documentation/AlgoCode/Function reference
once
Do not add while already in a trade.
once
Stops pyramiding from repeated when matches. The next entry can fire after an exit. With once, sell closes the open long instead of opening a short (unless the script is short only).
Return value
—
Example
once when rsi(14) is below 30 buy