- ago
Synchronization can have multiple implementations, trying to understand how it works in WL7.

#1. Synch an indicator value from one time scale to another. As implemented in GetHistoryUnsynched, and as per the example code given in QuickRef, clearly this is a valid use.

#2. Symbols with same last date. Say a stock (Stock B) didn't trade for a period of time during its history (yes, it can happen), you call its history using GetHistory which will synch it with 'bars' (i.e. the clicked symbol, Stock A); what happens to the non-traded periods for Stock B - do they get filled with values from the last traded bar so it gets DateTime synched with Stock A's bars or do they remain unfilled so if you try to calculate an indicator whose lookback period extends beyond the non-traded period its start date will be different than for Stock A?

#3. Symbols with different last dates. Stock B has long stopped trading but is in your dataset for backtesting purposes (e.g. WealthData's Dow 30). If you want to calculate, say, correlation between it and Stock A (which currently trades) and you call B's history as GetHistory(bars A, "symbol B") - will WL7 do a DateTime synch with Stock A and fill all blank bars for B with last traded bar's values? Or will it use the unsynched history and calculate the indicator over the lookback period even if their DateTimes are different?
0
328
1 Replies

Reply

Bookmark

Sort

Reply

Bookmark

Sort