EXITSHORT not working?

Forums ProRealTime English forum ProOrder support EXITSHORT not working?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #158971

    Hi, I have a trading system which appears not to want to EXITSHORT. Which is clearly very strange. what am i missing here?

    Am certain the exitdn condition is triggered as other variables in the if statement are being correctly affected (position is reset to its initial value) and the exitdn boolean is true at the expected time. however the EXITSHORT is not executing: the position size is unaffected and so the position’s losses are unusually large.

    I may have read the outcome incorrectly and it is in actual fact executing, but then why is the positionsize not zero?

    For BUY, SELL and SELL SHORT the system behaves as expected: overall position size adjusted, new position entry size decreased (the system takes a large initial stake and then decreases new stake position size each time until 1 or the exit is tirggered and so a reset to initial)

    On the screenshot we see EURCAD 5min on Friday 22nd Jan at 16:15. At 16:10 the CCI crossed over the 100 line which is an exit short condition in this system. At 16:20 the Positions should have gone down to zero. on the user variables chart the blue variable Position (new entry size) is reset to initial value 5. The variable Xdn is set to 1 indicating an exit down criteria has been met, so the contents of the if condition should all be executed.

    I tried with EXITSHORT and with BUY, same inaction both times.

    Will keep looking and any suggestions questions welcome 🙂

     

    Thank you.

     

    #158977

    Hello,
    Graph COUNTOFPOSITION .
    It is negative -16 on the graph whereas you have 5 trades.

    #159082

    this is expected, the position builds with decreasing stakes, so 16=5+4+3+2+1+1 for a total of six entries as the favourable wind continues…

    if the wind changes and the stoploss is triggered, everything appears ok. Well at least it triggers.

    The problem I have is that this position of 16, when the exit criteria are met, does not execute the EXITSHORT.

    at 2030 on your attachment I see an exit long signal on the variables, so SELL happens and the position is reset. But looking earlier you will see two exit short (red /\ on the variables graph) but the position size keeps growing. It should be same as exit long: BUY and position is reset. why no buy?

    Thanks

    #159095

    Instead of using COUNTOFPOSITION, which can be negative, use:

    to make it positive.

     

    1 user thanked author for this post.
    #159178

    awesome! thanks

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

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