Pulling data from others TF (Time Frame)?

mikeyhu70

Member
Joined
Nov 20, 2021
Posts
12
Likes
4
I have an algo from TOS and TradingView that I use often and want to port into MW

Before I do the coding, can anyone confirm that is possible to pull data from others timeframe?

i.e from the 1 hour chart but pulling data from the daily chart?

Because the requirement for that algo is pulling data from others timeframe

Thanks
 

mikeyhu70

Member
Joined
Nov 20, 2021
Posts
12
Likes
4
Thanks

I found out in the pivots study code a reference to

grp.addRow(new BarSizeDescriptor(Inputs.BARSIZE, get("LBL_TIMEFRAME"), BarSize.getBarSize(BarSizeType.LINEAR, 1440)));

var barSize = getSettings().getBarSize(Inputs.BARSIZE);

var series2 = ctx.getDataSeries(barSize);

Guess I can start experimenting from this sample code, it has been 20+ years I did not code, last time was C++
 
Top