ayuda con colocacion de precio por encima de ema20

Forums ProRealTime foro Español Soporte ProBuilder ayuda con colocacion de precio por encima de ema20

Viewing 15 posts - 1 through 15 (of 17 total)
  • #216249

    Buena en este indicador me falta añadir en el ultimo cuadro que cuando el precio este por encima o por debajo de ema20 se señalice en el cuadro de precio que he creado y me lo marque con una bola arriba si esta por encima o abajo si esta debajo ema20 del precio, pero correlativo a la temporalidad que indica el cuadro. tendria que ser como indico en la imagen. Ya que yo lo intento pero no me sale correlativo a las temporalidades si se menan de sitio si no siempre me salen ordenadas y no correlativas.  Un saludo

    defparam drawonlastbaronly = true
    TIMEFRAME(1mn)
    ema201 = ExponentialAverage[20](close)
    precio1 = close
    distancia1 = abs((ema201/precio1)-1)*100
    c1=close > close[1]
    TIMEFRAME(2mn)
    ema202 = ExponentialAverage[20](close)
    precio2 = close
    distancia2 = abs((ema202/precio2)-1)*100
    c2=close > close[1]
    TIMEFRAME(3mn)
    ema203 = ExponentialAverage[20](close)
    precio3 = close
    distancia3 = abs((ema203/precio3)-1)*100
    c3=close > close[1]
    TIMEFRAME(4mn)
    ema204 = ExponentialAverage[20](close)
    precio4 = close
    distancia4 = abs((ema204/precio4)-1)*100
    c4=close > close[1]
    TIMEFRAME(5mn)
    ema205 = ExponentialAverage[20](close)
    precio5 = close
    distancia5 = abs((ema205/precio5)-1)*100
    c5=close > close[1]
    TIMEFRAME(6mn)
    ema206 = ExponentialAverage[20](close)
    precio6 = close
    distancia6 = abs((ema206/precio6)-1)*100
    c6=close > close[1]
    TIMEFRAME(7mn)
    ema207 = ExponentialAverage[20](close)
    precio7 = close
    distancia7 = abs((ema207/precio7)-1)*100
    c7=close > close[1]

    TIMEFRAME(default)

    menordistancia = min(distancia1,min(distancia2,min(distancia3,min(distancia4,min(distancia5,min(distancia6,distancia7))))))

    TF1 = 0
    TF2 = 0
    TF3 = 0
    TF4 = 0
    TF5 = 0
    TF6 = 0
    TF7 = 0
    //
    D1 = distancia1
    D2 = distancia2
    D3 = distancia3
    D4 = distancia4
    D5 = distancia5
    D6 = distancia6
    D7 = distancia7

    r=204
    g=0
    b=0

    r1=204
    g1=0
    b1=0

    r3=204
    g3=0
    b3=0

    r4=204
    g4=0
    b4=0

    r5=204
    g5=0
    b5=0

    r6=204
    g6=0
    b6=0

    r7=204
    g7=0
    b7=0

    //
    menordistancia1 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia1 = D1 and c1 THEN
    TF1 = 1 //1-minute TF
    D1 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D1 THEN
    TF1 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————

    ELSIF menordistancia1 = D2 and c1 THEN
    TF1 = 2 //2-minute TF
    D2 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D2 THEN
    TF1 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————

    ELSIF menordistancia1 = D3 and c1 THEN
    TF1 = 3 //3-minute TF
    D3 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D3 THEN
    TF1 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————

    ELSIF menordistancia1 = D4 and c1 THEN
    TF1 = 4 //4-minute TF
    D4 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D4 THEN
    TF1 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————

    ELSIF menordistancia1 = D5 and c1 THEN
    TF1 = 5 //5-minute TF
    D5 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D5 THEN
    TF1 = 5 //5-minute TF
    D5 = 9999999

    //———————————————————————

    ELSIF menordistancia1 = D6 and c1 THEN
    TF1 = 6 //6-minute TF
    D6 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D6 THEN
    TF1 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————

    ELSIF menordistancia1 = D7 and c1 THEN
    TF1 = 7 //7-minute TF
    D7 = 9999999
    r=0
    g=180
    b=0
    ELSIF menordistancia1 = D7 THEN
    TF1 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————

    ENDIF
    //
    menordistancia2 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia2 = D1 and c2 THEN
    TF2 = 1 //1-minute TF
    D1 = 9999999
    r1=0
    g1=180
    b1=0

    ELSIF menordistancia2 = D1 THEN
    TF2 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————

    ELSIF menordistancia2 = D2 and c2 THEN
    TF2 = 2 //2-minute TF
    D2 = 9999999
    r1=0
    g1=180
    b1=0
    ELSIF menordistancia2 = D2 THEN
    TF2 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————

    ELSIF menordistancia2 = D3 and c2 THEN
    TF2 = 3 //3-minute TF
    D3 = 9999999
    r1=0
    g1=180
    b1=0
    ELSIF menordistancia2 = D3 THEN
    TF2 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————

    ELSIF menordistancia2 = D4 and c2 THEN
    TF2 = 4 //4-minute TF
    D4 = 9999999
    r1=0
    g1=180
    b1=0
    ELSIF menordistancia2 = D4 THEN
    TF2 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————

    ELSIF menordistancia2 = D5 and c2 THEN
    TF2 = 5 //5-minute TF
    D5 = 9999999
    r1=0
    g1=180
    b1=0
    ELSIF menordistancia2 = D5 THEN
    TF2 = 5 //5-minute TF
    D5 = 9999999

    //———————————————————————

    ELSIF menordistancia2 = D6 and c2 THEN
    TF2 = 6 //6-minute TF
    D6 = 9999999
    r1=0
    g1=180
    b1=0
    ELSIF menordistancia2 = D6 THEN
    TF2 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————

    ELSIF menordistancia2 = D7 and c2 THEN
    TF2 = 7 //7-minute TF
    D7 = 9999999
    r1=0
    g1=180
    b1=0
    ELSIF menordistancia2 = D7 THEN
    TF2 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————

    ENDIF
    //
    menordistancia3 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia3 = D1 and c3 THEN
    TF3 = 1 //1-minute TF
    D1 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D1 THEN
    TF3 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————
    ELSIF menordistancia3 = D2 and c3 THEN
    TF3 = 2 //2-minute TF
    D2 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D2 THEN
    TF3 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————
    ELSIF menordistancia3 = D3 and c3 THEN
    TF3 = 3 //3-minute TF
    D3 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D3 THEN
    TF3 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————
    ELSIF menordistancia3 = D4 and c3 THEN
    TF3 = 4 //4-minute TF
    D4 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D4 THEN
    TF3 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————
    ELSIF menordistancia3 = D5 and c3 THEN
    TF3 = 5 //5-minute TF
    D5 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D5 THEN
    TF3 = 5 //5-minute TF
    D5 = 9999999
    //———————————————————————
    ELSIF menordistancia3 = D6 and c3 THEN
    TF3 = 6 //6-minute TF
    D6 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D6 THEN
    TF3 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————
    ELSIF menordistancia3 = D7 and c3 THEN
    TF3 = 7 //7-minute TF
    D7 = 9999999
    r3=0
    g3=180
    b3=0
    ELSIF menordistancia3 = D7 THEN
    TF3 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————
    ENDIF
    //
    menordistancia4 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia4 = D1 and c4 THEN
    TF4 = 1 //1-minute TF
    D1 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D1 THEN
    TF4 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————
    ELSIF menordistancia4 = D2 and c4 THEN
    TF4 = 2 //2-minute TF
    D2 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D2 THEN
    TF4 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————
    ELSIF menordistancia4 = D3 and c4 THEN
    TF4 = 3 //3-minute TF
    D3 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D3 THEN
    TF4 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————
    ELSIF menordistancia4 = D4 and c4 THEN
    TF4 = 4 //4-minute TF
    D4 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D4 THEN
    TF4 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————
    ELSIF menordistancia4 = D5 and c4 THEN
    TF4 = 5 //5-minute TF
    D5 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D5 THEN
    TF4 = 5 //5-minute TF
    D5 = 9999999
    //———————————————————————

    ELSIF menordistancia4 = D6 and c4 THEN
    TF4 = 6 //6-minute TF
    D6 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D6 THEN
    TF4 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————
    ELSIF menordistancia4 = D7 and c4 THEN
    TF4 = 7 //7-minute TF
    D7 = 9999999
    r4=0
    g4=180
    b4=0
    ELSIF menordistancia4 = D7 THEN
    TF4 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————
    ENDIF
    //
    menordistancia5 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia5 = D1 and c5 THEN
    TF5 = 1 //1-minute TF
    D1 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D1 THEN
    TF5 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————
    ELSIF menordistancia5 = D2 and c5 THEN
    TF5 = 2 //2-minute TF
    D2 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D2 THEN
    TF5 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————
    ELSIF menordistancia5 = D3 and c5 THEN
    TF5 = 3 //3-minute TF
    D3 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D3 THEN
    TF5 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————
    ELSIF menordistancia5 = D4 and c5 THEN
    TF5 = 4 //4-minute TF
    D4 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D4 THEN
    TF5 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————
    ELSIF menordistancia5 = D5 and c5 THEN
    TF5 = 5 //5-minute TF
    D5 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D5 THEN
    TF5 = 5 //5-minute TF
    D5 = 9999999
    //———————————————————————
    ELSIF menordistancia5 = D6 and c5 THEN
    TF5 = 6 //6-minute TF
    D6 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D6 THEN
    TF5 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————
    ELSIF menordistancia5 = D7 and c5 THEN
    TF5 = 7 //7-minute TF
    D7 = 9999999
    r5=0
    g5=180
    b5=0
    ELSIF menordistancia5 = D7 THEN
    TF5 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————
    ENDIF
    //
    menordistancia6 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia6 = D1 and c6 THEN
    TF6 = 1 //1-minute TF
    D1 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D1 THEN
    TF6 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————
    ELSIF menordistancia6 = D2 and c6 THEN
    TF6 = 2 //2-minute TF
    D2 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D2 THEN
    TF6 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————
    ELSIF menordistancia6 = D3 and c6 THEN
    TF6 = 3 //3-minute TF
    D3 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D3 THEN
    TF6 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————
    ELSIF menordistancia6 = D4 and c6 THEN
    TF6 = 4 //4-minute TF
    D4 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D4 THEN
    TF6 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————
    ELSIF menordistancia6 = D5 and c6 THEN
    TF6 = 5 //5-minute TF
    D5 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D5 THEN
    TF6 = 5 //5-minute TF
    D5 = 9999999
    //———————————————————————
    ELSIF menordistancia6 = D6 and c6 THEN
    TF6 = 6 //6-minute TF
    D6 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D6 THEN
    TF6 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————
    ELSIF menordistancia6 = D7 and c6 THEN
    TF6 = 7 //7-minute TF
    D7 = 9999999
    r6=0
    g6=180
    b6=0
    ELSIF menordistancia6 = D7 THEN
    TF6 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————
    ENDIF
    //

    menordistancia7 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia7 = D1 and c7 THEN
    TF7 = 1 //1-minute TF
    D1 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D1 THEN
    TF7 = 1 //1-minute TF
    D1 = 9999999
    //———————————————————————
    ELSIF menordistancia7 = D2 and c7 THEN
    TF7 = 2 //2-minute TF
    D2 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D2 THEN
    TF7 = 2 //2-minute TF
    D2 = 9999999
    //———————————————————————
    ELSIF menordistancia7 = D3 and c7 THEN
    TF7 = 3 //3-minute TF
    D3 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D3 THEN
    TF7 = 3 //3-minute TF
    D3 = 9999999
    //———————————————————————
    ELSIF menordistancia7 = D4 and c7 THEN
    TF7 = 4 //4-minute TF
    D4 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D4 THEN
    TF7 = 4 //4-minute TF
    D4 = 9999999
    //———————————————————————
    ELSIF menordistancia7 = D5 and c7 THEN
    TF7 = 5 //5-minute TF
    D5 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D5 THEN
    TF7 = 5 //5-minute TF
    D5 = 9999999
    //———————————————————————
    ELSIF menordistancia7 = D6 and c7 THEN
    TF7 = 6 //6-minute TF
    D6 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D6 THEN
    TF7 = 6 //6-minute TF
    D6 = 9999999
    //———————————————————————
    ELSIF menordistancia7 = D7 and c7 THEN
    TF7 = 7 //7-minute TF
    D7 = 9999999
    r7=0
    g7=180
    b7=0
    ELSIF menordistancia7 = D7 THEN
    TF7 = 7 //7-minute TF
    D7 = 9999999
    //———————————————————————
    ENDIF

    DrawText(“#menordistancia1#”,BarIndex+ 2,7.0,Dialog,Bold,20)
    DrawText(“#menordistancia2#”,BarIndex+ 2,5.75,Dialog,Bold,20)
    DrawText(“#menordistancia3#”,BarIndex+ 2,4.60,Dialog,Bold,20)
    DrawText(“#menordistancia4#”,BarIndex+ 2,3.45,Dialog,Bold,20)
    DrawText(“#menordistancia5#”,BarIndex+ 2,2.30,Dialog,Bold,20)
    DrawText(“#menordistancia6#”,BarIndex+ 2,1.15,Dialog,Bold,20)
    DrawText(“#menordistancia7#”,BarIndex+ 2,0.0,Dialog,Bold,20)

    DRAWSEGMENT(barindex-1, 6.4, barindex+5,6.4) //linea hotizontal 1
    DRAWSEGMENT(barindex-1, 5.25, barindex+5,5.25) //linea hotizontal 2
    DRAWSEGMENT(barindex-1, 4.10, barindex+5,4.10) //linea hotizontal 3
    DRAWSEGMENT(barindex-1, 2.95, barindex+5,2.95) //linea hotizontal 4
    DRAWSEGMENT(barindex-1, 1.80, barindex+5,1.80) //linea hotizontal 5
    DRAWSEGMENT(barindex-1, 0.71, barindex+5,0.71) //linea hotizontal 6

    DRAWSEGMENT(barindex+1, -0.5, barindex+1, 7.5) //primera linea vertical
    DRAWSEGMENT(barindex+3, -0.5, barindex+3, 7.5) // segunda linea vertical

    DRAWRECTANGLE(barindex-1, 7.5, barindex+5,-0.5)//rectangulo

    DrawText(“PRECIO”,BarIndex+4,7.0,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,5.85,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,4.66,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,3.55,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,2.39,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,1.29,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,0.12,Dialog,Bold,10)COLOURED(0,0,0)

    DrawText(“#TF1#”,BarIndex,7.0,Dialog,Bold,20)COLOURED(r,g,b)
    DrawText(“#TF2#”,BarIndex,5.75,Dialog,Bold,20)COLOURED(r1,g1,b1)
    DrawText(“#TF3#”,BarIndex,4.60,Dialog,Bold,20)COLOURED(r3,g3,b3)
    DrawText(“#TF4#”,BarIndex,3.45,Dialog,Bold,20)COLOURED(r4,g4,b4)
    DrawText(“#TF5#”,BarIndex,2.30,Dialog,Bold,20)COLOURED(r5,g5,b5)
    DrawText(“#TF6#”,BarIndex,1.15,Dialog,Bold,20)COLOURED(r6,g6,b6)
    DrawText(“#TF7#”,BarIndex,0.0,Dialog,Bold,20)COLOURED(r7,g7,b7)

    RETURN

    #216276

    Me gustaría ayudar, pero lo siento, debo estar perdido en la traducción porque no entiendo qué hacer para ayudar. 🙂 ¿Podría por favor reformular?

    #216302

    Como resalté en la foto adjunta, D1 y C1 están bien, pero las siguientes líneas están mal, ya que D2 debe coincidir con C2, D3 con C3, etc.

    Creo que el problema es este.

    #216537

    defparam drawonlastbaronly = true
    TIMEFRAME(1mn)
    ema201 = ExponentialAverage[20](close)
    precio1 = close
    distancia1 = abs((ema201/precio1)-1)*100
    c1= ExponentialAverage[20](close) > close
    TIMEFRAME(2mn)
    ema202 = ExponentialAverage[20](close)
    precio2 = close
    distancia2 = abs((ema202/precio2)-1)*100
    c2= ExponentialAverage[20](close) > close
    TIMEFRAME(3mn)
    ema203 = ExponentialAverage[20](close)
    precio3 = close
    distancia3 = abs((ema203/precio3)-1)*100
    c3= ExponentialAverage[20](close) > close
    TIMEFRAME(4mn)
    ema204 = ExponentialAverage[20](close)
    precio4 = close
    distancia4 = abs((ema204/precio4)-1)*100
    c4= ExponentialAverage[20](close) > close
    TIMEFRAME(5mn)
    ema205 = ExponentialAverage[20](close)
    precio5 = close
    distancia5 = abs((ema205/precio5)-1)*100
    c5= ExponentialAverage[20](close) > close
    TIMEFRAME(6mn)
    ema206 = ExponentialAverage[20](close)
    precio6 = close
    distancia6 = abs((ema206/precio6)-1)*100
    c6= ExponentialAverage[20](close) > close
    TIMEFRAME(7mn)
    ema207 = ExponentialAverage[20](close)
    precio7 = close
    distancia7 = abs((ema207/precio7)-1)*100
    c7= ExponentialAverage[20](close) > close

    TIMEFRAME(default)

    menordistancia = min(distancia1,min(distancia2,min(distancia3,min(distancia4,min(distancia5,min(distancia6,distancia7))))))

    TF1 = 0
    TF2 = 0
    TF3 = 0
    TF4 = 0
    TF5 = 0
    TF6 = 0
    TF7 = 0
    //
    D1 = distancia1
    D2 = distancia2
    D3 = distancia3
    D4 = distancia4
    D5 = distancia5
    D6 = distancia6
    D7 = distancia7

    //
    menordistancia1 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia1 = D1 and c1 THEN
    TF1 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D1 THEN
    TF1 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia1 = D2 and c2 THEN
    TF1 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D2 THEN
    TF1 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia1 = D3 and c3 THEN
    TF1 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D3 THEN
    TF1 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia1 = D4 and c4 THEN
    TF1 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D4 THEN
    TF1 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia1 = D5 and c5 THEN
    TF1 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D5 THEN
    TF1 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia1 = D6 and c6 THEN
    TF1 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D6 THEN
    TF1 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia1 = D7 and c7 THEN
    TF1 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia1 = D7 THEN
    TF1 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————

    ENDIF
    //
    menordistancia2 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia2 = D1 and c1 THEN
    TF2 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)

    ELSIF menordistancia2 = D1 THEN
    TF2 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia2 = D2 and c2 THEN
    TF2 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia2 = D2 THEN
    TF2 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia2 = D3 and c3 THEN
    TF2 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)

    ELSIF menordistancia2 = D3 THEN
    TF2 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia2 = D4 and c4 THEN
    TF2 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia2 = D4 THEN
    TF2 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia2 = D5 and c5 THEN
    TF2 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia2 = D5 THEN
    TF2 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia2 = D6 and c6 THEN
    TF2 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia2 = D6 THEN
    TF2 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————

    ELSIF menordistancia2 = D7 and c7 THEN
    TF2 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia2 = D7 THEN
    TF2 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————

    ENDIF
    //
    menordistancia3 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia3 = D1 and c1 THEN
    TF3 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D1 THEN
    TF3 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia3 = D2 and c2 THEN
    TF3 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D2 THEN
    TF3 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia3 = D3 and c3 THEN
    TF3 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D3 THEN
    TF3 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia3 = D4 and c4 THEN
    TF3 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D4 THEN
    TF3 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia3 = D5 and c5 THEN
    TF3 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D5 THEN
    TF3 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia3 = D6 and c6 THEN
    TF3 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D6 THEN
    TF3 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia3 = D7 and c7 THEN
    TF3 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D7 THEN
    TF3 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————
    ENDIF
    //
    menordistancia4 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia4 = D1 and c1 THEN
    TF4 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D1 THEN
    TF4 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia4 = D2 and c2 THEN
    TF4 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D2 THEN
    TF4 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia4 = D3 and c3 THEN
    TF4 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D3 THEN
    TF4 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia4 = D4 and c4 THEN
    TF4 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D4 THEN
    TF4 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia4 = D5 and c5 THEN
    TF4 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D5 THEN
    TF4 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia4 = D6 and c6 THEN
    TF4 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D6 THEN
    TF4 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia4 = D7 and c7 THEN
    TF4 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia4 = D7 THEN
    TF4 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————
    ENDIF
    //
    menordistancia5 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia5 = D1 and c1 THEN
    TF5 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D1 THEN
    TF5 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia5 = D2 and c2 THEN
    TF5 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D2 THEN
    TF5 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia5 = D3 and c3 THEN
    TF5 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D3 THEN
    TF5 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia5 = D4 and c4 THEN
    TF5 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D4 THEN
    TF5 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia5 = D5 and c5 THEN
    TF5 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D5 THEN
    TF5 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia5 = D6 and c6 THEN
    TF5 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D6 THEN
    TF5 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia5 = D7 and c7 THEN
    TF5 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia5 = D7 THEN
    TF5 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————
    ENDIF
    //
    menordistancia6 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia6 = D1 and c1 THEN
    TF6 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D1 THEN
    TF6 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia6 = D2 and c2 THEN
    TF6 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D2 THEN
    TF6 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia6 = D3 and c3 THEN
    TF6 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D3 THEN
    TF6 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia6 = D4 and c4 THEN
    TF6 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D4 THEN
    TF6 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia6 = D5 and c5 THEN
    TF6 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D5 THEN
    TF6 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia6 = D6 and c6 THEN
    TF6 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D6 THEN
    TF6 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia6 = D7 and c7 THEN
    TF6 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia6 = D7 THEN
    TF6 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————
    ENDIF
    //
    menordistancia7 = min(D1,min(D2,min(D3,min(D4,min(D5,min(D6,D7))))))
    IF menordistancia7 = D1 and c1 THEN
    TF7 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 7.29, 2) COLOURED(204,0,0)
    ELSIF menordistancia7 = D1 THEN
    TF7 = 1 //1-minute TF
    D1 = 9999999
    DRAWPOINT(barindex+4, 6.68, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia7 = D2 and c2 THEN
    TF7 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 6.18, 2) COLOURED(204,0,0)
    ELSIF menordistancia7 = D2 THEN
    TF7 = 2 //2-minute TF
    D2 = 9999999
    DRAWPOINT(barindex+4, 5.52, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia7 = D3 and c3 THEN
    TF7 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.94, 2) COLOURED(204,0,0)
    ELSIF menordistancia7 = D3 THEN
    TF7 = 3 //3-minute TF
    D3 = 9999999
    DRAWPOINT(barindex+4, 4.35, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia7 = D4 and c4 THEN
    TF7 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.85, 2) COLOURED(204,0,0)
    ELSIF menordistancia7 = D4 THEN
    TF7 = 4 //4-minute TF
    D4 = 9999999
    DRAWPOINT(barindex+4, 3.20, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia7 = D5 and c5 THEN
    TF7 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.70, 2) COLOURED(204,0,0)
    ELSIF menordistancia7 = D5 THEN
    TF7 = 5 //5-minute TF
    D5 = 9999999
    DRAWPOINT(barindex+4, 2.02, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia7 = D6 and c6 THEN
    TF7 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 1.56, 2) COLOURED(204,0,0)
    ELSIF menordistancia7 = D6 THEN
    TF7 = 6 //6-minute TF
    D6 = 9999999
    DRAWPOINT(barindex+4, 0.94, 2) COLOURED(204,0,0)
    //———————————————————————
    ELSIF menordistancia7 = D7 and c7 THEN
    TF7 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, 0.45, 2) COLOURED(204,0,0)
    ELSIF menordistancia3 = D7 THEN
    TF7 = 7 //7-minute TF
    D7 = 9999999
    DRAWPOINT(barindex+4, -0.24, 2) COLOURED(204,0,0)
    //———————————————————————
    ENDIF

    DrawText(“#TF1#”,BarIndex,7.0,Dialog,Bold,20)
    DrawText(“#TF2#”,BarIndex,5.75,Dialog,Bold,20)
    DrawText(“#TF3#”,BarIndex,4.60,Dialog,Bold,20)
    DrawText(“#TF4#”,BarIndex,3.45,Dialog,Bold,20)
    DrawText(“#TF5#”,BarIndex,2.30,Dialog,Bold,20)
    DrawText(“#TF6#”,BarIndex,1.15,Dialog,Bold,20)
    DrawText(“#TF7#”,BarIndex,0.0,Dialog,Bold,20)

    DrawText(“#menordistancia1#”,BarIndex+ 2,7.0,Dialog,Bold,20)
    DrawText(“#menordistancia2#”,BarIndex+ 2,5.75,Dialog,Bold,20)
    DrawText(“#menordistancia3#”,BarIndex+ 2,4.60,Dialog,Bold,20)
    DrawText(“#menordistancia4#”,BarIndex+ 2,3.45,Dialog,Bold,20)
    DrawText(“#menordistancia5#”,BarIndex+ 2,2.30,Dialog,Bold,20)
    DrawText(“#menordistancia6#”,BarIndex+ 2,1.15,Dialog,Bold,20)
    DrawText(“#menordistancia7#”,BarIndex+ 2,0.0,Dialog,Bold,20)

    //——
    DRAWSEGMENT(barindex-1, 6.4, barindex+5,6.4) //linea hotizontal 1
    DRAWSEGMENT(barindex-1, 5.25, barindex+5,5.25) //linea hotizontal 2
    DRAWSEGMENT(barindex-1, 4.10, barindex+5,4.10) //linea hotizontal 3
    DRAWSEGMENT(barindex-1, 2.95, barindex+5,2.95) //linea hotizontal 4
    DRAWSEGMENT(barindex-1, 1.80, barindex+5,1.80) //linea hotizontal 5
    DRAWSEGMENT(barindex-1, 0.71, barindex+5,0.71) //linea hotizontal 6

    DRAWSEGMENT(barindex+1, -0.5, barindex+1, 7.5) //primera linea vertical
    DRAWSEGMENT(barindex+3, -0.5, barindex+3, 7.5) // segunda linea vertical

    DRAWRECTANGLE(barindex-1, 7.5, barindex+5,-0.5)//rectangulo

    DrawText(“PRECIO”,BarIndex+4,7.0,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,5.85,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,4.66,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,3.55,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,2.39,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,1.29,Dialog,Bold,10)COLOURED(0,0,0)
    DrawText(“PRECIO”,BarIndex+4,0.12,Dialog,Bold,10)COLOURED(0,0,0)

    return

     

    Buenas ya he modificado esa parte, las distancias en porcentajes y la ordenacion me sale bien pero cuando añado las condiciones c1,c2,c3,c4,c5,c6 o c7 me hacen el drawpoint pero no me lo hace correcto ya que yo quiero que si por ejemplo esta la temporalidad de 4 la primera ya que es el porcentaje menor y ema20 esta debajo del precio me señalize con drawpoint por debajo de la palabra “precio” y asi correlativamente en las 7 temporalidades. Lo que pasa es que la colocacion del drawpoin y la condicion no me sale correctamente no se si es por un fallo del codigo mio o por que. Un saludo

    #216581

    ¿Dónde quieres que se impriman los puntos rojos?

    #216644

    Buenos dias te adjunto la foto para que me entiendas dependiendo de cada temporalidad y donde este situado ema20 se colorea un punto encima o debajo de la palabra “precio” en la temporalidad que le corresponda, en la imagen esta 1mn la primera y ema20 por debajo del precio en el grafico de 1mn pues un punto rojo debajo de la palabra “precio”, la segunda temporalidad sale 7m y esta el precio por encima de ema20 pues el punto debajo de la palabra “precio” y asi correlativamente y que vayan con las temporalidades. Un saludo espero que lo entiendas ahora

    #216971

    Buenos días no se si alguien podría ayudarme con ente problema ya que no consigo solucionarlo. Un saludo

    #217018

    Agregue estas líneas después de la línea 56 (ver foto Pic1):

    Luego hay que modificar todas las lineas donde hay DRAWPOINT, como hice yo (ver foto Pic2). Deberá experimentar para encontrar los valores correctos por encima o por debajo del PRECIO.

     

    #217088

    Buenas Roberto lo he probado y no hace la función correcta ya que no se organiza con las temporalidades te adjunto foto para que puedas comprobarlo. Un saludo

    #217091

    foto

    #217135

    Publica el código que modificaste.

    #217163

    Buenos días Roberto, te agrego el código a ver si esta correcto con lo que me enviaste, ya que yo no logro encontrar el fallo ni la solución. Un saludo

     

    #217181

    Lo siento, en vez de C1, C2, etc… era necesario indicar P1, P2, etc…

    Lo modifiqué y parece que funciona.

    Publiqué el código solo como un archivo ITF; de lo contrario, ya no será posible cargar las páginas, ya que el texto es demasiado largo.

     

     

    #217199

    Buenas Roberto lo he modificado y probado pero no funciona es decir va el primer recuadro con la temporalidad 1, el segundo con la temporalidad 2… etc es decir van seguidas con las temporalidades no las siguen como el porcentaje que es lo que deberían hacer. Te mando captura y el código para que veas que no van correlativas con las temporalidades. Un saludo

    #217205

    El código es demasiado largo para editarlo y corregirlo. Es mejor reescribirlo completamente. Por favor, dígame en detalle lo que quiere lograr.

Viewing 15 posts - 1 through 15 (of 17 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login