Alerts firing twice

Community / Features & BugsCategory: BugsAlerts firing twice
Paul asked 5 months ago

Strat: Bigger Extender

Alert: 1 Alert configured sending code to Alertatron

Alert code sent:

FTXAPIName(BTC-PERP) {

market(side=sell, amount=10%);

wait(1s);

stopOrder(position=0, [email protected]);

}

bot

So I end up with 2 trades…

Obv’s, if I increase the amount = 500% then the 2nd order fails with an exchange msg "Not enough margin", so its definately being received by the exchange.

The same happesn with TP code like this where I end up with 9 placed orders:

limit(side=buy, amount=33%p, reduceOnly=true, [email protected]#LongTP1#); # Create a limit order to sell 33% at the TP1 level (passed on via Strat)

limit(side=buy, amount=33%p, reduceOnly=true, [email protected]#LongTP2#); # Create a limit order to sell 33% at the TP2 level (passed on via Strat)

limit(position=0, reduceOnly=true, [email protected]#LongTP#); } # Create a limit order to sell 100% remaining at the TP3 level (passed on via Strat)

I’ve tried removing the strat and the alerts completely and re-adding them, to no avail.

1 Answers
Paul answered 5 months ago

Davidd,

Here’s a recent trade that initiated a Sell, that was supposed to hit TP1 and then sell 50%, but 100% was sold because the TP1 was added twice.

See jpg attached.

Thanks,

Paul

Attachments

Liked it? Take a second to support on Patreon!