-
Notifications
You must be signed in to change notification settings - Fork 2k
Some strategies do not poll the latest trading price in trade command (Binance) #1609
Comments
They don't work under 1m period length, it is in the code at the bottom of each strategy.js |
Thanks for your correction. I didn't know that there are parameter ranges under the bottom of each strategy, my mistake. Sadly though, the issue stays the same. |
The parameters at the bottom are just for darwin.js, no releatiob to "real" trading or strategy limits. As the OHLC values are comming from engine i dont really understand the problem. Could you please explain a bit more and give reference to the current price feed of binance (to compare values). |
I think I'm encountering the very same problem. System information Here it is a screenshot of the results: If you have any idea of where to look so as to fix it, I really appreciate... |
After some troubleshooting... The problem is inside the strategies.js. (Obviously, the value could be whatever) Someone can explain me why? Thanks. |
--min_periods or c.min_periods is one of really important value. Some Strategys set it to a decent values. As they miss-use it as length_definition for indicators. |
Good to know. I have to say that my strategy.js file (bollinger folder) was exactly the default. So it was quite impossible for a dummy like me to understand where the problem could be in a short time. |
System information
zenbot trade binance.ONT-BNB --strategy momentum --momentum_size 4 --period_length 30s
Describe the problem
Some trading strategies, e.g. Momentum & Bollinger, are found malfunction in trade command. When I run the trade command, it doesn't keep polling the latest trade of the trading pair. Instead, it just keep retrieving the same trade with the same price & time for all day long.
That turns my bot into useless, as it cannot make any decisions & deems the trading pair's price as remain the same.
Yet it performs pretty well in simulation mode (not paper mode), and some trading strategies, like trend_bollinger, just work fine.
I wonder if I've input any invalid / wrong parameters. Please let me know.
Source code / Error logs
No error logs are found.
The text was updated successfully, but these errors were encountered: