Sorry, we don't support your browser.  Install a modern browser

Controll DCA bot with webhook messages (base order and safety orders too)#598

The main idea is to launch a DCA bot:
Base order, safety order 1, safety order 2, safety order 3, etc.
Safety orders are placed at 1% intervals, with each subsequent order spaced 20% farther and the volume increased by 20%. This part is clear to me, no questions there.
What I’m curious about is whether I can trigger DCA orders via an indicator using webhook JSON messages — but only if the DCA order also respects the percentage levels defined in the basic DCA parameters.
Why? Because sometimes the indicator sends 2–3 webhook messages, but the price remains the same. I want the order to be placed ONLY if two conditions are met:
(1) The percentage condition from the DCA configuration
(2) A matching webhook message from the indicator
I hope I’ve explained my idea clearly.
Example:
Base order: 100 ✅
Webhook msg: Price: 99.8 ❌ (price is not lower than 100 - 1%)
Webhook msg: Price: 99 ✅ (price ≤ 100 - 1%)
Webhook msg: Price: 97.5 ✅ (price ≤ 99 - 1.2%)
Webhook msg: Price: 96.3 ❌ (price is not ≤ 97.5 - 1.32%)

2 months ago