regards
nh
{ if (CurrentBar == 0) { return; } if (High[0] > High[1] && Low[0] < Low[1]) // outside bar { if ( outsidedepends == true) // Outsidebar labeling depends on prior labeling { if (L == 1 & Close[0] > Open[0]) // outside H { DrawText("H"+CurrentBar, "H", 0, High[0] + TextTicksOffset * TickSize, textColorH, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); H = 1; L = 0; } else if (H == 1 & Close[0] < Open[0])// outside L { DrawText("L"+CurrentBar, "L", 0, Low[0] - TextTicksOffset * TickSize, textColorL, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); H = 0; L = 1; } else // Outsidebar labeling starts neutral with H and L { DrawText("H"+CurrentBar, "H", 0, High[0] + TextTicksOffset * TickSize, textColorH, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); DrawText("L"+CurrentBar, "L", 0, Low[0] - TextTicksOffset * TickSize, textColorL, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); H = 1; L = 1; } } else // Outsidebar labeling starts neutral with H and L { DrawText("H"+CurrentBar, "H", 0, High[0] + TextTicksOffset * TickSize, textColorH, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); DrawText("L"+CurrentBar, "L", 0, Low[0] - TextTicksOffset * TickSize, textColorL, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); H = 1; L = 1; } } else if (High[0] > High[1] // H bar && L == 1) { DrawText("H"+CurrentBar, "H", 0, High[0] + TextTicksOffset * TickSize, textColorH, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); H = 1; L = 0; } else if (Low[0] < Low[1] // L bar && H == 1) { DrawText("L"+CurrentBar, "L", 0, Low[0] - TextTicksOffset * TickSize, textColorL, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); H = 0; L = 1; }
Comment