Breakout next 5 Bars

Forums ProRealTime English forum ProOrder support Breakout next 5 Bars

Viewing 15 posts - 16 through 30 (of 47 total)
  • #207726

    This don’t work. It seems so that there isn’t any solution for this problem. I can’t beleave it, it is only a market order.

     

    #207727

    Buy 1 contract at High STOP

    I might be missing something, but how can we buy at High?

    High does not allow for spread?

    Surely it needs to be something like … Buy 1 contract at (High-x) STOP?

    Or better still …

    same goes for SellShort …

     

     

    #207728

    Thank you, but im afraid this wont work. Maybe you can take a look at attaced picture?

    #207730

    how can we buy at High STOP? (for example, at bar 100)

    During the next bar (or next few bars) we may hit the value that High was on bar 100 (allowing for spread of course).

    Is this what is happening killerplatuze

    #207731

    yes, it seems so.

    #207732

    I like this PopGun, it’s simple and < 10 lines of code … makes it easy to work on! 😉

    Try below with values A4 to A7 optimised to whatever you think suits your chosen TF and Instrument.

    Below fits what you state in the box on your screenshot?

     

     

    1 user thanked author for this post.
    #207748

    Is above code opening trades > 5 bars after trigger bar?

    If Yes, that is the next thing to fix.

    1 user thanked author for this post.
    #207765

    Many thanks for your help. It seems to be the right way.

    The fifth bar should be filled with a short, but isn’t. If the fourth bar breaks out it will be filled with a trade

    #207768

    So 3 was the trigger bar?

    What value are you using for A4 and A6 in the code I posted?

    1 user thanked author for this post.
    #207778

    Just 5, just wanna see what happened with the bux trigger. The third candle is the buy trigger, One of the next 5 bars must break out, otherwise the popgun will be deleted.

     

    I take 5 for all.

    #207825

    Try this …

     

     

     

    1 user thanked author for this post.
    #207833

    Above code with small improvement …

     

     

    1 user thanked author for this post.
    #207834

    Hi, there ist no trade.

    #207835

    Without A4 and A6 it works, but there is only a trade if the first bar behind the triggerbar breaks out.
    There is no trade if the first bar behind the popgung dont breaks out.
    It seems to be more difficuilt than expected. Thanks for your help.

    #207841

    Works fine for me … see attached.

    with values A4 to A7 optimised to whatever you think suits your chosen TF and Instrument.

    Please confirm that you are doing above and not trying to run the code with the text – A4, A5, A6 and A7 – in the code??

    1 user thanked author for this post.
Viewing 15 posts - 16 through 30 (of 47 total)

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