Primitives

stopLoss

StopLossAlgo is a model that stops loss at a given percentage or ticks.

stopLoss (position)

StopLossAlgo is a model that stops loss at a given percentage or ticks.

Input parameters

PropTypeDefaultDescription
percentnumber0The percentage of loss to stop
ticksnumber0The number of ticks to stop loss
transmitbooleantrueWhether to transmit the stop loss order

SQL example

IF stopLoss ticks=10 transmit=false
        POS pnlTicks < -10 THEN stopLoss SET ticks=10, transmit=true

On this page