I want to use Market Analyzer to scan stocks for Vegas Trades pattern from CCIForecasterDEV7 - NT8. This indicator was posted by NinjaTrader_Jim.
I have added a simple plot to draw a 50 and -50 when the Vegas pattern up and down conditions are present, similar to what I have previously done for other indicator MA columns. However, nothing will plot based on the following added scripts:
Plot:
[COLOR=#FF0000]// Plot for MAVegas[/COLOR] AddPlot(new Stroke(Brushes.Chartreuse, 2), PlotStyle.Dot, "PlotCCIHigh"); AddPlot(new Stroke(Brushes.Crimson, 2), PlotStyle.Dot, "PlotCCILow"); AddPlot(new Stroke(Brushes.Silver, 2), PlotStyle.TriangleUp, "PlotTurboHigh"); AddPlot(new Stroke(Brushes.Gray, 2), PlotStyle.TriangleDown, "PlotTurboLow"); [COLOR=#FF0000] AddPlot(new Stroke(Brushes.Blue, 1), PlotStyle.Line, "MAVegas");[/COLOR]
Condition:
[COLOR=#FF0000]//LONG MAVegas[/COLOR] if((((VegasL_H && pcbar != -1) || (Show_Opp_End && VegasL_L && pcbar != 1) || VegasL_E)) && Show_Vegas && WCCIDirection[0]!= 1) { wCCIPatternSeries[0] = (3); wCCIDirectionSeries[0] = (1); Draw.Line(this,CurrentBar.ToString()+"VSH",true,barsAgoSwingH,swingHigh,0,swingHigh,VegasTrendColor,DashStyleHelper.Dash,TrendThickness); [COLOR=#FF0000] MAVegas[0] = 50;[/COLOR]
[COLOR=#FF0000]//SHORT[/COLOR] if((((Show_Opp_End && VegasS_H && pcbar != -1) || (VegasS_L && pcbar != 1) || VegasS_E)) && Show_Vegas && WCCIDirection[0]!= -1) { wCCIPatternSeries[0] = (3); wCCIDirectionSeries[0] = (-1); Draw.Line(this,CurrentBar.ToString()+"VSL",true,barsAgoSwingL,swingLow,0,swingLow,VegasTrendColor,DashStyleHelper.Dash,TrendThickness); [COLOR=#FF0000] MAVegas[0] = -50; [/COLOR]
[COLOR=#FF0000]// Added this series for Vegas plots for Market Analyzer[/COLOR] [COLOR=#FF0000] [Browsable(false)] [XmlIgnore] public Series<double> MAVegas { get { return Values[4]; } }[/COLOR]
Many thanks.
Comment