Tickerly automated trading logo

Tickerly

Full trade alert messages

Full trade alert messages

An alternative message structure which can be used is the so-called “Full Trade” alerts. This is an entry order which already contains predefined Take Profit and Stop Loss levels. This means that Tickerly should only be alerted when your strategy wants to make a new entry, and not on exit.

This requires a little bit more of your strategy or indicator, and might not be supported. If not, you can always use the standard alert message structure.

Full order supported exchanges

Note that this is only supported by Tickerly on the below exchanges:

Full trade alerts on strategy order fill messages

The alert message structure is a little bit different here and can be used in different ways. If your strategy does not have boxes in the “Inputs” section of the strategy options, you should use the below structure which should be entered in the “Message” box when you create an alert.

You can replace the plot numbers with whatever number is relevant for you, if you have your strategy set up differently:

{
"ticker": "{{ticker}}",
"action": "{{strategy.order.action}}",
"prev_position" : "{{strategy.prev_market_position}}",
"quantity": "{{strategy.order.contracts}}",
"takeprofit" : "{{plot_0}}",
"stoploss" : "{{plot_1}}",
"pointer" : "replace with pointer for your exchange here"
}
Full trade alerts inside strategy alert_message inputs

Alternatively, you can configure the alert messages inside the strategy, if your strategy has input boxes for entering custom messages on enter long, exit long, enter short and exit short respectively.

For this alert type, we will only be using the enter long and enter short boxes.

Furthermore, this requires that your strategy is able to replace some placeholder values with the values generated by the strategy for a trade. It typically takes the form of, for instance, #longTpPrice# which will be replaced by the take profit price. If your strategy supports this, then use the below alert structures for your enter long and enter short full trade alerts:

Enter long full trade message
{
"ticker": "#symbol#",
"action": "buy",
"prev_position" : "flat",
"quantity": "#quantity#",
"takeprofit" : "#longTpPrice#",
"stoploss" : "#longStopPrice#",
"pointer" : "replace with pointer for your exchange here"
}

All of the placeholders can be replaced by manually set fixed values, if needed, for e.g. replacing the “#symbol#” value with “BTCUSDTPERP”

Enter short full trade message
{
"ticker": "#symbol#",
"action": "sell",
"prev_position" : "flat",
"quantity": "#quantity#",
"takeprofit" : "#shortTpPrice#",
"stoploss" : "#shortStopPrice#",
"pointer" : "replace with pointer for your exchange here"
}

All above elements are mandatory and the order will not be placed correctly, if one element is missing.

Alert messages when using strategy inputs

Note that when settings alerts when using strategy input fields, you use a simpler message in the alert message box. In most cases is will be:

{{strategy.order.alert_message}} 

That will make your strategy alerts message look like this:

But there are also some strategies which use

{{strategy.order.comment}}

Refer to the details of your strategy and test which works for your strategy.

Additional alert structure details:
  1. takeprofit
    This is the price at which the trade will be closed and profit taken. This is a specific and locked price level, e.g. 43,324 USDT. This value will be sent to the exchange which will set this level on the order, without needed any alert from Tickerly to close the position.
  2. stoploss
    This is the price at which the trade will be closed and losses will be stopped if the trade goes against you. This is a specific and locked price level, e.g. 41,225 USDT. This value will be sent to the exchange which will set this level on the order, without needed any alert from Tickerly to close the position.