- ago
In WL6 we could have an Oscillator Indicator (one that move up and down in a limited) and besides coloring the line with one above zero and another color when below zero, shading could also be displayed, e.g., above zero the area under the line could be green, etc. Could this feature be added.
1
849
Solved
8 Replies

Reply

Bookmark

Sort
- ago
#1
Yes, PlotSeriesOscillator was a nice eye candy in WL6. Adding your request to the product backlog for later. Thanks.
0
Cone8
 ( 28.25% )
- ago
#2
How about PlotStyles.HistogramTwoColor?


CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Indicators; using System.Drawing; using System.Collections.Generic; namespace WealthScript2 {    public class MyStrategy : UserStrategyBase    {       SMA _ma1;       SMA _ma2;       TimeSeries _osc;              public override void Initialize(BarHistory bars)       {          _ma1 = SMA.Series(bars.Close, 10);          _ma2 = SMA.Series(bars.Close, 21);          _osc = _ma1 - _ma2;          StartIndex = 21;          PlotTimeSeries(_osc, "Oscillator", "OSC", Color.Green, PlotStyles.HistogramTwoColor);       }       public override void Execute(BarHistory bars, int idx)       {                 }    } }
0
- ago
#3
Yes, I have tried that option already, but like the .Line option better. I can live with the green and red line option.
0
Glitch8
 ( 12.08% )
- ago
#4
We've added the feature to our backlog :)
1
- ago
#5
You state you fixed this in Build 7, but I don't see an Option to shade below or above the line. You added many other options for the display.
0
Glitch8
 ( 12.08% )
- ago
#6
Look for PlotIndicatorOscillator and PlotTimeSeriesOscillator.
0
Glitch8
 ( 12.08% )
- ago
#7
0
Best Answer
- ago
#8
Glitch,
That works perfect. Thank you very much.
0

Reply

Bookmark

Sort