Busco código para martillo invertido

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #57571 quote
    racero74
    Participant
    New

    Buenas,

    Quería un código para el martillo invertido, tengo uno para el martillo normal que pasa con la media de 200 o con una diferencia del 1%, pero lo quería para el caso inverso, os dejo el código que tengo (el del martillo lo cogí de un post de este foro) y he añadido la media de 200, también me gustaría añadir un filtro de volumen de más de 100000.

    Veo interesante este código que tengo porque muchas veces cuando el precio toca la mm200 hace que el precio suba, si hacemos que la vela que salga sea un martillo, el resultado es mejor.

    mm1 = Average[1](Close)
    mm200 = Average[200](Close)

    mmVariation = Abs((mm200/mm1 – 1) * 100)
    whitehammer=(((high – low)>3*(open -close)) and ((close – low)/(.001 + high – low) > 0.6) and ((open – low)/(.001 + high – low) > 0.6)) and close>open
    c1 = whitehammer and volume>volume[1]

    condition = mmVariation<1

    Screener[condition and c1]

    #57586 quote
    supertiti
    Participant
    Master

     

    Aqui tienes un screener :

    // INVERTED HAMMER NICOLAS

    data5b=(((high – low)>3*(open -close)) and ((high – close)/(.001 + high – low) > 0.6) and ((high – open)/(.001 + high – low) > 0.6))
    if data5b then
    IH = 1
    Else
    IH = 0
    Endif

    ca2=close[2] >= close[3]
    ca1=close[1] >= close[2]
    CG = ca1 and ca2

    SCREENER [ IH and CG ]

    #57613 quote
    racero74
    Participant
    New

    Muchas gracias Supertiti,

    ME va bien, he añadido que cruce o que tenga la media de 200 (también sería interesante la de 55) que pase a un 1% del precio y quedaría así por si alguno le interesa:

    // INVERTED HAMMER NICOLAS
    mm1 = Average[1](Close)
    mm200 = Average[200](Close)
    mmVariation = Abs((mm200/mm1 – 1) * 100)

    data5b=(((high – low)>3*(open -close)) and ((high – close)/(.001 + high – low) > 0.6) and ((high – open)/(.001 + high – low) > 0.6))
    if data5b then
    IH = 1
    Else
    IH = 0
    Endif
    condition = mmVariation<1
    ca2=close[2] >= close[3]
    ca1=close[1] >= close[2]
    CG = ca1 and ca2

    SCREENER [condition and IH and CG ]

     

    Pero para rizar el rizo, y ahí me he atascado necesitaría que el azul del blai concorde sea negativo, o sea, que las manos fuertes vendan, he puesto el siguiente proscreener pero me salen valores del blai tanto positivo como negativo, y por último, me gustaría poner un volumen > 100000

    Te dejo el proscreener que habrá algo mal:

    Martillo invertido con vela media 200 y vende mano fuerte blay

    ignored, ignored, ignored, ignored, ignored, azul, ignored, ignored = CALL”Blai5 Koncorde v.09″[15]

     

    mm1 = Average[1](Close)

    mm200 = Average[200](Close)

    mmVariation = Abs((mm200/mm1 – 1) * 100)

    data5b=(((high – low)>3*(open -close)) and ((high – close)/(.001 + high – low) > 0.6) and ((high – open)/(.001 + high – low) > 0.6))

    if data5b then

    IH = 1

    Else

    IH = 0

    Endif

    condition = mmVariation<1

    ca2=close[2] >= close[3]

    ca1=close[1] >= close[2]

    CG = ca1 and ca2

    c1 = (momentum[1](azul)) <0

    c2= volumen>50000

     

    SCREENER [condition and IH and CG and c1 and c2 ]

     

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

Busco código para martillo invertido


Soporte ProScreener

New Reply
Author
author-avatar
racero74 @racero74 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by racero74
8 years ago.

Topic Details
Forum: Soporte ProScreener
Language: Spanish
Started: 01/07/2018
Status: Active
Attachments: No files
Logo Logo
Loading...