Help with first indicator – 3% pullback with averages.

Forums ProRealTime English forum ProBuilder support Help with first indicator – 3% pullback with averages.

Viewing 3 posts - 1 through 3 (of 3 total)
  • #118204

    Hi,

    I am new to writing the code and am struggling to get my first indicator to work.

    What I am trying to achieve is:

    • Based on daily closing prices
    • Close > 200 day simple moving average
    • Close has pulled back > 3% from the previous highest point
    • Close > 5 day simple moving average
    • Return 1

    Please could someone help me understand where to start with this.

    Thanks,
    Chris

     

    #118209

    There you go (I only tested it for syntax errors):

     

    #118218

    Here is an alternative. It resets the high to the current candle if the conditions are met so it can then look for a new drop from that fresh start.

    (not tested)

    Note: I have edited the title of your topic. Please try to use more meaningful titles that describe your topic rather than things like ‘Help needed’ otherwise we end up with a forum full of topics with meaningless titles! 🙂

     

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

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