markusaksli / TradeBot

Crypto trading bot using Binance API (Java)
GNU General Public License v3.0
373 stars 138 forks source link

No backtesting files detected #5

Closed Maximal30 closed 3 years ago

Maximal30 commented 3 years ago

Hello. Thanks for your software. There was a problem using from backtest. After creation, the program does not find it, despite the fact that it is physically created in the directory. Example: Enter bot mode (live, simulation, backtesting, collection) backtesting

---Entering backtesting mode

Backtesting data files:

[1] MATICUSDT_2021.01.01-2021.03.20.dat [2] MATICUSDT_2021.03.01-2021.03.20.dat

Enter a number to select the backtesting data file ---Setting up... java.io.FileNotFoundException: backtesting\MATICUSDT_2021.01.01-2021.03.20.dat (Нет такого файла или каталога) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.(FileInputStream.java:157) at java.base/java.io.FileInputStream.(FileInputStream.java:112) at data.PriceReader.(PriceReader.java:10) at trading.Currency.(Currency.java:85) at modes.Backtesting.startBacktesting(Backtesting.java:51) at system.Main.main(Main.java:80) java.lang.NullPointerException at trading.Currency.log(Currency.java:187) at modes.Backtesting.startBacktesting(Backtesting.java:68) at system.Main.main(Main.java:80) Testing failed, try again

markusaksli commented 3 years ago

Does the file exist at backtesting\MATICUSDT_2021.01.01-2021.03.20.dat compared to the exe location? Does the path match exactly what is mentioned in the error?

Maybe this has something to do with the localization of your system.

markusaksli commented 3 years ago

Should be fixed by https://github.com/markusaksli/TradeBot/commit/e9eeef1d89c8af142b25079d3d48909163f501fa