Primitives

drops

Drops is used to close a position if the pnl is less than the average volatility or the direction is not the same as the market direction

drops (position)

Drops is used to close a position if the pnl is less than the average volatility or the direction is not the same as the market direction

Input parameters

PropTypeDefaultDescription
intervalsstring-the scale of the drops at a specific time, format: intervals, separated by , e.g 3-5-10-15-30
transmitboolean-if true, the algo will transmit
modestringpnlthe mode of the drops, default is "pine+dir", can be "dir | pine"
minnumber1minimum minutes a position has been opened, default is 1

SQL example

IF POS drops intervals="3-5-10-15-30" mode="dir"

On this page