Modify Trailing Stop EA based on PSAR

Post Reply
excalibre30
Trader
Posts: 68
Joined: Sat Mar 08, 2014 7:45 am

Modify Trailing Stop EA based on PSAR

Post by excalibre30 »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Modify Trailing Stop EA based on PSAR

Post by milanese »

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
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
excalibre30
Trader
Posts: 68
Joined: Sat Mar 08, 2014 7:45 am

Modify Trailing Stop EA based on PSAR

Post by excalibre30 »

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?
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Modify Trailing Stop EA based on PSAR

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
excalibre30
Trader
Posts: 68
Joined: Sat Mar 08, 2014 7:45 am

Modify Trailing Stop EA based on PSAR

Post by excalibre30 »

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
Post Reply

Return to “Coders Hangout”