Exemple #1
0
        private void CatchZLR()
        {
            if (DotL.ContainsValue(1) || DotU.ContainsValue(1))
            {
                return;
            }
            if (CrossAbove(RawTrend, 0, 3) && RawTrend[0] < 0)
            {
//				BackColor = Color.FromArgb(50,Color.DodgerBlue);  // Added by TheWizard December 10, 2009
                _zlr.Set(-1);
                DrawTriangleDown("ZLRs" + CurrentBar, true, 0, High[0] + (TickSize * TriangleDisplacement), DownColor);
            }
            if (CrossBelow(RawTrend, 0, 3) && RawTrend[0] > 0)
            {
//				BackColor = Color.FromArgb(50,Color.DeepPink);  // Added by TheWizard December 10, 2009
                _zlr.Set(1);
                DrawTriangleUp("ZLRL" + CurrentBar, true, 0, Low[0] - (TickSize * TriangleDisplacement), UpColor);
            }
        }
Exemple #2
0
 private void CatchZLR()
 {
     if (DotL.ContainsValue(1) || DotU.ContainsValue(1))
     {
         return;
     }
     if (CrossAbove(RawTrend, 0, 3) && RawTrend[0] < 0)
     {
         _zlr.Set(-1);
         DrawTriangleDown("ZLRs" + CurrentBar, true, 0, 0 + TickSize, Color.Black);
         //DrawText("ZLR"+CurrentBar, true, "ZLRS", 0, RawTrend[1], 5, Color.Yellow, textFont, StringAlignment.Center, Color.Empty, Color.Empty, 1);
     }
     if (CrossBelow(RawTrend, 0, 3) && RawTrend[0] > 0)
     {
         _zlr.Set(1);
         DrawTriangleUp("ZLRL" + CurrentBar, true, 0, 0 - TickSize, Color.GreenYellow);
         //DrawText("ZLR" + CurrentBar, true, "ZLRL", 0, RawTrend[1], -5, Color.Yellow, textFont, StringAlignment.Center, Color.Empty, Color.Empty, 1);
     }
 }