Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Pull a saved indicator template. #209

Open
NVentimiglia opened this issue Aug 6, 2023 · 0 comments
Open

[FR] Pull a saved indicator template. #209

NVentimiglia opened this issue Aug 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@NVentimiglia
Copy link

NVentimiglia commented Aug 6, 2023

Is your feature request related to a problem? Please describe.
Defining a chart setup with multiple indicators is difficult. It requires looking up the indicators, finding their id, and loading them one at a time. Moreover, if the indicator requires any custom settings we must learn each individual indicator's api to setup correctly. This is much work which is best handled graphically via the trading view API.

Describe the solution you'd like

  1. Define a trading view 'template' using the trading view app.
  2. Loading the indicator template via the API.

Describe alternatives you've considered
It is possible to achieve complex chart setups via the current API however requires non-trivial amount of work for the user.

Additional context

return new Promise(async resolve => {
      const template= await TradingView.getTemplate(templateId);
      const study = new chart.Study(template);
      study.onError(err => {
        console.log(`LoadedTemplate Error ${template.pineId} ${err}`);
        resolve(null);
        study.remove();
      });
      study.onUpdate(() => {
        resolve(study);
        study.remove();
      });
    });
@NVentimiglia NVentimiglia added the enhancement New feature or request label Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants