TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

can't backtest using specific from to date even while using my tradingview premium session

Open cryptodudy opened this issue 3 years ago • 0 comments

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.

cryptodudy avatar Sep 24 '22 06:09 cryptodudy