Trailing stop fails to move

Forums ProRealTime English forum ProOrder support Trailing stop fails to move

Viewing 15 posts - 16 through 30 (of 30 total)
  • #148790

    Actually I’ve got another problem with that TS (as posted above). It moves to breakeven then stops, doesn’t trail with the price movement. Obviously it’s working correctly in backtest, but in live trading it gets stuck. Have you seen this as well?

    #148793

    no not yet, it never stops 😉 Your dj 5m mod v5 stopped suddenly with a strange message but I think unrelated to this.

    On the 10s frame I use 2 trailingstops in demo and they seem to work alright, but because of using 2 I don’t know which was triggered. I will check.

    Can you provide a pic?

    #148795

    those exits were because the atr trialingstop. I will run it without.

    #148796

    I haven’t got a pic, when I realised it was stuck I closed the position manually. That was with NAS 5m Mod v4S

    #148798

    Interested in testing your mod with the atr trailingstop instead to see if it behaves the same live?

    I updated that one, and the breakeven too, both to use cumulative positions, it’s included in de maex strategy

    #148806

    yeah, I’ll def check it out when I get a minute, it’s either that or go back to the old %TS I had been using. It’s a bit basic but does the job. The big advantage to yours is the separate values for long/short, so maybe I can build that in to the other one (of Nicolas)

    #148809

    Thought of another way if you take that trailingstop (it’s all based on the original)

    Duplicate the code and make sure both not overlap each other.

    1st one for long and remove all short code, and the second one for short with all long removed.

    Should be the same effect (besides the accelerator and sensitivity) but still the advantage for separate values.

    1 user thanked author for this post.
    #148811

    My thoughts exactly. Does this look right to you? Seems to test ok

    Not sure about tradeprice(1), whereas you have positionprice. I know the difference, it’s more the (1) I’m unsure of

    1 user thanked author for this post.
    #148814

    looks good. Tradeprice as written is correct.  Only the reset is off when reversing a position, but most of the time the difference is smal to nothing.

    2 users thanked author for this post.
    #148821

    Thanks Paul. I added

    instead of close and the performance is back to where it was using your TS – at least in backtest it is. Let’s see how it runs live.

    1 user thanked author for this post.
    #150172

    Hi @Paul, I’ve got more problems with this cumulative orders TS. This is the code I’m using:

    It goes to breakeven exactly as expected but then stops, doesn’t trail. In the attached image, the breakeven was at the circled candle. 6 candles later the stop is still at 11835.2. the step is .003% so it should move .35 per candle = 11837. Any thoughts on this?

    #150176

    Ok, never mind – I just realized that acceleratorlong = .003 does not mean .003%

    I forgot because the other TS I use has a straight % value for trailingstep

    This one does trail but sooooo slowly – effectively just holds the position open with the hope of getting to the target. With a setting of .003 I might as well just use the breakeven code.

    #150180

    Hi Nonetheless good you found the reason.

    I might still mention a few things.

    Probably it misses *pointsize at the end, this is the part I changed

    I also changed /100 to /10000 so steps are better manageable.  Doesn’t change results, but the *pointsize might give different results on i.e 1 euro or 2 dollar DJ charts. (the countpos needs to be changed).

    In the past I noticed that using if newsl>0 without defining longonmarket or shortonmarket sometimes, but not always, gave  a few strange results, that why I at the end of the code had it specified.

    Anyway for this part you could test 2 variations. Should have the same results.

    or

    Maybe you can keep above as backup if you still find strange things trading live.

     

    1 user thanked author for this post.
    #150189

    That’s great, I’ll try both those options – thanks again!

    #177823

    Do we have a final version of this.

    Add to the snippet library?

Viewing 15 posts - 16 through 30 (of 30 total)

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