Trailing Stop

  • This topic has 11 replies, 5 voices, and was last updated 8 years ago by avatardidi.
Viewing 12 posts - 1 through 12 (of 12 total)
  • #3816

    Hello, I have a question I want to run the following sto / trailing strategy.
    Initial Stop: 50 points
    Steps for Trailing 2 points   … target is 80 pionts
    is that correct?

    My goal is, if the trade goes in the right direction, the stop is raised in this direction by two points (in long)


    Thanks Heinz

    // Stops und Targets
    SET STOP ploss 50
    SET STOP pTrailing 2
    SET TARGET pPROFIT 80

    #3820

    Hello Heinz,

    I have attached a copy of the PRT manual.  If you go to pp. 9-13, you will find every conceivable stop loss.  I would rather you do this than take my word for it as I am not an expert programmer.

    You can also go to http://www.prorealcode.com/blog/learning/kinds-trailing-stop-proorder/ on this site, where Nicolas has provided some great insights into the art of building stop losses, the real key to profits.

    Let me know how you go.

    Best regards,

    https://www.prorealtime.com/en/pdf/probacktest.pdf

    Mike

    #3838

    Thank you very much  …. Mike

    #3839

    Hi Guys,

    I have a quick question about trailing stop losses & back tests if anyone can help.

    Does anyone happen to know if during a back test on a system that trades using the hourly charts, whether each tick is taken into account during that hour for the trailing stop? Or does the back test just look at the hourly candle itself?

     

    Thanks

    Dave

    #3855

    Hi Dave, refer to the URL’s I sent Heinz, above.  The answer to your question is that it will depend on the type of trailing stop loss you set.  It can be a % of average price, or a number of points or a number of pips.  Nicolas’s explanations are far better than I can offer.

    Good trading!

    Mike

    #3866

    Thanks Mike I’ll have a look again 🙂 Just having a look deeper into the minute trades and it appears that it does indeed use tick by tick during the back tests.

     

    Thank you!

     

    #3877

    Hallo Dave,

    that’s for sure, it will not tick data used to backtest. After Aussag German Hotline, but will soon tick data for backtest are available. If only the question when is soon?
    This is a shame, because this is the backtest data really worth nothing.
    Since I currently helps only a test on the demo account. But then introduced a lot of time.
    Best wishes
    Heinz

    #3889

    Hello everyone, you are right every conditions are only tested at each new open bar. That’s the reason why backtest and optimization are dealing so fastly when you launch them.

    I know that it can introduce some errors into backtest, but be sure that this is something that PRT team are actually working on to make it more “realistic” : the backtest engine will fetch all timeframes below the tested one to see if your stop or trailing conditions were met, as far as I understand how they will do it ..

     

    #3893

    Ah ok! Thanks for the information Nicolas. That would explain some of frustrations I’m experiencing!

    #3932

    Hello,
    Can anyone give me a hint. I’m trying to program following.
    This is the target and stop.
    I have the code a $ stop and $ target. But I would not put a trailing stop, but the following Stop Description:
    1. Stop at erreichenvon 60% of the $ Target … then set the $ stop at 10% of the $ target.
    and
    2. Stop when reaching 80% of the $ Target …. then set the $ stop at 20% of the $ Target
    An example:
    Initial Target $ = 100 $ … $ Stop = – $ 80
    1. Stop to draw upon reaching 60% of the target = $ 160 bet $ Stop to $ 110 so over cost
    2. Stop tighten if reached 80% of target = $ 180 put stop to $ 120
    For a code variant as a default, I am very grateful.
    Best wishes
    Heinz Frühling

    #4161

    Hello Heinz Frühling,

    Please consider post your entire strategy here to make the whole modifications you ask. It would be much easier to include modifications directly into it, because it needs to put conditions in trade launch, etc.. Thank you.

    #4836

    Hi guys I have also a question about pTailing stops. In my strategy following stop is set: SET STOP pTRAILING 5 could you please tell me if I enter DAX short at 10 000 for example where this stop would be set and how it will be moved if I am in the right direction?

    Thanks

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

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