- ago
I'd like to know if the following (mostly WealthScript-) methods and their functionality have found a new home in WL8. If so, what are they called now?

SetContext
GetContext
ClearDebug
FlushDebug
ClearExternalSymbols
GetExternalSymbol

UserStrategybase.WriteToDebugLog under WL8 does not seem to offer similar functionality. Is it irrelevant now? Any advice? Thank you very much in advance!



0
36
1 Replies

Reply

Bookmark

Jump to End
- ago
#1
SetContext and GetContext no longer have direct equivalents in WL8 because the old context-switching model was removed. Instead, use GetHistory() to obtain a BarHistory for another symbol and work with it directly.

GetExternalSymbol is therefore essentially replaced by GetHistory(), for example:

BarHistory spy = GetHistory(bars, "SPY");

ClearExternalSymbols is no longer necessary since WL8 manages historical data internally.

For debugging, PrintDebug was replaced by WriteToDebugLog(). ClearDebug and FlushDebug don't have direct equivalents. The Debug Log can be configured to clear automatically before each run, and there's no longer a need to explicitly flush it.

So most of these aren't simply renamed methods; changes to the WL8 architecture made several of them unnecessary.
0

Reply

Bookmark

Jump to Top