Need help coding the following reversal indicator

Forums ProRealTime English forum ProBuilder support Need help coding the following reversal indicator

Viewing 11 posts - 1 through 11 (of 11 total)
  • #31365

    High,

    I’m looking for someone to help me code the following strategy. My version doesn’t work that well and need experience coder’s help

    long position rules

    1. Red/Green candle (reversal)
    2. Bullish candle close above the open of the previous red candle
    3. Space to the left (the low of the last 3 candles lower than the low of the last 50 candles)
    4. default stochastic (8,3,3) was in the oversold area within the last 3 candles

    Short Position rules

    1. Green/Red candle (reversal)
    2. Bearish candle close below the close of the previous green candle
    3. Space to the left (the high of the last 3 candles higher than the high of the last 50 candles)
    4. 4. default stochastic (8,3,3) was in the overbought area within the last 3 candles.

    I’ve attached a bearish chart with annotation to help

    #31374

    Just to be sure about your query, do you want an indicator that give signals on the chart with these rules?

    #31387

    Signals on the chart and indicator showing 1 for long,  -1 for short, 0 for no alert, would be ideal.

     

    Thanks.

     

    #31394

    Nice setups. Variables will return 1 for long, 1 for short, 0 for no signal. I added arrows on chart, examples attached. Here is the code. I might push it into the library too.

     

    #31400

    Thanks for your speedy service as always Nicolas.

    #31401

    Hi Nicolas,

    Spotted a small error in the code i think as it wasn’t fully detecting the right bearish signals. Line 30 should be changed to:

    close<open[1]

    as the current close isn’t checked to ensure its lower than the previous open.:

    #31402

    Bearish candle close below the close of the previous green candle

    Not an error, it’s as described 🙂

    #31474

    The indicator with the modification about the line 30 is now available in the code library: market reversal point indicator

    #94090

    Bonsoir Nicolas,

    Je reçois un message d’erreur lorsque je valide la création de cet indicateur en faisant une copie des lignes de code

    Je vous mets en pièce jointe la capture de la notification de l’erreur

    Merci

    #94093

    Désolée – j’ai résolu le problème

    #94095

    Marie-Eve Vergoz – English only in the English forums please.

Viewing 11 posts - 1 through 11 (of 11 total)

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