see example below (may apply to other strategies):
API Entry – Long
================
APIname(btcusdt) {
stop(if=positionLong);
cancel(which=all);
exchangeSettings(leverage=isolated,leverage=4);
market(side=buy, amount=200%b);
wait(2s);
limit(side=sell, amount=41%p, reduceOnly=true, offset=**@21761.766**);
limit(side=sell, amount=75%p, reduceOnly=true, offset=**@21936.37368**);
limit(side=sell, amount=100%p, reduceOnly=true, offset=**@22125.532**);
stopOrder(side=sell, amount=100%p, offset=**@20970.04**);
}
bot
===
Please login or Register to submit your answer

replied 4 years ago
Apologies this is not the issue, the problem was with my orders above the limit orders, LamboRambo helped me resolve it.