Replies: 1 comment
-
@Mathieu2301 I would request if you can answer this here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all you have done amazing work.
I want to do one thing I want to back test a strategy, and I'm able to do that.
but problem is I was not able to figure out if I can set strategy setting (inputs and properties tab in settings on tv).
Could you please share or help with piece of code if it is already possible to do? if not please take this up as an enhancement.
I was trying to get the inputs and then set them but nothing worked .
base code that I used:
`const client = new TradingView.Client();
const chart = new client.Session.Chart();
chart.setMarket('NSE:NIFTY', {
timeframe: '5'
});
TradingView.getIndicator('PUB;8b5b1787d2cc4316be894800e6b703b9').then(async (indic) => {
console.log(
Loading '${indic.description}' study...
);const myIndicator = new chart.Study(indic);
// myIndicator.getInputs();
// indic.getInputs();
myIndicator.onUpdate(() => {
console.log('Study strategyReport:', myIndicator.strategyReport);
client.end();
});
});
`
Beta Was this translation helpful? Give feedback.
All reactions