jptsantossilva / BEC

Trading bot for Binance exchange using EMA cross strategy on 1D, 4h, and 1h timeframes. Analyzes 4yrs of coin prices to select profitable EMA cross. Auto-identifies accumulation and bullish phases. Has web dashboard and Telegram alerts.
MIT License
45 stars 14 forks source link

Dashboard Error #16

Closed tecnologiamvv closed 1 year ago

tecnologiamvv commented 1 year ago

image

What could be causing this error? When running, this message appears.

jptsantossilva commented 1 year ago

On first start it may take a few minutes, like 10min, to get Balance data from Binance. On the first start will get data from last 30 days.

tecnologiamvv commented 1 year ago

The error persists even after a while. Is there anything to be done?

jptsantossilva commented 1 year ago

I'm doing some improvements on the dashboard. Get todays latest version, open dashboard and if there is no balance chart data click refresh button.

tecnologiamvv commented 1 year ago

Excellent job. The panel worked fine. To activate the bot just keep the bot running? Can I only have a balance in BUSD?

htnlabs commented 1 year ago

Is the balance not updated after a new deposit? Even clicking refresh, the balance is not updated.

jptsantossilva commented 1 year ago

To run the boot in BUSD you must create the cronjobs below and got to Dashboard - Settings and select the timeframes you want to use, set the trade against to BUSD and minimum position size to 20 since it's the lowest trade amount on Binance. Make sure your server is in UTC+0 time zone to get the candle close time matching. I'm working on a scheduler to work in any time-zone but it's still under development.

image

BUSD

0 cd ~/Documents/bot_BUSD && python3 main.py 1h prod 0 /4 cd ~/Documents/bot_BUSD && python3 main.py 4h prod 0 0 cd ~/Documents/bot_BUSD && python3 main.py 1d prod 0 0 cd ~/Documents/bot_BUSD && python3 symbol_by_market_phase.py 1d BUSD /15 * cd ~/Documents/bot_BUSD && python3 super_rsi.py

dashboard

@reboot cd ~/Documents/bot_BUSD && python3 -m streamlit run pnl.py

jptsantossilva commented 1 year ago

Is the balance not updated after a new deposit? Even clicking refresh, the balance is not updated.

The balance is a daily close snapshot and not a real-time balance. Its to be used to check the portfolio balance and its performance, on a daily basis. You can see that the most recent date is always the day before today. Its like a Daily close Balance. Maybe I should rename it and add an additional Real time Balance.

jptsantossilva commented 1 year ago

Excellent job. The panel worked fine. To activate the bot just keep the bot running? Can I only have a balance in BUSD?

you can have other balances. The bot will only use BUSD if that's the one selected on the Dashboard Settings.

htnlabs commented 1 year ago

Is the balance not updated after a new deposit? Even clicking refresh, the balance is not updated.

The balance is a daily close snapshot and not a real-time balance. Its to be used to check the portfolio balance and its performance, on a daily basis. You can see that the most recent date is always the day before today. Its like a Daily close Balance. Maybe I should rename it and add an additional Real time Balance.

Tks. Good job.

htnlabs commented 1 year ago

0 cd ~/Documents/bot_BUSD && python3 main.py 1h prod 0 /4 cd ~/Documents/bot_BUSD && python3 main.py 4h prod 0 0 cd ~/Documents/bot_BUSD && python3 main.py 1d prod 0 0 cd ~/Documents/bot_BUSD && python3 symbol_by_market_phase.py 1d BUSD /15 * cd ~/Documents/bot_BUSD && python3 super_rsi.py

Does schedule.py in cron already solve it?

htnlabs commented 1 year ago

Two days running on busd but no open orders, is it normal for the strategy?

jptsantossilva commented 1 year ago

0 cd ~/Documents/bot_BUSD && python3 main.py 1h prod 0 /4 cd ~/Documents/bot_BUSD && python3 main.py 4h prod 0 0 cd ~/Documents/bot_BUSD && python3 main.py 1d prod 0 0 cd ~/Documents/bot_BUSD && python3 symbol_by_market_phase.py 1d BUSD /15 * cd ~/Documents/bot_BUSD && python3 super_rsi.py

Does schedule.py in cron already solve it?

Schedule needs more development and testing

jptsantossilva commented 1 year ago

Two days running on busd but no open orders, is it normal for the strategy?

If the trend is not going on strategy favour it stays aside. If you want to check, go to Dashboard - Best Ema and get ema fast and ema slow from the top performers list and open the charts on tradingview. If any ema fast crossed above ema slow it will buy and sell if otherwise. Keep in mind that backtesting to find best emas in each pair can take a few hours on a fresh bot install.

htnlabs commented 1 year ago

Excellent.

Two days running on busd but no open orders, is it normal for the strategy?

If the trend is not going on strategy favour it stays aside. If you want to check, go to Dashboard - Best Ema and get ema fast and ema slow from the top performers list and open the charts on tradingview. If any ema fast crossed above ema slow it will buy and sell if otherwise. Keep in mind that backtesting to find best emas in each pair can take a few hours on a fresh bot install.

Excellent