New position with similar conditions only when the first position take breakeven

Forums ProRealTime English forum ProOrder support New position with similar conditions only when the first position take breakeven

Viewing 15 posts - 1 through 15 (of 15 total)
  • #141710

    I have a position, i want you to another position when the same conditions are met, but only if the first position has breakeven.

    #141712

    Only if the first one closed at breakeven (no profit at all)?

    #141716

    Fran55, could you please elaborate bit more?

    Are you saying something like:

    • Open first position
    • When it has reached a profit of x points, move stoploss of first position to breakeven and open second position with similar conditions as position 1.

    If this indeed is the case, there is a very nice grid strategy here which can be customised to your needs:  https://www.prorealcode.com/topic/grid-orders-with-one-combined-stop-loss-and-limit-can-it-be-done/

    If something else, please explain.

     

     

     

    #141720

    The page no found kaq52.

     

    Please…Open other position with conditions, if the first position is on market and breakeven.

    #141721

    Similarly amend for short conditions.

     

    I know there is an issue on copied links to work, so you couldn’t access above. Hopefully someone can advise how to access above link.

    #141722

    The outcome of the last closed position is returned by PositionPerf(1), so you just need to check it was 0:

     

    #141749

    No valid… Thanks!

    See…

    The second position only open if the first position is on market and gain 0.6% or + and conditions.

    #141751

    This to accumulate a position after a 0.6% increase:

     

    #141759

    Ok.

    And open new position after 0.6% increase at close bar 5 minutes?

    Please.

    #141760

    Yes, if you use a 5-minute TF it will add a position when that bar closes.

    #141765

    And two or three máximum accumulated positions???

    Please!

    #141781

    There you go:

     

    #167796

    Hello, I tried the following code without success, the second position does not execute:

    Bearing, independently, the positions run normally.

    Could you help me ?

    #167802

    @Jigsaw20000

    Try to abide by the basic rules, as highlighted in yellow below:

    • Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
    • Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

    Thank you 🙂

     

    #167804

    Try GRAPHing as many variables as possible to spot any issue:

     

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

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