matching high and matching low candlestick pattern

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #52204 quote
    Fr7
    Participant
    Master

    Hola Nicolás,puede suministrar el código del patrón:”matching high and matching low candlestick pattern”.Le adjunto una imagen del patrón.GRACIAS

    #52207 quote
    Fr7
    Participant
    Master

    El patrón bajo correspondiente es un patrón de reversión alcista de dos velas, donde:

    • El mercado tiende a la baja;
    • La primera vela tiene un largo cuerpo real negro;
    • Y, la segunda vela tiene un cuerpo real negro que se cierra aproximadamente al mismo nivel que el cierre de la primera vela.

    El inverso del patrón bajo correspondiente es el patrón alto coincidente que señala una reversión bajista durante una tendencia alcista.

    #52516 quote
    Nicolas
    Keymaster
    Master

    Hice este pequeño indicador para detectar estos patrones, avíseme si coincide con sus condiciones.

    bull2 = summation[2](close<open)=2
    bullreverse = summation[2](low=low[1])=2
    bullish = bull2 and bullreverse
    
    bear2 = summation[2](close>open)=2
    bearreverse = summation[2](high=high[1])=2
    bearish = bear2 and bearreverse
    
    return bullish or bearish
    #52554 quote
    Fr7
    Participant
    Master
    bull2 = summation[2](close<open)=2
    bullreverse = summation[2](low=low[1])=2
    bullish = bull2 and bullreverse
     
    bear2 = summation[2](close>open)=2
    bearreverse = summation[2](high=high[1])=2
    bearish = bear2 and bearreverse
    
    
    atr = averagetruerange[10](close)*0.5
    
    if bullish then
    DRAWTEXT("Matching high", barindex, low[1]-atr*3, Dialog, Standard, 12) COLOURED(0,155,10)
    drawarrowup(barindex,lowest[3](low)) coloured(0,155,10)
    endif
    if bearish then
    DRAWTEXT("Matching low", barindex, low[1]-atr*3, Dialog, Standard, 12) COLOURED(255,0,10)
    
    drawarrowdown(barindex,highest[3](high)) coloured(250,0,0)
    endif
    
    return

    Hola Nicolas,

    He hecho alguna modificación,para conseguir lo que quiero visualmente.Pero todavía no es lo que quiero por el tamaño de los cuerpos de las velas.En la foto se observan los cuerpos de las velas pequeños….

    Necesito que el cuerpo de la primera vela sea más largo y el cuerpo de la segunda vela más pequeño.

    #52557 quote
    Fr7
    Participant
    Master
    • La primera vela tiene un largo cuerpo real negro;
    • Y, la segunda vela tiene un cuerpo real negro que se cierra aproximadamente al mismo nivel que el cierre de la primera vela.
    #52573 quote
    Nicolas
    Keymaster
    Master

    En esta versión, la primera vela siempre tendrá un cuerpo más grande que el segundo patrón.
    ¡Para la detección del mismo precio, probamos si el precio es estrictamente igual!

    bull2 = summation[2](close<open)=2
    bullreverse = summation[2](low=low[1])=2
    bullish = bull2 and bullreverse and abs(close[1]-open[1])>abs(close[0]-open[0])
     
    bear2 = summation[2](close>open)=2
    bearreverse = summation[2](high=high[1])=2
    bearish = bear2 and bearreverse and abs(close[1]-open[1])>abs(close[0]-open[0])
     
    
    
    atr = averagetruerange[10](close)*0.5
    
    if bullish then
    DRAWTEXT("Matching high", barindex, low[1]-atr*3, Dialog, Standard, 12) COLOURED(0,155,10)
    drawarrowup(barindex,lowest[3](low)) coloured(0,155,10)
    endif
    if bearish then
    DRAWTEXT("Matching low", barindex, low[1]-atr*3, Dialog, Standard, 12) COLOURED(255,0,10)
    
    drawarrowdown(barindex,highest[3](high)) coloured(250,0,0)
    endif
    
    return
    #52584 quote
    Fr7
    Participant
    Master
    bull2 = summation[2](close<open)=2
    bullreverse = summation[2](low=low[1])=2
    bullish = bull2 and bullreverse and abs(close[1]-open[1])>abs(close[0]-open[0])
     
    bear2 = summation[2](close>open)=2
    bearreverse = summation[2](high=high[1])=2
    bearish = bear2 and bearreverse and abs(close[1]-open[1])>abs(close[0]-open[0])
    
    screener [bearish or bullish]

    He hecho el screener….Ahora el cuerpo de la primera vela es más largo.Pero en algunos casos el precio no es igual en las dos velas.

    #114428 quote
    darthloud
    Participant
    New

    como faço esse indicador para metatrader 5

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

matching high and matching low candlestick pattern


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Fr7 @fr7 Participant
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by darthloud
6 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 11/10/2017
Status: Active
Attachments: 3 files
Logo Logo
Loading...