Primitives

takeProfit

TakeProfitAlgo is a model that takes profit at a given percentage or ticks.

takeProfit (position)

TakeProfitAlgo is a model that takes profit at a given percentage or ticks.

Input parameters

PropTypeDefaultDescription
percentnumber0The percentage of profit to take
ticksnumber0The number of ticks to take profit
transmitbooleantrueWhether to transmit the take profit order

SQL example

IF takeProfit ticks=10 transmit=false
        POS pnlTicks > 10 THEN takeProfit SET ticks=10, transmit=true

On this page