TreborNamor / TradingView-Machine-Learning-GUI

Embark on a trading journey with this project's cutting-edge stop loss/take profit generator, fine-tuning your TradingView strategy to perfection. Harness the power of sklearn's machine learning algorithms to unlock unparalleled strategy optimization and unleash your trading potential.
https://www.robertsportfolio.dev/
MIT License
756 stars 227 forks source link

Problem at startup #54

Closed Andreymyski closed 1 year ago

Andreymyski commented 2 years ago

Hello, I did everything as it says in your instructions, but when I press RUN, CMD starts working, but the program freezes. And in the end, such mistakes come out, tell me what to do.

Could Not Click Strategy Tester Tab. Please Check web elements class name in commands.py file. Could Not click Overview Tab. Please Check web elements class name in commands.py file. Could not click settings button. Please check web_elements in commands.py file. Could not input tab button. Please check web_elements in commands.py file. Traceback (most recent call last): File "TradeViewGUI.py", line 153, in optimize_longs_shorts Optimize Longs Shorts.Long Short Script() File "scripts\OptimizeLongsShorts.py", line 21, in init self.run_script() File "scripts\OptimizeLongsShorts.py", line 37, in run_script self.click_enable_both_checkboxes() File "web_commands\commands.py", line 246, in click_enable_both_checkboxes

IndexError: list index out of range

8bc8ca5e5fed7d59a770ca218bd9dfe1

TreborNamor commented 2 years ago

How long ago did you download the repository? I believe I made an update to fix project on Monday evening

On Wed, Oct 19, 2022, 8:45 AM Andreymyski @.***> wrote:

Hello, I did everything as it says in your instructions, but when I press RUN, CMD starts working, but the program freezes. And in the end, such mistakes come out, tell me what to do.

Could Not Click Strategy Tester Tab. Please Check web elements class name in commands.py file. Could Not click Overview Tab. Please Check web elements class name in commands.py file. Could not click settings button. Please check web_elements in commands.py file. Could not input tab button. Please check web_elements in commands.py file. Traceback (most recent call last): File "TradeViewGUI.py", line 153, in optimize_longs_shorts Optimize Longs Shorts.Long Short Script() File "scripts\OptimizeLongsShorts.py", line 21, in init self.run_script() File "scripts\OptimizeLongsShorts.py", line 37, in run_script self.click_enable_both_checkboxes() File "web_commands\commands.py", line 246, in click_enable_both_checkboxes

IndexError: list index out of range

[image: 8bc8ca5e5fed7d59a770ca218bd9dfe1] https://user-images.githubusercontent.com/116179517/196708822-08b29c54-8889-4fda-93a2-36e30975ceea.jpg

— Reply to this email directly, view it on GitHub https://github.com/TreborNamor/TradingView-Machine-Learning-GUI/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHWMRNSRAMUL2PV4CNSP7DWD73QXANCNFSM6AAAAAARJER5MQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Andreymyski commented 2 years ago

I downloaded everything yesterday. I didn't change anything, I did everything according to the instructions

TreborNamor commented 2 years ago

I'll take a look at the code to see if things are still running correctly. That error "couldn't click settings button" is when the program is having trouble clicking the settings button on webpage. It could be an error on my code or it could be that the trading view strategy is unreachable

On Wed, Oct 19, 2022, 11:29 PM Andreymyski @.***> wrote:

I downloaded everything yesterday. I didn't change anything, I did everything according to the instructions

— Reply to this email directly, view it on GitHub https://github.com/TreborNamor/TradingView-Machine-Learning-GUI/issues/54#issuecomment-1284908587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHWMRPIOCUAHDKRXWIZ2IDWEDDCHANCNFSM6AAAAAARJER5MQ . You are receiving this because you commented.Message ID: @.*** com>

Andreymyski commented 2 years ago

I checked on different strategies, both on my own and on others that are closed, the result is the same. Maybe I need to install some libraries or something else?

Andreymyski commented 2 years ago

As I understand it, I'm fine. I've tried everything I can. Apparently Tradingview has changed something again.

maximus728 commented 1 year ago

I'm getting the exact same error. Did someone find a solution to this ?

Andreymyski commented 1 year ago

Yes, I found it. I don't use the program itself to run, but its python code in visual studio. After running the code, the program also runs, but without errors.

maximus728 commented 1 year ago

That worked for me. Thanks! I still get this error: "Could not input tab button. Please check web_element's in commands.py file."

and it takes quite a while to finish, which I guess is normal with the default settings (0/30)

Andreymyski commented 1 year ago

Install all dependencies: pip install -r requirements.txt

maximus728 commented 1 year ago

It is running now and doing its thing in firefox. but it seems to run forever, even with very simple parameters/settings (min stoploss 1 max stoploss 2 and 0 decimals). I also don t get the status updates in the CMD, Any Idea why that happens ? image

Andreymyski commented 1 year ago

I don't know. I get the results in visual studio itself

maximus728 commented 1 year ago

Ok thank your for your help!