Hi,
I cannot run my EMA mode strategy in the current 159 environment. Can you shed some light on my problem?
See AI agent comments below:
You need a WealthLab 8 build that includes the “C# Strategy” editor, because that is the only environment where:
Strategy base class exists
Execute(BarHistory bars, int idx) exists
PlaceTrade() exists
GetOpenPosition() exists
Positions exists
Indicators (EMA.Series, ATR.Series) work inside strategy code
Bar‑by‑bar execution is supported
Your current build — WL8 Build 159 — predates the introduction of the C# Strategy Engine. In that build, “C# Coded” is not a strategy environment, which is why every strategy API call fails.
The build you need
You need any WealthLab 8 build that is 8.0.3 or later, because that is when the C# Strategy Editor was introduced.
More specifically:
✔️ WealthLab 8 Build 168 or newer
This is the first stable release where:
“C# Strategy” appears under New Strategy
The full WL8 trading API is available
Execute(BarHistory bars, int idx) is the correct override
PlaceTrade, GetOpenPosition, Positions, BarHistory all work
Journaling and custom logic are fully supported
Build 168+ is the version WealthLab themselves recommend for C# strategy development.
Why Build 159 cannot run your system
Build 159 only supports:
Building Block strategies
Rotation strategies
“C# Coded” (utility code, indicators, helpers)
It does not support:
Strategy inheritance
Bar‑by‑bar execution
Order placement in C#
Position management in C#
Journaling in C#
Custom regime logic in C#
Your EMA‑mode system requires all of those.
I cannot run my EMA mode strategy in the current 159 environment. Can you shed some light on my problem?
See AI agent comments below:
You need a WealthLab 8 build that includes the “C# Strategy” editor, because that is the only environment where:
Strategy base class exists
Execute(BarHistory bars, int idx) exists
PlaceTrade() exists
GetOpenPosition() exists
Positions exists
Indicators (EMA.Series, ATR.Series) work inside strategy code
Bar‑by‑bar execution is supported
Your current build — WL8 Build 159 — predates the introduction of the C# Strategy Engine. In that build, “C# Coded” is not a strategy environment, which is why every strategy API call fails.
The build you need
You need any WealthLab 8 build that is 8.0.3 or later, because that is when the C# Strategy Editor was introduced.
More specifically:
✔️ WealthLab 8 Build 168 or newer
This is the first stable release where:
“C# Strategy” appears under New Strategy
The full WL8 trading API is available
Execute(BarHistory bars, int idx) is the correct override
PlaceTrade, GetOpenPosition, Positions, BarHistory all work
Journaling and custom logic are fully supported
Build 168+ is the version WealthLab themselves recommend for C# strategy development.
Why Build 159 cannot run your system
Build 159 only supports:
Building Block strategies
Rotation strategies
“C# Coded” (utility code, indicators, helpers)
It does not support:
Strategy inheritance
Bar‑by‑bar execution
Order placement in C#
Position management in C#
Journaling in C#
Custom regime logic in C#
Your EMA‑mode system requires all of those.
Rename
The AI is hallucinating, WL8 has had a C# editor since Build 1.
Thanks,
does the editor implement the functions indicated in the list I attached? I cannot get these functions to compile.
does the editor implement the functions indicated in the list I attached? I cannot get these functions to compile.
Yes those functions look correct, can you just paste your strategy code here so we can diagnose?
Your Response
Post
Edit Post
Login is required