Double Top / Bottom

Forums ProRealTime English forum ProOrder support Double Top / Bottom

  • This topic has 8 replies, 4 voices, and was last updated 6 years ago by avatarLeo.
Viewing 9 posts - 1 through 9 (of 9 total)
  • #34298

    Hello Traders

    Attached is an MT4 Double Top / Bottom (also a Triple Top / Bottom) EA … might somebody be able to convert for use on PRT Please?

    I can get MT5 file also if any easier?  I obtained the Files free / unrestricted.

    Many Thanks
    GraHal

    #34397

    I’m surprised we don’t have a Double Top / Bottom Bot or Screener on here … well worth doing, see attached 30 point retrace after a Double Top at 01:00 this morning.

    If anybody reads this who can open the MT4 code in the files above and add it on here via the Insert PRT Code button it would be much appreciated.

    Many Thanks
    GraHal

    #34403

    Hi

    I surprised its not in the pro screener as it would add value. I look for them manually and sometimes trade them, so be interesting to see the back test results….

     

    Jamie

    #34405
    Maz

    Don’t worry about translation. Just start by defining (in English) your double top rules. Be specific. Write them here. How does your brain recognize this pattern – what makes it valid? What are the exceptions? What variables would you want to tweak? It’s a good exersise. The coding is easy 🙂

    1 user thanked author for this post.
    #34434

    How would you identify the relevant top or bottom? I attach a very crude example.

    #34663

    Yes I agree Seemore Profit.  Why ‘reinvent the wheel’ springs to mind?

    The EAs attached to my 1st post are supposed to have various ‘bells & whistles’ so let’s check them out? We may be able to improve?  I’m sure I’ll teach myself something in the process.

    If the EAs are no good then we could start again with a blank sheet, as Maz suggests?

    I’ve been coding up a double top / bottom Algo myself tonight and the issue is the double tops don’t look like a classic double top pattern as spotted by eye on a chart. My code is defining a fixed number of bars apart, but classic double tops are not a regular fixed number of bars apart.

    I am intrigued as to why we haven’t already got a Double Top Screener, Algo or Indicator in the Library?  Maybe the reason is as I mention above?

    I was hoping somebody with MT4 be as curious as me? Looks like I’ll have to get my own MT4 and open the EAs attached to my 1st post?

    GraHal

    #34793
    Maz

    Hi Grahal.

    the issue is the double tops don’t look like a classic double top pattern as spotted by eye on a chart. My code is defining a fixed number of bars apart, but classic double tops are not a regular fixed number of bars apart.

    Good 🙂 This is the point I was waiting to see in this post and why I commented above on writing it in plain English first:-)  Once you get coding you soon come across this hurdle. That’s then followed by some other things to solve for.

    There are several ways to approach this. Each way has pros and cons. As neural networks are not part of PRT you will need to start with some rigid hard coded constants on with, depth, noise factors etc. This way is sadly much less effective.

    The thing to do is decide upon a sensible range of with and height that your pattern could be.  On the surface this looks simple  (as do oblique trendlines) but programmatically it’s a challenge to get right. Your validation constraints should auto adjust depending on price action dynamics.

    A double top is an M pattern. You  need to ask the question of how do you validate it, given that it could be any size. Rigid constants are not really the answer but help you get started. How does your brain do it? Can you put it into English let alone code?

    Write down some rules in English and follow them and then see if it works on out if sample data.

    This is actually a bigger topic than you might think.

    I  worked on a head and shoulders based stop loss for PRT. Challenging to do as elegantly without learning systems

     

    1 user thanked author for this post.
    #35809
    Maz

    As per the other topic (https://www.prorealcode.com/topic/dobule-bottom-or-double-top) I will contribute some code when I get the chance

    1 user thanked author for this post.
    #49997
    Leo

    I all,

    I start posting my ideas here… I believe there is a lot of potential with it.

    You find what I get so far, here

    https://www.prorealcode.com/topic/dobule-bottom-or-double-top/

     

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

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