Value of TP and SL based on a trading view indicator

Hello. I’m using an indicator in Trading View which defines Take Profit Targets and SL dynamically, based on the ATR (average true range). See picture for the example.


Is there a possibility to define this with a gainium bot? Here is the corresponding webhook message:

{
“trigger_limit_price”: {{plot(“[Automation] Long Limit Order Price”)}},
“trigger_cancel_unfilled”: true,
“trigger_opposite_close”: false,
“trigger_id”: “xxx”,
“trigger_order_type”: “limit”,
“trigger_leverage_value”: 1,
“trigger_tp_type”: “price”,
“trigger_tp_value”: {{plot(“[Automation] Long Position TP2”)}},
“trigger_sl_type”: “price”,
“trigger_sl_value”: {{plot(“[Automation] Long Position SL”)}}
}

I hope you understand what I mean. As far as I know about the gainium bots, there is the possibility to set “Take Profit” to webhook, but there is no field to define the webhook.

Sorry my english could be improved :sweat_smile:

Best regards, Olivier

Yes you can do it with webhook, but Gainium Support tp with ATR natively, you don’t need tradingview for that.

As you can see in the first picture the TV Indicator delivers all the necessary values directly (Entry 90794, TP at 91259 and SL at 90329). Would gainium open such an order with these values?

We don’t support setting your entry and exit to specific values by using webhooks, but feel free to add it to featrure request so we can track it.