private bool setAlert = true;
if ( (rsiValue > rsiOB) && (mfiValue > mfiOB) && (bolPerc > bPercOB) && (imiValue > imiOB) && (stosValue > stosOB ) && (tsiLevel > tsiOB)){ DrawText("Sell"+CurrentBar, false, "S", 0, High[0] + textOffset ,0, Color.Red, txtFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); if (setAlert) Alert("myAlert", NinjaTrader.Cbi.Priority.High, "Reached threshold", "Alert4.wav", 2, Color.Black, Color.Yellow); return; }
Comment