Last position type

Forums ProRealTime English forum ProOrder support Last position type

Viewing 10 posts - 1 through 10 (of 10 total)
  • #41088

    Hi, how do I test the last loss-position type something like…?

    If PositionPerf(1) < 0 and OnMarket[1]=1  Then

    #41092

    Do you want to know if the last loser was a SELLSHORT or a BUY?

    #41093

    🙂 Yes please.

    #41094

    But only the last position? Or could it be a position far away in the orders history?

    #41095

    Only last.

    #41585

    In this case, why do not save in a variable the type of the order you are launching at market:

     

    #42355

    Indeed, I thought of that, I wondered if there was another way.

    Thanks.

    #104468

    Hi, I want to know the same thing but I’m using a stop order.

    I this case I don’t know when the order will be triggered in and I’m placing a short and a long order at the same time.

    I’m interested to find out what order was closed. if one of the orders is closed (winner), the other order that was not triggered needs to be removed (not renewed).

     

    Thanks

    #104470

    You know what price you placed the orders at so just check to see if a high or low was above or below those prices. You may have to include a fudge factor for spread which adds some inaccuracy to the whole thing though.

    #104841

    Little code snippet to check the profit of the last order and its direction:

     

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

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