Stop Loss & Take Profit Not Working

Forums ProRealTime English forum ProOrder support Stop Loss & Take Profit Not Working

Viewing 2 posts - 1 through 2 (of 2 total)
  • #193740

    Hi, wondering if anyone could help. My current stop loss and take profit below only works (displays correctly) with forex and indices and doesn’t display at
    all with any shares. So if I trade GBP/EUR for example it’ll calculate my stop loss and take profit and set it for me and it’ll even update the new stop loss
    and take profit from time to time but with shares such as “Proctor & Gamble” etc the exact same code does not even recognise the stop loss and take profit
    is there and the trades are just initiated as usual but with no stop loss and take profit which can be really costly. So does anyone know how to solve this
    as in is there an issue with the code below or is something else causing this?

     

    #193754

    Firstly, SET STOP pTRAILING can only be used in ProBackTest, as it’s not allowed in autotrading.

    ProOrder doesn’t allow two combined stops on the same line, it must be either SET STOP pTRAILING or SET STOP pLOSS.

    Secondly, ATR is a price (range), so you shouldn’t use ”p” with both PROFIT and LOSS as it stands for pip (range).

    Thirdly, in case you accumulate positions or partially close positions,  TradePrice(1) will always retain the last price traded, be it entry or exit, not the first entry price.

     

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

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