has EnvelopeMAType of EnvelopeUpper changed in WL8? below suggests it is no longer recognized. thanks for any help here
Rename
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); }
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.
Your Response
Post
Edit Post
Login is required