Closed ceppos-cell closed 3 years ago
I think you try to run this on Windows and add_signal_handler
method only supports Linux compatible OS. It would be okay to comment out these two lines(https://github.com/nkaz001/sample-trading-bot/blob/master/tradingbot/ordermanager.py#L149). I will update it, too.
Worked, thanks!
Do you also know why it only places buy orders? Looked through the code and when threshold is achieved it should post short orders. When I start it, only buy orders are posted and executed. Do I need to change some settings on binance?
Did you check the buy - sell
value with the threshold
? I don't see any problem posting a sell order. You have to set the parameters in custom_strategy.py
and settings.py
. It's just a sample trading bot based on an order book imbalance strategy. I highly recommend you review the code first. By the way, I added logging the values that matter.
I wanted to test it with those strategies: https://github.com/nkaz001/algotrading-example Is that possible?
Am Do., 7. Okt. 2021 um 17:10 Uhr schrieb nkaz001 @.***
:
Did you check the buy - sell value with the threshold? I don't see any problem posting a sell order. You have to set the parameters in custom_strategy.py and settings.py. It's just a sample trading bot based on an order book imbalance strategy. I highly recommend you review the code first. By the way, I added logging the values that matter.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nkaz001/sample-trading-bot/issues/2#issuecomment-937887184, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQSRPEUFCIEZDQ6BCZJWKILUFWZ7RANCNFSM5FMMOE6A . 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&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Yes, it's possible but algotrading-example is backtested on BitMEX. There is my modified version of BitMEX's official sample market maker bot. https://github.com/nkaz001/sample-market-maker
You have to put in proper parameters and might need to modify the code according to the strategies. The modified version is implementing a simple order book imbalance strategy.
If you want to run a Binance bot, you need to find proper parameters by backtesting. Also still I strongly recommend you to backtest by yourself and review the code before you test it live. Testnet gives totally different data and execution results so it can be used only for checking if a bot functionally works.
Can I please get your email? Regards
Please leave your email then I will get in touch with you.
Sure, turioncep@gmail.com
Hey, I get this when I try to run it:
do you maybe know why? Regards