Здравствуйте! скажите к данному коду можно отрисовку линий сделать внутри дня : когда правый столбик red то три линии red отрисовываются , а когда левый столбик lime (появляется) то три линии lime по данным уровням.
//+------------------------------------------------------------------+
//D1_TREND
string D1Mid="",D1Pivot="",D1OPEN="";
color color_d1op,color_d1mid,color_MTD1,clr_TdD1,color_BuyTPD1,color_SellTPD1;
double Open_D1 = iOpen(NULL,1440,0);
D1OPEN = (DoubleToStr(Open_D1,Digits));
double D1r = iHigh(NULL,PERIOD_D1,1) - iLow(NULL,PERIOD_D1,1);
double D1R = (iHigh(NULL,PERIOD_D1,1) + iLow(NULL,PERIOD_D1,1))/2;
double D1P = (iHigh(NULL,PERIOD_D1,1) + iLow(NULL,PERIOD_D1,1) + iClose(NULL,PERIOD_D1,1))/3;
D1Mid = DoubleToStr(D1R,Digits);
D1Pivot = DoubleToStr(D1P,Digits);
//D1_TREND
string D1TProfit1="",D1TProfit2="",D1TargetBUY1="",D1TargetBUY2="",D1TargetBUY3="",//1TargetBUY4="",
D1_Trend="",D1_Today="",D1TargetSELL1="",D1TargetSELL2="",D1TargetSELL3="";//D1TargetSELL4="";
double D1TB1 = D1P + (D1r * 0.5);
D1TargetBUY1 = DoubleToStr(D1TB1,Digits);
double D1TS1 = D1P - (D1r * 0.5);
D1TargetSELL1 = DoubleToStr(D1TS1,Digits);
double D1TB2 = D1P + (D1r * 1.0);
D1TargetBUY2 = DoubleToStr(D1TB2,Digits);
double D1TS2 = D1P - (D1r * 1.0);
D1TargetSELL2 = DoubleToStr(D1TS2,Digits);
double D1TB3 = D1P + (D1r * 1.5);
D1TargetBUY3 = DoubleToStr(D1TB3,Digits);
double D1TS3 = D1P - (D1r * 1.5);
D1TargetSELL3 = DoubleToStr(D1TS3,Digits);
if (D1OPEN > D1Pivot) {color_d1op=Lime;}
if (D1OPEN < D1Pivot) {color_d1op=Red;}
if (D1OPEN == D1Pivot) {color_d1op=Gray;}
if (D1Mid > D1Pivot) {color_d1mid=Lime; D1TProfit2=D1TargetBUY1;}
if (D1Mid < D1Pivot) {color_d1mid=Red; D1TProfit2=D1TargetSELL1;}
if (D1Mid == D1Pivot) {color_d1mid=Gray; D1TProfit2="---------";}
//MarketD1
if (Teks > D1OPEN) D1_Trend = "p";
if (Teks > D1OPEN) D1TProfit1 = D1TargetBUY1;
if (Teks < D1Pivot) D1_Trend = "q";
if (Teks < D1Pivot) D1TProfit1 = D1TargetSELL1;
if ((Teks <= D1OPEN) && (Teks >= D1Pivot)) D1_Trend = "n";
if ((Teks <= D1OPEN) && (Teks >= D1Pivot)) D1TProfit1 = "---------";
if ((Teks <= D1OPEN) && (Teks >= D1Pivot)) {color_MTD1 = Gray; color_BuyTPD1 = Gray; color_SellTPD1 = Gray;}
if (Teks > D1OPEN) {color_MTD1 = Lime; color_BuyTPD1 = Lime; color_SellTPD1 = Gray;}
if (Teks < D1Pivot) {color_MTD1 = Red; color_BuyTPD1 = Gray; color_SellTPD1 = Red;}
if ((Teks > D1OPEN) && (MA1_D1 > MA2_D1) && (MA1_D1 < MA5_D1)) {D1_Today = "p"; clr_TdD1 = Lime;}
if ((Teks < D1OPEN) && (MA1_D1 < MA2_D1) && (MA1_D1 > MA5_D1)) {D1_Today = "q"; clr_TdD1 = Red;}
//+------------------------------------------------------------------+
//ObjectCreate("OPD1q", OBJ_LABEL, window, 0, 0);
//ObjectSet("OPD1q", OBJPROP_CORNER, corner);
//ObjectSetText("OPD1q", "OPEN", 5, "Tahoma", Label_color);
//ObjectSet("OPD1q", OBJPROP_XDISTANCE, 55);
//ObjectSet("OPD1q", OBJPROP_YDISTANCE, 232);
//ObjectCreate("OPD1aq", OBJ_LABEL, window, 0, 0);
//ObjectSet("OPD1aq", OBJPROP_CORNER, corner);
//ObjectSetText("OPD1aq", D1OPEN, 7, "Tahoma", Label_color);
//ObjectSet("OPD1aq", OBJPROP_XDISTANCE, 51);
//ObjectSet("OPD1aq", OBJPROP_YDISTANCE, 221);
ObjectCreate("BuyTP1D1aq", OBJ_LABEL, window, 0, 0);
ObjectSet("BuyTP1D1aq", OBJPROP_CORNER, corner);
ObjectSetText("BuyTP1D1aq", D1TargetBUY1, 8, "Tahoma", color_BuyTPD1);
ObjectSet("BuyTP1D1aq", OBJPROP_XDISTANCE, 47);
ObjectSet("BuyTP1D1aq", OBJPROP_YDISTANCE, 3);
ObjectCreate("SellTP1D1aq", OBJ_LABEL, window, 0, 0);
ObjectSet("SellTP1D1aq", OBJPROP_CORNER, corner);
ObjectSetText("SellTP1D1aq", D1TargetSELL1, 8, "Tahoma", color_SellTPD1);
ObjectSet("SellTP1D1aq", OBJPROP_XDISTANCE, 5);
ObjectSet("SellTP1D1aq", OBJPROP_YDISTANCE, 43);
ObjectCreate("MN1q", OBJ_LABEL, window, 0, 0);
ObjectSet("MN1q", OBJPROP_CORNER, corner);
ObjectSetText("MN1q", "Goblan", 7, "Tahoma", Pair_color);
ObjectSet("MN1q", OBJPROP_XDISTANCE, 55);
ObjectSet("MN1q", OBJPROP_YDISTANCE, 73);
ObjectCreate("MN1 - 1q", OBJ_LABEL, window, 0, 0);
ObjectSet("MN1 - 1q", OBJPROP_CORNER, corner);
ObjectSetText("MN1 - 1q", "g", 11, "Webdings",Gray);
ObjectSet("MN1 - 1q", OBJPROP_XDISTANCE, 7);
ObjectSet("MN1 - 1q", OBJPROP_YDISTANCE, 69);
ObjectCreate("MN1 - 2q", OBJ_LABEL, window, 0, 0);
ObjectSet("MN1 - 2q", OBJPROP_CORNER, corner);
ObjectSetText("MN1 - 2q", D1_Trend, 9, "Wingdings 3",color_MTD1);
ObjectSet("MN1 - 2q", OBJPROP_XDISTANCE, 8);
ObjectSet("MN1 - 2q", OBJPROP_YDISTANCE, 71);
ObjectCreate("BuyTP2D1aq", OBJ_LABEL, window, 0, 0);
ObjectSet("BuyTP2D1aq", OBJPROP_CORNER, corner);
ObjectSetText("BuyTP2D1aq", D1TargetBUY2, 8, "Tahoma", color_BuyTPD1);
ObjectSet("BuyTP2D1aq", OBJPROP_XDISTANCE, 47);
ObjectSet("BuyTP2D1aq", OBJPROP_YDISTANCE, 23);
ObjectCreate("SellTP2D1aq", OBJ_LABEL, window, 0, 0);
ObjectSet("SellTP2D1aq", OBJPROP_CORNER, corner);
ObjectSetText("SellTP2D1aq", D1TargetSELL2, 8, "Tahoma", color_SellTPD1);
ObjectSet("SellTP2D1aq", OBJPROP_XDISTANCE, 5);
ObjectSet("SellTP2D1aq", OBJPROP_YDISTANCE, 23);
//ObjectCreate("PVD1q", OBJ_LABEL, window, 0, 0);
//ObjectSet("PVD1q", OBJPROP_CORNER, corner);
//ObjectSetText("PVD1q", "PIVOT", 5, "Tahoma", Label_color);
//ObjectSet("PVD1q", OBJPROP_XDISTANCE, 11);
//ObjectSet("PVD1q", OBJPROP_YDISTANCE, 232);
//ObjectCreate("PVD1aq", OBJ_LABEL, window, 0, 0);
//ObjectSet("PVD1aq", OBJPROP_CORNER, corner);
//ObjectSetText("PVD1aq", D1Pivot, 7, "Tahoma", Label_color);
//ObjectSet("PVD1aq", OBJPROP_XDISTANCE, 7);
//ObjectSet("PVD1aq", OBJPROP_YDISTANCE, 221);
ObjectCreate("BuyTP3D1aq", OBJ_LABEL, window, 0, 0);
ObjectSet("BuyTP3D1aq", OBJPROP_CORNER, corner);
ObjectSetText("BuyTP3D1aq", D1TargetBUY3, 8, "Tahoma", color_BuyTPD1);
ObjectSet("BuyTP3D1aq", OBJPROP_XDISTANCE, 47);
ObjectSet("BuyTP3D1aq", OBJPROP_YDISTANCE, 43);
ObjectCreate("SellTP3D1aq", OBJ_LABEL, window, 0, 0);
ObjectSet("SellTP3D1aq", OBJPROP_CORNER, corner);
ObjectSetText("SellTP3D1aq", D1TargetSELL3, 8, "Tahoma", color_SellTPD1);
ObjectSet("SellTP3D1aq", OBJPROP_XDISTANCE, 5);
ObjectSet("SellTP3D1aq", OBJPROP_YDISTANCE, 3);
//+------------------------------------------------------------------+