Why does creating a DataSet require scale?
Author: innertrader
Creation Date: 6/30/2019 8:46 PM
profile picture

innertrader

#1
I am curious why you must add a scale when creating a new DataSet. I assume all symbols added to that dataset later, will be of the original scale. However, if I chart a symbol from that DataSet and change the Scale, the new scale will will be charted (presumably from a diffierent x minute data folder)..

So, what's the purpose of defining a scale in advance?
profile picture

Eugene

#2
This is required for the data provider to be aware of the original bar scale.

It's not necessarily that you'd get the changed scale because not all data providers support data scale switching on the fly. It depends on provider's capability to dynamically return ad-hoc symbol data for specific data scales (so called dynamic update).
profile picture

innertrader

#3
Thank you. Now I understand that the data provider requires it.

After thinking about it, I can also see why you would want all your symbols in a DataSet to be the same scale when backtesting all the symbols in the entire DataSets with the same strategy.
profile picture

Eugene

#4
Right, and I don't think that multiple scales would even work. The WatchList data provider by AronowSoftware can create DataSets which contain the symbols in different bar scales. However, if you try to backtest it the symbols in non-original bar scales should throw an error message.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).