Anyway, can someone help me see where th code changes need to be in this simple line? Mayb I can correct the few others.
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
if (CurrentBar < 2)
return;
double DesiredValue = (Low[1] <= Low[2] && High[1] <= High[2] && Low [1] <= Low[0]) ? 1.0 : 0;
if (DesiredValue == 1.0 && MASlopePlot(SlopePlotAverageType.EMA,SlopePlotType .NTS,30)[0] > 0) DrawTriangleUp(CurrentBar.ToString(), false, 0, Low[0] - (TickSize * 10), Color.Lime);
if (DesiredValue == 0) RemoveDrawObject(CurrentBar.ToString());
}

Comment