- ago
Using WriteToDebugLog() in custom Indicator Builder is not working and produced an error "The name 'WriteToDebugLog' does not exist in the current context." Am I missing an assembly reference?

Edited:
I am included these directives:

using WealthLab.Backtest;
using System;
using WealthLab.Core;
using WealthLab.Indicators;
using System.Drawing;
using System.Collections.Generic;
using WealthLab.TASC;
using WealthLab7;
using System.Linq;

0
855
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
This is not an issue. WriteTo... is a WealthScript method which only works in Strategies. Indicators implement a different interface and cannot write to the debug log.

With C# you can choose to output debug messages to some other channel e.g. file.
0
Best Answer
- ago
#2
Thanks Eugene.
0

Reply

Bookmark

Sort