Indicator for identifying peaks and lows

Forums ProRealTime English forum ProBuilder support Indicator for identifying peaks and lows

Viewing 12 posts - 1 through 12 (of 12 total)
  • #34862

    Hi Nicholas.
    I have an indicator that identifies candle sequences – ascending sequences, and descending sequences.

    I really want to continue his action.
    And on the information obtained from it, create an indicator that identifies peak and low points.

    Could you please direct me how to do this?

    Here’s how it works –

    The example is a peak search.

    . On Sunday the sequence started to rise

    . On Wednesday the rising sequence broke – and a descending sequence began

    As soon as the descending sequence begins, the indicator searches between them for the candle with the highest peak of all the candles and marks it as a peak point – with a gray or black arrow down. (Above the candle)

     

    I attach the existing code.
    (When the full code is ready, I’d be happy to share it and what you can get from it extensively – with our community members)

    Edited by moderator to make “PRT code” format appear, please use “insert PRT code” button

     

    I very much beg your help – and thank you in advance.

    #34917

    On your example, why is the ascending sequence only broke on Wednesday since 2 descending candlesticks has already been met since the lastest high?

    Does a sequence only start after X new highs / Y new lows?

    #34982

    HI Balance

    You invited me to work on this on Freelancer.com. Better to do it here can help you for free then.
    When you first posted it to me I was looking at the Bill Williams Fractals as a possible solution.

    https://www.prorealcode.com/prorealtime-indicators/bill-williams-fractals/

    This Identifies the pivot points.

    #35134

    Hi Nicholas,
    Hope I understood your question correctly.

    Sequences are not dependent on peaks and lows, but on other conditions.
    For example – the condition for a rising sequence is – as long as the closing price of the current candle does not fall below the lowest of the highest candle in the rising sequence.

    In fact, the peak can only be determined after the ascending sequence has ended, because if I understand correctly, you can not delete arrows after they have already been marked in the graph

    #35138

    Hi StantonR

    First of all thank you for your kindness.
    And the proposal to use the indicator you mentioned.

    But, after looking at him, he seemed to have a real flood of arrows.
    It seems to me that according to my proposal there will be far fewer (each sequence can have only one point of peak or low)

    Am I not right? Please write me what you think.

    (By the way, you are still invited to accept my invitation.) What is your FREELANCER username?

    #35164

    So let’s try this code and give us your feedbacks about it. Just a rough code, because I’m busy this morning 🙂

     

    #35348

    Hello Nicolas.
    How can I create a return instruction show a result I can use to create alert on my chart ? (with your code).

    #35364

    You should use this code instead and get the values of the “up” and “down” variables in your own automated trading strategy:

     

    #35470

    Hi Nicholas,
    Thanks for the code you submitted. He looked great.
    But I have some comments on it to improve,

    1. There are lots of high and low points, making it difficult to filter.
    2 are often not placed in an exact place – for example, you can see in the attached screenshot – a number of low points located in the middle of the rise …

    According to the definition I raised at the beginning of the topic – there will be far fewer points on the graph.

    I have attached two examples. You can see in them that there is a huge difference (75%) in the number of arrows on the graph compared to what is currently there.

    So what are you saying ? What do you think ?
    Could you please help develop something like this?

    As mentioned above, I have attached two examples. One – of the results of the code at the moment. And the second – of the desired results according to the definitions I wrote above.

    Thanks again.
    And a wonderful week.

    chaim (balance)

    #35472

    It seems that the second example did not come up,
    So I bring it up again.

    #35651

    If anybody is interested I made a Strategy out of Nicolas Code.

    Seemed rude not to! 🙂
    GraHal

    Dax 1 Day and I just realised the results below are over only 1000 Days, Oops!  It was just a ‘curiosity exercise’ anyway.

     

    #36587

    Hi – I have been looking into this and while the concept is good, it is asking too much of price action behaviour to work reliably…unless I’m missing something in your signal definitions. The indicator Nicolas prototyped does what you ask. Where it fails, (in terms of too many false positives) is because that is what price action does. Price chop you will get multiple triggers. I think filtering those out requires some sort of lookback comparison in which case then you might as well use a variation of  Fractals.

    For what its worth I made a small tweak to Nicolas’s code (I added [1] to the high/low statements in the draw sections) that reduces the false positives by about 50% but I think the basic concept is flawed. It will work fine if candles appear in an organised uptrend/downtrend but this rarely happens. It looks good in static analysis but will fail in realtime use – I think 🙂 Still nice idea – but my coding isn’t good enough.

     

     

    Best

    //copperwave

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

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