- ago
In creating Customer Indicator - Why compiler says - Error - name GetHistory does not exist in the current context”

CODE:
using WealthLab.Core; using System; using System.Drawing; using WealthLab.Indicators; using WealthLab.Backtest; using WealthLab.Data; using System.Collections.Generic; ... public override void Populate() {          BarHistory source = Parameters[0].AsBarHistory;          BarHistory qqqBars = GetHistory(source, "qqq"); ... }


Thanks
0
41
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
Check this https://www.wealth-lab.com/Discussion/Accessing-external-symbols-in-indicator-code-12749

0
Best Answer
Glitch8
 ( 10.89% )
- ago
#2
GetHistory is a UserStrategyBase method, not an IndicatorBase method. Use the approach that rainfield suggested in Post #1.
0

Reply

Bookmark

Sort