STOP LOSS / TRAILING STOP PROBLEM – GUARANTEED STOPLOSS

Forums ProRealTime English forum ProOrder support STOP LOSS / TRAILING STOP PROBLEM – GUARANTEED STOPLOSS

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

    Hello everyone!

    I hope you are well!

    I have a problem that I am not able to solve and I don’t see where it is…

    Here is my code (I combine some seen on this site and some of mine 🙂 )

    I’ve set up a trailing stop for the long positions and another for the shorts but I’d like to get a classic SL (implemented in the code in order not to touch the guaranty SL and pay an extra 1 point 😉 )

    But it did not recognize my SL with the capital…

    Can you help me? 😀

     

    THANKS!

    #75278

    You could try to remove the SET STOP pLOSS instruction and add this code before line 76:

     

    #75325

    Thanks for this answer! I slightly change my code and makes it clearer. Here it is:

     

    Do you think I can have a trailing stop, the stop loss you wrote me AND another stop that would the garanty one which is compulsory by PRT in cfd limited accounts?

     

    For now, if you have a look, I have 3 different stops: the trailing, the one you gave me and the the last lines whith the profit of the strategy. In fact I need one trailing stop (already in the code), a stop loss (wich would be above the “garanty” one to avoid 1 point extra spread) and the garanty one (so under my SL)

     

    Do you know what do I have to change?

     

    THANKS!!!

    #75343

    Add a line with the SET STOP PLOSS instruction again, but with a price spread (3 points here) between the previous code I gave you and this new one:

    I moved the topic in the English section! wrong place here…

     

    #75346

    Ok, thanks! You’re right, it should be in this section 🙂

     

    Is it like this (the insertion of your code)?

    And so, are the last lines taked into account as well?

     

    In this code I now have, A trailing Stop, A stop that I define myself, A stop loss for the guaranty one and one with my losse right?

    Thank you one more time for your reactivity Nicolas!

    #75347

    I just recalled of a discussion we had on forum about guaranteed stop: https://www.prorealcode.com/topic/guaranteed-stops-2/

    The conclusion is that even exiting position with a pending order like the code I gave will activate the guaranteed stop fee, since it is an order made to act like a stoploss ( understand a contrarian order made to exit the order at market ). So there is no solution to avoid your broker taking fee to protect your order, and that’s fair, IMO.

     

    #75357

    I agree Nicolas, I agree that we have to get a g SL. But I think that we could get our SL above of this one and get the g SL to prevent our SL in case it is defective, not all the time. For example, if you have a strategy that produce 100 orders a day on the DAX 5EUR/point  and 50% of them are profitable it means that you already have 5*(100*0.5)=250€…

     

    That’s didn’t wanted to avoid the g SL, just getting another one above

     

    Is it possible? The trailing stop does not count as a g SL isn’t it?

     

    Thanks

    #75369

    Following the discussions of this thread: https://www.prorealcode.com/topic/guaranteed-stops-2/page/2/#post-65735 , you will understand that because any order at market must have first an attached stoploss and that this one is automatically been “guaranteed”, any other pending stop order set later after the order will be automatically transformed into the new “guaranteed stop”.

    #75373

    Ok, now I am lost…

     

    Question very simple: The trailing stop implemented in my code would be considered as a G SL or not?

     

    Thanks

    #75379

    Yes, I think so, as per the tests made. But I’d like to confirm this assumption with a phone call by tomorrow.

    #75384

    Oh, great thanks! You’ll tell me tomorrow?

    #75443

    I do confirm that the nearest stop order to close an opened market position WILL BE AUTOMATICALLY considered as the guaranteed stop. There is no way to avoid your order to be triggered by a guaranteed stoploss with a limited risk account.

    #75444

    Ok, thank you very much Nicolas for this clear answer!

    #75447

    I just got one question, is it possible then, to include this G SL in the backtest?

    #75467

    If you are meaning include the fee into backtests, just expand the spread with the markup your broker ask you to pay the guaranteed stop.

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

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