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
| Prop | Type | Default | Description |
|---|---|---|---|
percent | number | 0 | The percentage of profit to take |
ticks | number | 0 | The number of ticks to take profit |
transmit | boolean | true | Whether to transmit the take profit order |
SQL example
IF takeProfit ticks=10 transmit=false
POS pnlTicks > 10 THEN takeProfit SET ticks=10, transmit=truefollowStopLoss
Follow Stop Loss with a stop loss percentage or ticks and some options to make it invisible(not visible to the broker), it follows the the position price and modifies the stop loss order to trail the position.
tickFlow
TickFlowAlgo is a model that uses the tick flow to determine the direction of the market.