- ago
ind1 = new LineBreakValue(bars,3,bool.Highs);

This is the code suggested for using LineBreakValue but an error comes up when compiling.
'bool' does not contain a definition for 'Highs'
0
381
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
@Glitch, Cone, Eugene...

Looks like a building block code generation error for LineBreakValue. Here's what a simple building block strategy, utilizing LineBreakValue, generated for C#:

CODE:
public override void Initialize(BarHistory bars) {          indicator = new LineBreakValue(bars,3,bool.Highs);          PlotIndicator(indicator,new WLColor(0,0,0)); }
0
Cone8
 ( 24.57% )
- ago
#2
Okay, thanks. We'll take care of that for Build 36.

btw., just replace bool.Highs with true (for Highs) or false (for Lows).
0
Best Answer

Reply

Bookmark

Sort