This is an old revision of the document!
Pre-defined Variables for Custom Notifications
Variable | Description |
---|---|
account | |
alert | |
available | |
balance | |
bartime | |
exchange | |
leverage | |
price | |
time | |
total |
Receive Information about an Open Position
check=position notify=telegram:"{_symbol} {_side} position - entry: {_entry} - size: {_size} ({relSize}) - profit: {_profit} ({pnlTotal})"
The following additional built in variables are available for notifications on position check or close commands:
Variable | Description |
---|---|
_date | Date/Time when position was opened (if supported) |
_entry | Average entry price of the position |
_profit | Absolute profit/loss of the position (native units/contracts) |
_side | Side of the position - long or short |
_size | Absolute size of the position (native units/contracts) |
_symbol | Symbol/market of the position |
pnl | PnL relative to the unleveraged margin used by the position |
pnlLev | Same as above but taking position leverage into account (multiplied by leverage) |
pnlTotal | Current PnL in relation to total account equity (use yield=balance for relation to available balance) |
relSize | Relative size of the position in relation to total account equity (use yield=balance for relation to available balance) |
Attention
Always double check that you are using the right syntax/alert!