TradingView-API
TradingView-API copied to clipboard
can't backtest using specific from to date even while using my tradingview premium session
I have set websocket to prodata ...
I tested on 1D timeframe:
//I initiated my vip session
chart.setMarket(_INSTRUMENT, { timeframe: '1D', from : fromunixtimestap, to : tounixtimestmap
});
then i wrote
indicator.onUpdate(() => { console.log('Strategy report', JSON.stringify(indicator.strategyReport)); client.end();
});
and I get: strategyreport json outpout end with: trade":{"from":-2264319000000,"to":1663939800000}}
how can I backtest specific period , please I need help urgent. best regards.