Setting a pending order while on market

Forums ProRealTime English forum ProOrder support Setting a pending order while on market

Viewing 7 posts - 1 through 7 (of 7 total)
  • #25540

    Hi all, I was scrolling through other forums looking for ideas and I came across one that looks interesting.

    The link is here if anyone’s interested and the premise is to enter on the 9th bar (hour) of the day based on a certain pattern with a 10 point target and stop. If the stop is hit, a pending order is placed of twice the size 5 points away for reentry in the opposite direction.

    The code I have so far is:

    What I’m struggling to set at the moment is the pending orders part, Does anyone know a way to set it?

    #25577

    So you have already coded the first part of the strategy? right?
    and now you are stuck here? :

    If the stop is hit, a pending order is placed of twice the size 5 points away for reentry in the opposite direction.

     

    #25632

    Hi Nicholas,

    Yes the code I posted was the basic coding of the patterns (the bullish and bearish candles). The part that I’m struggling with is the setting of the pending order for the opposite direction if the stop is it

    #25638

    So there is only 2 trades possible each day? The first one at intradaybarindex=8 and the “recovery” one which is a pending order?

    What do you mean by ” twice the size 5 points away ” ?

    #25657

    Yeah that’s right, on the 8th bar, it will take a position depending based on what pattern formed. It will also set a pending order 5 points away from the stop loss level.

    Sorry, by that I meant twice the size of the original position; so after the 8th bar we enter at £1 per point, and the pending order is set at £2 per point.

    I’m sorry if I’m explaining it badly!

    #25881

    Ok good, this code attempt should be tested (forum coding):

     

    #25976

    Thanks Nicholas, I’ll test it and run it on demo for a while and let you know how it goes!

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

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