TheFourGreatErrors / alpha-rptr

A trading bot for automated algorithmic trading on Binance Futures, Bybit, BitMEX and FTX written in python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to submitt trailing stop order...

Nai-mul opened this issue · comments

Hi, How can i add trolling stop instead of take profit into the strategy....thanks

commented

Hi, I would like to know the correct way to activate trailing stop.

Congratulations for the good work. @praveenbm5 @TheFourGreatErrors

commented

Thank you. Check out the BinanceFutures->exit() function.

On Sat, Aug 7, 2021, 6:44 AM hTn @.***> wrote: Hi, I would like to know the correct way to activate trailing stop. Congratulations for the good work. @Nai-mul https://github.com/Nai-mul @praveenbm5 https://github.com/praveenbm5 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#23 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD32Q6LU22NK2QXRFFKVNTT3SCIHANCNFSM5AY3H5PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

Could you give us some examples of using trailing-stop?

Thank You.

I do not have an example off hand. But here are a few pointers.

you can set the trail offset after you submit an order using self.exchange.exit(trail_offset=50) inside the strategy function.

I have never used this functionality. You should test thoroughly before deploying any strategy with this.

commented

I do not have an example off hand. But here are a few pointers.

you can set the trail offset after you submit an order using self.exchange.exit(trail_offset=50) inside the strategy function.

I have never used this functionality. You should test thoroughly before deploying any strategy with this.

Thanks.

And how does the trailing stop sent in the order function work?

I do not have an example off hand. But here are a few pointers.
you can set the trail offset after you submit an order using self.exchange.exit(trail_offset=50) inside the strategy function.
I have never used this functionality. You should test thoroughly before deploying any strategy with this.

Thanks.

And how does the trailing stop sent in the order function work?

This functionality is not yet implemented in the backtest and stub mode for Binance... So only works for Live mode. Should mirror TradingView order() implementation