Not logged in
Viewing 12 posts - 1 through 12 (of 12 total)

Forums>AlgoWizard / EA Wizard>General Discussion>using Parabolic SAR as trailing stop loss

  • #113997 |
    Customer
    112 Posts

    I would like to use PSAR as trailing Stop loss but it has a tiny issue when the signal dot flips above the candlestick.

     

    See attached for details.

     

    How do I have a workaround for this?   Thanks.

    Attachments in this forum are visible only for registered users.
    #131612
    Moderator
    1559 Posts

    Try to incorporate a condition such as:

    if (Position = Long AND Bar Close > PSAR) then TRAIL SL

    #131620
    Customer
    112 Posts

    Thanks. Got it…

     

    The new suggested conditions needs to be in another tab. :)

    #131629
    Customer
    112 Posts
    After the new configuration, the SL did not flip immediately but it flips down (when SAR crosses down)

     

    How to configure such that it will remain using the SAR dot (below the candlestick) until price takes it out?  or I have mis-configured the conditions? 

     

    see attached for screenshot.

     

    Attachments in this forum are visible only for registered users.

    #131679
    Moderator
    1559 Posts

    Have you created an inverse condition for short side?

    #131701
    Customer
    112 Posts

    Currently I only configured for LONG strategy.

    #131706
    Moderator
    1559 Posts

    TJ, the best way for me to solve this is to attach your strategy or send it to our support email support@strategyquant.com if you don’t want it to be publicly shared.

    #131710
    Customer
    112 Posts

    Sqw as attached and the backtest info used are the following,

     

    Fx Pair: EURUSD

    Period : H1

    Time Range: 1st Apr 2015 – today

     

    You should able to see the “flip” on 3rd April(9am) while trigger entry is on 1st April(8pm).

    MT4 Time zone: GMT +2

     
    Thanks. :)
     
    Attachments in this forum are visible only for registered users.
    #131751
    Moderator
    1559 Posts

    Rule 2 seems to be pointless to me since there is no “action” defined and there should be one.

     

    The way you have it set up cannot prevent EA to flip SL since Rule 2 has no effect.

    I would suggest removing “trailing stop” parameter and instead use EA Wizard function “Move SL To” to manually move stop-loss using PSAR indicator prices. Now it just behaves correctly as it is supposed to be. Move SL To method is simple and can be controlled well using simple conditions. Just add Move SL to action in Rule 2 and define SL price as PSAR price….

     

    Let me know if you have success with it.

    #131810
    Customer
    112 Posts

    I cannot find the func “Move SL to” but has only “Move SL to Breakeven”.

     

    Could you make the amendments on the provided test01.sqw? Thank you. 

    #131818
    Moderator
    1559 Posts

    Please check in the “THEN” section, click on “Add New”, then click on “Order Management” and see the list if “Move SL To” is present.

     

    If not it’s possible you have some older version. You can download update here https://strategyquant.com/eawizard/download

     

    Let me know if you still unsure how to do it. I will amend that strategy …

    #131847
    Customer
    112 Posts

    Thanks… 

     

    Found the “Move SL to..”

     

    Attachments in this forum are visible only for registered users.

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

You must be logged in to reply to this topic.