akumidv / tradingview-assistant-chrome-extension

An assistant for backtesting trading strategies and checking (showing) external signals in Tradingview implemented as a Chrome browser extension.
GNU General Public License v3.0
159 stars 56 forks source link

plugin not working #97

Closed dayu998 closed 1 year ago

dayu998 commented 1 year ago

image

dayu998 commented 1 year ago

image

dayu998 commented 1 year ago

image image

g001613001 commented 1 year ago

I also encountered the same problem in windows and mac chrome

sTvynator commented 1 year ago

Unfortunately I have the same problem, fingers crossed for a solution soon.

akumidv commented 1 year ago

Yeah, thanks, I reproduced this problem and will try to fix in couple of days.

Quetzalquatl commented 1 year ago

line 19 in selector.js

strategyCaption: '#bottom-area div[class^="backtesting"] [class^="strategyGroup"] div[data-qa-strategy-title]',

change it like this and update the extension

strategyCaption: '#bottom-area div[class^="backtesting"] [class^="strategyGroup"] div[data-strategy-title]',

godzillafire commented 1 year ago

You're a genius Quetzalquatl you figured it out!

I want to say akumidv and Quetzalquatl all the contributors thank you for making such an amazing plugin.

Was wondering... is it possible to be able to grab the backtested trades in Tradingview since it can be downloaded as a csv?

g001613001 commented 1 year ago

According to the code of this Chrome extension, the error message "Error: There is not strategy name element on page. Open correct page please" means that the "strategy name" element cannot be found on the TradingView page, which prevents the program logic from executing correctly. Possible reasons are:

The HTML structure of the TradingView page has been changed, making it impossible to correctly retrieve the "strategy name" element. You can open the TradingView page in the Chrome browser and check if the HTML structure matches the code in the extension program.

There is a problem with the logic for finding the "strategy name" element in the extension program. You can check the implementation of the searchStrategyName function in the background.js file of the extension program to ensure that the function can find the "strategy name" element correctly.

In this extension program, the searchStrategyName function searches for the "strategy name" element by querying the HTML structure of the TradingView page. If the element cannot be found, it will throw an error message "There is not strategy name element on page".

You can try to check if the TradingView page you are using matches the code in the extension program. If the HTML structure has not been changed, you may need to check the extension program code to determine if the logic for finding the element is correct. You can try adding debug statements or logs to the extension program to better understand any issues in the code.

stefantabakovq commented 1 year ago

98

MrDenfish commented 1 year ago

Quick and easy fix. Brilliant! Thanks for the fast troubleshooting.
Fantastic project, thanks to everyone involved.

Pi-Rr commented 1 year ago

line 19 in selector.js

strategyCaption: '#bottom-area div[class^="backtesting"] [class^="strategyGroup"] div[data-qa-strategy-title]',

change it like this and update the extension

strategyCaption: '#bottom-area div[class^="backtesting"] [class^="strategyGroup"] div[data-strategy-title]',

Thanks a lot for the fix that worked for godzillafire, and sorry for my total nobe question (I am not a dev), but can you indicate how to make that change? Can I change the code in selector.js locally in my browser?

akumidv commented 1 year ago

The problem is fixed in the new 2.2 version that was send to Google for review before publishing