stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Modify Trailing Stop EA based on PSAR
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3749
Page 1 of 1
Author:  excalibre30 [ Sat Jul 26, 2014 2:35 pm ]
Post subject:  Modify Trailing Stop EA based on PSAR

Hi everyone,

I have an EA attached here that puts your SL based on the PSAR levels. It's put the SL as soon as the trade is opened but I would like it to only start trailing using the PSAR level when the trade is in profit of at least a certain number of pips and the PSAR dot is above the open price for longs, and vice versa for shorts. Is there anyone who can help me modify this EA?

Another thing that I thought of is using the PSAR level from a different timeframe. Is that possible? If it is, hopefully it can be added to the mod also.

Thanks in advance.
Author:  milanese [ Sat Jul 26, 2014 3:02 pm ]
Post subject:  Modify Trailing Stop EA based on PSAR

excalibre30 » Sat Jul 26, 2014 2:35 pm wrote:Hi everyone,

I have an EA attached here that puts your SL based on the PSAR levels. It's put the SL as soon as the trade is opened but I would like it to only start trailing using the PSAR level when the trade is in profit of at least a certain number of pips and the PSAR dot is above the open price for longs, and vice versa for shorts. Is there anyone who can help me modify this EA?

Another thing that I thought of is using the PSAR level from a different timeframe. Is that possible? If it is, hopefully it can be added to the mod also.

Thanks in advance.
here you go, use PSAR_TimeFrame for setting your TF and MinProfitToMoveSL for setting the min profit in USD to let the EA move the SL..
PSAR_Trail_mod.mq4
Cheers :)

Tommaso
Author:  excalibre30 [ Sat Jul 26, 2014 3:04 pm ]
Post subject:  Modify Trailing Stop EA based on PSAR

milanese wrote:here you go, use PSAR_TimeFrame for setting your TF and MinProfitToMoveSL for setting the min profit in USD to let the EA move the SL..

Cheers :)

Tommaso
Hi Tommaso,

Thank you so much again. Will do the test now. My account is in Singapore dollars, does that matter since you mentioned min profit USD?
Author:  milanese [ Sat Jul 26, 2014 3:05 pm ]
Post subject:  Modify Trailing Stop EA based on PSAR

excalibre30 » Sat Jul 26, 2014 3:04 pm wrote:
milanese wrote:here you go, use PSAR_TimeFrame for setting your TF and MinProfitToMoveSL for setting the min profit in USD to let the EA move the SL..

Cheers :)

Tommaso
Hi Tommaso,

Thank you so much again. Will do the test now. My account is in Singapore dollars, does that matter since you mentioned min profit USD?
Please redownload as I made some little fix, no it will use your account currency...

Cheers :)

Tommaso
Author:  excalibre30 [ Sat Jul 26, 2014 3:14 pm ]
Post subject:  Modify Trailing Stop EA based on PSAR

Redownloaded now. Thanks again for working on this.
milanese wrote:Please redownload as I made some little fix, no it will use your account currency...

Cheers :)

Tommaso
All times are UTC Page 1 of 1