- ago

has EnvelopeMAType of EnvelopeUpper changed in WL8? below suggests it is no longer recognized. thanks for any help here

0
180
Solved
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 9.89% )
- ago
#1
Yes, it's changed. You no longer need to specify an EnvelopeMAType enum value, which was too limiting. Now, the indicators can support ANY smoother installed in WL8. Here's the new syntax. I'm using "FastSMA" as an example, but you could use the name of any Smoother installed in WL8!

CODE:
//create indicators and other objects here, this is executed prior to the main trading loop public override void Initialize(BarHistory bars) {          lower = EnvelopeLower.Series(bars.Close, 20, 5, "FastSMA");          PlotIndicator(lower);          upper = EnvelopeUpper.Series(bars.Close, 20, 5, "FastSMA");          PlotIndicator(upper); }
0
Best Answer
- ago
#2
Also note that you can invoke the helpful IntelliSense to suggest you the actual parameter names and types without looking up the QuickRef, for example.
0

Reply

Bookmark

Sort