how can i prevent this or maybe i'm omitting a key step in the coding strategy
here's the code i've landed on...
(for some reason the indenting is being stripped out)
private int savedBar;
if (ShowCDRMsignals && IsFirstTickOfBar && CurrentBar > SlowestEmaP + SlowHmaP )
{
if ( (cumulativeDelta.DeltaClose[2] < FastKmedian[2] && cumulativeDelta.DeltaClose[1] > FastKmedian[1] ) && realMotion[1] > rmsmaF[1]
|| ( (realMotion[2] < rmsmaF[2] && realMotion[1] > rmsmaF[1]) && (cumulativeDelta.DeltaClose[1] > FastKmedian[1]) ) )
{
if (CDRMsignalsFullChart)
{ BackBrushesAll[1] = CDRMLongBrush; }
else
{ BackBrushes[1] = CDRMLongBrush; }
if (upSignalSound && CurrentBar != savedBar )
{ PlaySound(UpSound);
savedBar = CurrentBar;
}

Comment