NAS 2m HULL-SAR trading system

Forums ProRealTime English forum ProOrder support NAS 2m HULL-SAR trading system

  • This topic has 343 replies, 42 voices, and was last updated 1 year ago by avatarbege.
Viewing 15 posts - 211 through 225 (of 344 total)
  • #165666

    I’ve been experimenting with a different way to control the cumulation of orders.

    What I want is after it makes 2 entries, it can’t buy any more unless it averages down, ie can only buy below the existing positionprice, to a max of 5 in total.

    This seemed to work, but today I had a situation where one position hit its target and closed, leaving 2 positions open. Then it opened 2 more positions (total of 4) even though it was well above the positionprice.

    This is the code:

    Should line 8 be

    or is there a better way to do it ???

    1 user thanked author for this post.
    #165670

    Shouldnt it be =< maxpos ?

    < maxpos if maxpos is 2 has to be 1 right? Im probably missing something

    #165672

    If it opens 1 position, then that is still < 2, so it buys another. If it were <= then it would buy a 3rd position.

    That part seems to be ok, it’s the maxpos2 (only buy if averaging down) that isn’t doing what it should.

    #165673

    I realised my mistake above, please ignore.

    Also why not use positionperf instead of positionprice, maybe it works differently in cumulating orders

     

    1 user thanked author for this post.
    #165675

    Yeah that could work – def worth trying.

    #165676

    Hmm, actually in backtest it makes no difference – exactly the same result as “close <positionprice” – also continues to open new positions above the the existing positionprice

    #165678

    Sorry I would test myself but im using work laptop.

    Another idea is –

    Im thinking once first position closes, the position price resets.

    Im really interested in the solution too. Hope someone helps

    #165679

    Nice idea, but that also gives exactly the same result 🤔

    Maybe has to be done using a Flag … ?

    #165771

    This seems to work, for anyone who’s interested:

     

    2 users thanked author for this post.
    #165774

    Wo muss ich den Eintrag in den Code einfügen bzw. gegen was ersetzen?Where do I have to insert the entry in the code or replace it with what?

    #165776

    @Maik2404
    Only post in the language of the forumthat you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

     

    #165777

    Where do I have to add the entry in the code or replace it with something?

    #165796

    Here’s the itf

    7 users thanked author for this post.
    #165905

    Thank you very much for your effort @nonetheless, this robot is actually amazing. By the way, I’ve been testing it on demo and real accounts since version 5.3 and yesterday the robot entered 5 long positions. Usually, when the price reaches the trailing SL triggering point, the positions are covered and the trailing starts to work. Nevertheless, yesterday after the entry of the 5 long positions, the price reached the SL triggering point but it did not trigger neither in real acc nor in demo acc, so I decided to close the positions manually before night for security as long as they were not covered by the trailing SL. Did somebody have the same problem?

     

    In the backtests the positions opened yesterday seem to be still open, so it would be interesting if other users that have this robot working could check if the positions opened yesterday are properly covered by the trailing SL.

    #165906

    Which version are you referring to?

Viewing 15 posts - 211 through 225 (of 344 total)

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