Reply

using Parabolic SAR as trailing stop loss

11 replies

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #113997

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.

File: SAR.pdf

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131612

Try to incorporate a condition such as:

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

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #131620

Thanks. Got it…

 

The new suggested conditions needs to be in another tab. 🙂

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #131629

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.

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131679

Have you created an inverse condition for short side?

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #131701

Currently I only configured for LONG strategy.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131706

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

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #131710

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. 🙂
 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131751

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.

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #131810

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. 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131818

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 …

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

8 years ago #131847

Thanks… 

 

Found the “Move SL to..”

 

0

Viewing 11 replies - 1 through 11 (of 11 total)