Entry Setup indicator

Forums ProRealTime English forum ProBuilder support Entry Setup indicator

Viewing 8 posts - 1 through 8 (of 8 total)
  • #42235

    I was wondering if there is any indicator showing when a setup, either Long or Short, presents for a trade to be eventually entered.

    I admit I did not spend much time investigating. I was just willing to experience a bit, so I ended up with this code:

    As you can see it evaluates Macd, Rsi, Stochastic and Moving Averages, either UP (long) or DOWN (short) and displays an arrow accordingly. Other indicators/Oscillators may be added.

    It allows many variables (some of them, especially limits, not yet used for the most part) to be tailored by the user.

    Many default values come from some (not much) testing on daily Eur/Usd bars.

    It returns either ZERO (no setup) or NOT ZERO (1 or -1)  for “good” setups. A trade may entered according to the colour of the arrow on the chart, after considering other patterns, support and resistance areas etc….

    Variable “PipDistance” was meant to be the distance, in pips, above/below the candle to make it more visible, but it did not work as expected, so I reset it to ZERO by default.

    I always check that if variables are either < 1 or > 999 they will default to embedded values.

    It could be used in automated strategies by cheking if the returned value is either -1 or 1 (0 = no setup).

    If there is already some PRT code published about setups I would appreciate receiving a link.

    Any suggestion or further development is encouraged, if anyone is interested.

    Roberto

     

    2 users thanked author for this post.
    #42265

    Nice idea Roberto, thanks for sharing. May I change a bit your code? You could have code the periods’ range of indicators like this instead:

     

    #42268
    AVT

    Going to test that, Roberto. Thanks

    #42274

    Anything you like Nicolas, any suggestion/improvement is welcome.

    I also think I should change the last line as follows:

    so that it returns 1 for UP and -1 (instead of 1) for DOWN,  because the way it is now it always returns either ZERO for no setup or 1 for any setup, no matter if a Long or Short one!

    #42275

    Nicolas, can your two-line code be shrinked to:

    ?

     

    #42284

    Sorry, I wrote SHRINKED, but it should have been written SHRUNK.

    #42288

    Yes Roberto, it is far more elegant like you did 🙂

    1 user thanked author for this post.
    #42364

    Hi Roberto!

    I have created whole trading systems in probuilder a while back and my generalized solution to your initial question was to create different statuses for different indicator combinations. This was important to me to efficiently factor in the time it took for a set-up actually leading to the actual event and the trade.

     

    1 user thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)

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