Code Monkey home page Code Monkey logo

trebornamor / tradingview-machine-learning-gui Goto Github PK

View Code? Open in Web Editor NEW
722.0 34.0 219.0 194.61 MB

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.

Home Page: https://www.robertsportfolio.dev/

License: MIT License

Python 4.47% HTML 95.53%
python machine-learning bot tradingview stock stock-market optimize strategy trading trading-strategies trading-algorithms

tradingview-machine-learning-gui's Introduction

TradingView Machine Learning GUI

Project Overview

This project primarily features a stop loss/take profit generator capable of determining the optimal parameters for your TradingView strategy. Additionally, it incorporates machine learning algorithms, using sklearn, to hyper-optimize your TradingView strategy. The project includes a comprehensive range of ratios, such as Sharpe, Sortino, Calmar, Information, Treynor, and Max Profit, providing a multifaceted approach to strategy optimization. Another key feature is the next-day closing price predictor, a script that empowers you to forecast the following day's closing price accurately. Please refer to the machine learning directory to access the stored pictures or examine the comments in the source code for a clearer understanding. To ensure user-friendliness and accessibility for traders of all expertise levels, the project includes a Graphical User Interface (GUI). Here is live example of TradeView

image image

Disclaimer

This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.

We strongly recommend you to have coding and Python knowledge. Do not hesitate to read the source code and understand the mechanism of this bot.

Installation Instructions

#1. Download Firefox, and TradingView_Machine_Learning folder here.

FireFox

TradingView_Machine Learning

#2. Extract zip file to Desktop and Execute TradeViewGUI.exe file.

image

#3. Copy and Paste Firefox Profile Path to App. image image

#4. Inside Firefox, login into your TradingView profile. Go to your TradingView chart and add the TradingView strategy you want to optimize. When you add the strategy to chart make sure to press CTRL + S on your keyboard to save your chart. I have a TradingView Strategy that is ready to use. You can browse the strategy source code here. If you want to create a custom TradingView Strategy click here. image

#5. Enter Your long and short parameters and click Run button. image

Tips:

  • CheckBox: You can hide Firefox browser when checkbox is enabled.

  • Minimum Long Stoploss: The minimum percentage you are willing to risk for your strategy. For example, a 1% minimum risk.

  • Maximum Long Stoploss: The maximum percentage you are willing to risk for your strategy. For example, a 30% maximum risk.

  • Minimum Long Takeprofit: The minimum percentage you are willing to risk for your strategy. For example, a 1% minimum risk.

  • Maximum Long Takeprofit: The maximum percentage you are willing to risk for your strategy. For example, a 30% maximum risk. -Long Increment: When option is available, do you want the strategy to increment in steps of 1 or .1 during parameter search. (Default is set to .1)

  • Minimum Short Stoploss: The minimum percentage you are willing to risk for your strategy. For example, a 1% minimum risk.

  • Maximum Short Stoploss: The maximum percentage you are willing to risk for your strategy. For example, a 30% maximum risk.

  • Minimum Short Takeprofit: The minimum percentage you are willing to risk for your strategy. For example, a 1% minimum risk.

  • Maximum Short Takeprofit: The maximum percentage you are willing to risk for your strategy. For example, a 30% maximum risk.

  • Short Increment: When option is available, do you want the strategy to increment in steps of 1 or .1 during parameter search. (Default is set to .1)

  • Decimal Place: When option is available, by what decimal place would you like during strategy search. (Default is set to 1)

  • Max Attempts: What is the maximum amount of attempts would you like the strategy try. (Default is set to 30)

  • Firefox Path: The path used to run selenium webdriver.

Contributing

We welcome contributions from the community. If you wish to contribute:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make the changes/additions.
  4. Commit your changes.
  5. Push the changes to your forked repository.
  6. Open a pull request from your forked repository to this repository.

Please ensure your code adheres to our coding standards and passes all tests before submitting a pull request.

License

This project is licensed under the MIT License.

Contact Information

For any questions, feedback, or discussions, feel free to reach out to me:

Acknowledgements

Thanks to all contributors and users for making this project possible. If you find this project helpful, please consider starring the repository to show your support.

tradingview-machine-learning-gui's People

Contributors

evgeny-mamaev avatar trebornamor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tradingview-machine-learning-gui's Issues

can't find '__main__' ???

Hi
first thank for the great work!!!

I get this in pycharm:

/home/mhi/anaconda3/envs/TradingView_Machine_Learning/bin/python: can't find '__main__' module in '/home/mhi/PycharmProjects/TradingView_Machine_Learning'

Process finished with exit code 1

in the linux terminal and conda enviroment:

(TradingView_Machine_Learning) mhi@coha:~/PycharmProjects/TradingView_Machine_Learning$ python3 scripts/stoploss_linear.py 
Traceback (most recent call last):
  File "scripts/stoploss_linear.py", line 3, in <module>
    from functions import click, webdriver, show_me, get, find
ModuleNotFoundError: No module named 'functions'

and that at the normal linux terminal:

mhi@coha:~/PycharmProjects/TradingView_Machine_Learning$ python3 scripts/stoploss_linear.py 
Traceback (most recent call last):
  File "/home/mhi/PycharmProjects/TradingView_Machine_Learning/scripts/stoploss_linear.py", line 3, in <module>
    from functions import click, webdriver, show_me, get, find
ModuleNotFoundError: No module named 'functions'

ok I'am new to pychame! I have to activate the conda enviroment manual in the pychame terminal and the webdriver-manager package can'tbeinstalled via conda only via pip.

but the results from the normal linux-system terminal also failed all modulules are there install with pip in the os default interpreter path

Increments?

When reviewing the data presented. It shows a few times the same searches, hence getting the same result. Would it be possible to have it go up in chronological order?

Index List Out of Range

====== WebDriver manager ======
Current firefox version is 92.0.1
Get LATEST driver version for 92.0.1
Driver [C:\Users\User.wdm\drivers\geckodriver\win64\v0.30.0\geckodriver.exe] found in cache
Generating Max Profit For Stop Loss.
Loading script...

Traceback (most recent call last):
File "TradeViewGUI.py", line 122, in optimize_longs_shorts
name = obj.objectName()
File "OptimizeLongsShorts.py", line 17, in init
self.run_script()
File "OptimizeLongsShorts.py", line 39, in run_script
self.click_enable_both_checkboxes()
File "my_functions.py", line 238, in click_enable_both_checkboxes
long_checkbox = self.driver.find_elements_by_xpath("//*[@Class='input-24iGIobO']")[0]
IndexError: list index out of range

looks like i have an issue in the segment of code suppose to read the checkboxes...

Error on startup

Hi - I know you have likely had to do this before and I apologise but it might be an error related to TradingView web elements moving.

Would you be able to fix this? It looks like an amazing project


Error from .exe

Traceback (most recent call last):
File "TradeViewGUI.py", line 153, in optimize_longs_shorts
OptimizeLongsShorts.LongShortScript()
File "scripts\OptimizeLongsShorts.py", line 21, in init
self.run_script()
File "scripts\OptimizeLongsShorts.py", line 36, in run_script
self.click_enable_both_checkboxes()
File "web_commands\commands.py", line 286, in click_enable_both_checkboxes
long_checkbox = self.driver.find_element(By.XPATH, "//span[contains(., 'Enable Long Strategy')]/preceding-sibling::span/input[@type='checkbox']")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "selenium\webdriver\remote\webdriver.py", line 831, in find_element
File "selenium\webdriver\remote\webdriver.py", line 440, in execute
File "selenium\webdriver\remote\errorhandler.py", line 245, in check_response
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //span[contains(., 'Enable Long Strategy')]/preceding-sibling::span/input[@type='checkbox']
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:507:5
dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:132:16


error from .py


TimeoutException Traceback (most recent call last)
d:\Documents\Trading\coding work\machine_learning\TradingView-Machine-Learning-GUI-master\TradingView-Machine-Learning-GUI-master\TradeViewGUI.py in line 153, in Main.optimize_longs_shorts(self)
150 if self.comboBox.currentIndex() == 0:
151 from scripts import OptimizeLongsShorts
--> 153 OptimizeLongsShorts.LongShortScript()

File d:\Documents\Trading\coding work\machine_learning\TradingView-Machine-Learning-GUI-master\TradingView-Machine-Learning-GUI-master\scripts\OptimizeLongsShorts.py:21, in LongShortScript.init(self)
19 Main.init(self)
20 self.driver = self.create_driver()
---> 21 self.run_script()

File d:\Documents\Trading\coding work\machine_learning\TradingView-Machine-Learning-GUI-master\TradingView-Machine-Learning-GUI-master\scripts\OptimizeLongsShorts.py:36, in LongShortScript.run_script(self)
34 self.click_settings_button(wait)
35 self.click_input_tab()
---> 36 self.click_enable_both_checkboxes()
37 self.click_reset_all_inputs(wait)
38 self.click_ok_button()

File d:\Documents\Trading\coding work\machine_learning\TradingView-Machine-Learning-GUI-master\TradingView-Machine-Learning-GUI-master\web_commands\commands.py:291, in Functions.click_enable_both_checkboxes(self, long, short)
289 if long:
290 wait = WebDriverWait(self.driver, 10)
--> 291 long_checkbox = wait.until(EC.presence_of_element_located((By.XPATH, "//span[contains(., 'Enable Long Strategy')]/preceding-sibling::span/input[@type='checkbox']")))
292 if not long_checkbox.is_selected():
293 action = ActionChains(self.driver)

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\support\wait.py:95, in WebDriverWait.until(self, method, message)
93 if time.monotonic() > end_time:
94 break
---> 95 raise TimeoutException(message, screen, stacktrace)

TimeoutException: Message:
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:507:5
dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:132:16

ModuleNotFoundError: No module named 'functions'

Hi TreborNamor,

Same as issue 13 but do not see the fix?
I pulled the ZIP down today.

Is this an environment config issue?

Cheers Data64X

Traceback (most recent call last):
File "C:/Users/ blah blah /TradingView_Machine_Learning-master/scripts/takeprofit_liner.py", line 4, in import click.py
File "C:\Users\ blah blah \TradingView_Machine_Learning-master\scripts\click.py", line 8, in from functions.webdriver import driver
ModuleNotFoundError: No module named 'functions'

Issue with driver ( Running Selenium 4.9.1)

File "D:\Tradingview optimiser\TradingView-Machine-Learning-GUI-master\TradeViewGUI.py", line 153, in optimize_longs_shorts
OptimizeLongsShorts.LongShortScript()
File "D:\Tradingview optimiser\TradingView-Machine-Learning-GUI-master\scripts\OptimizeLongsShorts.py", line 21, in init
self.run_script()
File "D:\Tradingview optimiser\TradingView-Machine-Learning-GUI-master\scripts\OptimizeLongsShorts.py", line 30, in run_script
self.click_strategy_tester(wait)
File "D:\Tradingview optimiser\TradingView-Machine-Learning-GUI-master\web_commands\commands.py", line 51, in click_strategy_tester
element = wait.until(
File "C:\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 86, in until
value = method(self._driver)
File "C:\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 69, in _predicate
return driver.find_element(*locator)
AttributeError: 'NoneType' object has no attribute 'find_element'

The code no longer works

The code no longer works for me all of a sudden, getting error below for both take profit and stop loss functions:
image

A different issue

First;y I get an error that it can't find the Functions.
I fixed that by copying the scripts into the main folder directory and add a main.py to the funtions directory.

Now I get this error.
Capture

I really don't understand what I have done wrong. I followed your instructions but it doesn't seem to work as yours does on Youtube.

Thanks for your help. Awesome work by the way.

IndexError: list index out of range error

Hi,

I ahve the following error:

"Traceback (most recent call last):
File "TradeViewGUI.py", line 122, in optimize_longs_shorts
name = obj.objectName()
File "OptimizeLongsShorts.py", line 17, in init
Main.init(self)
File "OptimizeLongsShorts.py", line 39, in run_script
except NoSuchElementException:
File "my_functions.py", line 238, in click_enable_both_checkboxes
Keys.BACK_SPACE)
IndexError: list index out of range"

can you help please

cross bug of MACD RSI Strategy

wrong cross
crossover_bear = crossunder(signal_line, macd_line)

right cross
crossover_bear = crossunder(macd_line, signal_line)

selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .tab-Rf5MOAG5 firefox

In [7]: !python C:\test\github\TradingView-Machine-Learning-GUI\TradeViewGUI.py
[WDM] - Downloading: 16.9kB [00:00, 8.03MB/s]
Loading script...

Could Not Click Strategy Tester Tab. Please Check web element's class name in commands.py file.
Could Not click Overview Tab. Please Check web element's class name in commands.py file.
Could not click settings button. Please check web_element's in commands.py file.
Traceback (most recent call last):
  File "C:\test\github\TradingView-Machine-Learning-GUI\TradeViewGUI.py", line 156, in optimize_longs_shorts
    OptimizeLongsShorts.LongShortScript()
  File "C:\test\github\TradingView-Machine-Learning-GUI\scripts\OptimizeLongsShorts.py", line 21, in __init__
    self.run_script()
  File "C:\test\github\TradingView-Machine-Learning-GUI\scripts\OptimizeLongsShorts.py", line 36, in run_script
    self.click_input_tab()
  File "C:\test\github\TradingView-Machine-Learning-GUI\web_commands\commands.py", line 101, in click_input_tab
    input_tab = self.driver.find_element(By.CLASS_NAME, "tab-Rf5MOAG5")
  File "C:\QGB\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
    'value': value})['value']
  File "C:\QGB\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\QGB\Anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .tab-Rf5MOAG5

located((By.XPATH, "//*[@class='icon-button "

====== WebDriver manager ======
Current firefox version is 91.0.2
Get LATEST driver version for 91.0.2
Driver [C:\Users\metapodcod\.wdm\drivers\geckodriver\win64\v0.29.1\geckodriver.exe] found in cache
Generating Max Profit For Stop Loss.
Loading script...

Traceback (most recent call last):
  File "TradeViewGUI.py", line 122, in optimize_longs_shorts
    if self.comboBox.currentIndex() == 0:
  File "OptimizeLongsShorts.py", line 17, in __init__

  File "OptimizeLongsShorts.py", line 37, in run_script
    # Making sure we are on inputs tab and resetting values to default settings.
  File "my_functions.py", line 32, in click_settings_button
    wait.until(EC.visibility_of_element_located((By.XPATH, "//*[@class='icon-button "
  File "selenium\webdriver\support\wait.py", line 80, in until
selenium.common.exceptions.TimeoutException: Message:

Element can't be scrolled into view

So... Guys, I was trying to run the project and got some errors. The first one was that when searching for strategy_tester, there was no such element, I suppos,e since i got the following error:

strategy_tester = driver.find_elements_by_xpath("//*[@class='title-1C5azoXt']")[2]
IndexError: list index out of range

Then I looked for the element name in the inspection window at firefox and found the right name (I guess):

image

It looks like now it started recognizing the element, but now i got this new error and I have no idea why. Can you guys help me?

selenium.common.exceptions.ElementNotInteractableException: Message: Element <div class="title-37voAVwR"> could not be scrolled into view

IndexError

Hello I downloaded code firefox and change firefox profile.

Right now I got this error. And I have no exprience in Scraping (especially with firefox). Guys What should I do?

error

error3

@TreborNamor

IndexError: list index out of range

Could not click settings button. Please check web_element's in commands.py file.
Could not input tab button. Please check web_element's in commands.py file.
Traceback (most recent call last):
File "TradeViewGUI.py", line 153, in optimize_longs_shorts
OptimizeLongsShorts.LongShortScript()
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

can't find #3, find folder

Hello,
I have been looking for a find folder on pycharm, but there is no anymore ?
Where do i need to paste my webfolder file ?

I don't understand this very well ...

If you could give me more info ?
thx
dries

ValueError: max() arg is an empty sequence

Loading script...
script has timed out.
Traceback (most recent call last):
File "C:\Users\MONSTER\OneDrive\Desktop\strateji\ML ile stop ve take profıt opt\scripts\stoploss_linear.py", line 77, in
run_script(webdriver.driver)
File "C:\Users\MONSTER\OneDrive\Desktop\strateji\ML ile stop ve take profıt opt\scripts\stoploss_linear.py", line 42, in run_script
best_key = find.best_key()
File "C:\Users\MONSTER\OneDrive\Desktop\strateji\ML ile stop ve take profıt opt\scripts\find.py", line 5, in best_key
best_in_dict = max(profits, key=profits.get)
ValueError: max() arg is an empty sequence

Parameters Bug

I'm typing the maximum number 60, but it's also trying larger values. This issue did not exist in the non-GUI version.
Ekran Alıntısı

Question

Hello, this is more a question rather than an issue. Is it possible to change this to test other strategies? I saw it somewhere but the github page does not exist. Also how fast is it to test 1000 cycles for example?

Entering information in the wrong masks?

Hello and thanks for developing such a great peace of software and sharing this with the community! :)

I'm currently backtesting your script, but i encounter several 'problems'

When trying to find the optimal settings, it uses the wrong masks? And starts to enter limit orders like crazy:
afbeelding

afbeelding

I guess it would be quite important to make sure it doesn't enter this information in the ordering field?

Script output:

Generating Max Profit For Stop Loss.
Loading script...

Net Profit: 19.98% --> Long Stoploss: 14.2, Long Take Profit: 16.6, Short Stoploss: 3.2, Short Take Profit: 3.3
Net Profit: 19.98% --> Long Stoploss: 16.7, Long Take Profit: 2.4, Short Stoploss: 26.3, Short Take Profit: 23.8
Net Profit: 19.98% --> Long Stoploss: 5.4, Long Take Profit: 17.9, Short Stoploss: 25.6, Short Take Profit: 15.9
Net Profit: 19.98% --> Long Stoploss: 13.6, Long Take Profit: 4.9, Short Stoploss: 26.8, Short Take Profit: 6.0
Net Profit: 19.98% --> Long Stoploss: 11.3, Long Take Profit: 0.6, Short Stoploss: 6.7, Short Take Profit: 8.4
Net Profit: 19.98% --> Long Stoploss: 3.5, Long Take Profit: 8.8, Short Stoploss: 23.4, Short Take Profit: 23.8
Net Profit: 19.98% --> Long Stoploss: 19.9, Long Take Profit: 2.8, Short Stoploss: 14.3, Short Take Profit: 1.1
Net Profit: 19.98% --> Long Stoploss: 12.2, Long Take Profit: 9.0, Short Stoploss: 23.7, Short Take Profit: 21.8
Net Profit: 19.98% --> Long Stoploss: 1.2, Long Take Profit: 18.3, Short Stoploss: 24.7, Short Take Profit: 15.4
Net Profit: 19.98% --> Long Stoploss: 11.8, Long Take Profit: 7.5, Short Stoploss: 2.3, Short Take Profit: 16.0
Net Profit: 19.98% --> Long Stoploss: 16.7, Long Take Profit: 17.7, Short Stoploss: 25.9, Short Take Profit: 10.1
Net Profit: 19.98% --> Long Stoploss: 18.7, Long Take Profit: 16.2, Short Stoploss: 14.4, Short Take Profit: 6.5
Net Profit: 19.98% --> Long Stoploss: 18.3, Long Take Profit: 5.4, Short Stoploss: 29.1, Short Take Profit: 21.7
Net Profit: 19.98% --> Long Stoploss: 8.6, Long Take Profit: 6.6, Short Stoploss: 19.3, Short Take Profit: 9.5
Net Profit: 19.98% --> Long Stoploss: 19.8, Long Take Profit: 10.0, Short Stoploss: 2.9, Short Take Profit: 13.2
Net Profit: 19.98% --> Long Stoploss: 4.0, Long Take Profit: 7.0, Short Stoploss: 15.4, Short Take Profit: 20.3
Net Profit: 19.98% --> Long Stoploss: 9.3, Long Take Profit: 0.8, Short Stoploss: 27.8, Short Take Profit: 22.4
Net Profit: 19.98% --> Long Stoploss: 4.5, Long Take Profit: 8.8, Short Stoploss: 23.5, Short Take Profit: 26.5
Net Profit: 19.98% --> Long Stoploss: 0.8, Long Take Profit: 5.8, Short Stoploss: 4.3, Short Take Profit: 18.2
Net Profit: 19.98% --> Long Stoploss: 4.4, Long Take Profit: 3.1, Short Stoploss: 0.8, Short Take Profit: 8.8
Traceback (most recent call last):
  File "TradeViewGUI.py", line 122, in optimize_longs_shorts
    if self.comboBox.currentIndex() == 0:
  File "OptimizeLongsShorts.py", line 17, in __init__

  File "OptimizeLongsShorts.py", line 65, in run_script
    # Click settings button
  File "my_functions.py", line 204, in click_all_inputs
    long_takeprofit_input_box = \
  File "selenium\webdriver\remote\webdriver.py", line 410, in find_elements_by_xpath
  File "selenium\webdriver\remote\webdriver.py", line 1005, in find_elements
  File "selenium\webdriver\remote\webdriver.py", line 321, in execute
  File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response
selenium.common.exceptions.WebDriverException: Message: Failed to decode response from marionette

Running on windows with latest firefox

error

ModuleNotFoundError: No module named 'functions'
PS D:\TradingView_Machine_Learning-master>

this is the error any idea what i should do

ImportError: cannot import name 'OptimizeLongsShorts' from 'scripts' (C:\QGB\Anaconda3\lib\site-packages\scripts\__init__.py)

In [236]: !python C:\test\github\TradingView-Machine-Learning-GUI\TradeViewGUI.py
Traceback (most recent call last):
  File "C:\test\github\TradingView-Machine-Learning-GUI\TradeViewGUI.py", line 151, in optimize_longs_shorts
    from scripts import OptimizeLongsShorts
ImportError: cannot import name 'OptimizeLongsShorts' from 'scripts' (C:\QGB\Anaconda3\lib\site-packages\scripts\__init__.py)

Problem at startup

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

Any reason for adding the binary exe to the repo instead of compile instructions?

Can you tell me the reasoning behind putting the exe in the repo instead of adding compilation instructions to the readme?
I can understand that maybe you don't want to write python for the web, but I'm always very cautious with binaries, and it's not a very common practice in open source to add binaries to repos (unless maybe DLL's so forth).

Users should be able to verify the source and compile it from source, and avoid any malware suspicion.
I see this a lot - with crypto particularly.

Can you add the compilation instructions to the readme?

c error

Firefox profile has been filled in, but the prompt is as follows
WebDriver Error: Please Check Your FireFox Profile Path Is Correct.
Find Your Firefox Path Instructions. https://imgur.com/gallery/rdCqeT5

OSError: [Errno 86] Bad CPU type in executable geckodriver

[WDM] - Driver [/Users/badiead/.wdm/drivers/geckodriver/macos/v0.29.1/geckodriver] found in cache
Traceback (most recent call last):
File "/Users/badiead/Downloads/TradingView_Machine_Learning-master/scripts/takeprofit_linear.py", line 3, in
from functions import click, webdriver, show_me, get, find
File "/Users/badiead/Downloads/TradingView_Machine_Learning-master/functions/click.py", line 6, in
from functions.webdriver import driver
File "/Users/badiead/Downloads/TradingView_Machine_Learning-master/functions/webdriver.py", line 18, in
driver = create_driver()
File "/Users/badiead/Downloads/TradingView_Machine_Learning-master/functions/webdriver.py", line 14, in create_driver
driver = webdriver.Firefox(profile, options=options, executable_path=GeckoDriverManager().install())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in init
self.service.start()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 86] Bad CPU type in executable: '/Users/badiead/.wdm/drivers/geckodriver/macos/v0.29.1/geckodriver'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.