Trailing Stop on Profit EA

Nothing happens.. u can see the dotted square box when grabbing the ea but with dragged over to chart nothing.
 

Attachments

  • IMG_7461.jpeg
    IMG_7461.jpeg
    535.9 KB · Views: 5
  • IMG_7460.jpeg
    IMG_7460.jpeg
    529.5 KB · Views: 5
  • IMG_7459.jpeg
    IMG_7459.jpeg
    542.7 KB · Views: 6
Nothing happens.. u can see the dotted square box when grabbing the ea but with dragged over to chart nothing.
Could you please use Win+Shift+S to take actual screenshots? It's quite difficult to see anything on these photos. I would also need to see the output in the Experts tab of the Terminal subwindow when you attach the EA to a chart. Thank you!
 
You need to re-compile the Trailing Stop on Profit.mq4 file. Before that, make sure you've copied all the folders from the downloaded archive to the MQL4 folder of your MetaTrader.
It’s a zip file.. do I extract then copy into mt4 or just extract the file when it’s in the mq4?
 
You need to extract three folders from that file and copy them all to the MQL4 folder of your MT4.
Ok great have it working… many thanks…
Question: I have my SL at 340 points but want the EA to kick in when I’m in 30 points profit . Then start to trail every 40 points.. how do I set that up.. I use a script to auto set my SL
 
Ok great have it working… many thanks…
Question: I have my SL at 340 points but want the EA to kick in when I’m in 30 points profit . Then start to trail every 40 points.. how do I set that up.. I use a script to auto set my SL
There is no way to trail stop every 40 points. This EA trails stop in a continuous manner. You can set Profit in points to 30 and the Trailing stop to 40. However, it will always keep SL at 40 points away from the last achieved price maximum.
 
There is no way to trail stop every 40 points. This EA trails stop in a continuous manner. You can set Profit in points to 30 and the Trailing stop to 40. However, it will always keep SL at 40 points away from the last achieved price maximum.
Many thanks for all your help
 
Trailing stops are good for you to have in your toolbox of tricks but useless as a blanket strategy. You should get yourself an ATR SL TP EA. THERE IS ONE FOR FREE ON MT5 market but i reckon it will go premium. if you dload and it goes premium it will still be for free on any other terminal long as same login name. its the only one of its kind.
 
hi. i tried to test it in Octa MT5 demo account, it doesn't work although it reached points that I set up. I tested the same with Exness, it works. Please test by your self and please advice. Thanks
 
hi. i tried to test it in Octa MT5 demo account, it doesn't work although it reached points that I set up. I tested the same with Exness, it works. Please test by your self and please advice. Thanks
Please provide more information about what happened. Some screenshots would help here. Was there any relevant output either in the Experts or Journal tab log at around the time when it had to trigger?
 
What you are looking for is a trailing stop on profit feature. This isn't possible in the Position Sizer. You can try our separate EA for that:
https://www.earnforex.com/metatrader-expert-advisors/Trailing-Stop-on-Profit/
Thank you for your response!

I appreciate the suggestion of the Trailing Stop on Profit EA. However, I've run into an issue with it. When I download and try to set it up, it seems to clash with the existing Position Sizer files (both on Mac and Windows). And I believe, as a result of files clashing, it doesn't appear in the Navigator window on my MT5 platform (even once refreshed). The download and installation processes were completed following the steps on the Trailing Stop on Profit EA.

I've noticed that the Trailing Stop on Profit EA has a relatively low rating on the Expert Advisors list, and I can't help but wonder if this file clashing issue might be one of the reasons for the rating it received. Of course, I'm not certain this is the case, but it's just a thought.

This leads me to another question: If I can get the Trailing Stop on Profit EA to work, can it be used in conjunction with Position Sizer? I use Position Sizer exclusively to open my trades. I'm trying to understand if it's possible to open trades using Position Sizer and then have the Trailing Stop on Profit EA apply its specific trailing stop logic to those trades, doing exactly what I'm aiming for.

Also, do you know if there are any plans for a version update in the near future for the Trailing Stop on Profit EA?
 
I appreciate the suggestion of the Trailing Stop on Profit EA. However, I've run into an issue with it. When I download and try to set it up, it seems to clash with the existing Position Sizer files (both on Mac and Windows). And I believe, as a result of files clashing, it doesn't appear in the Navigator window on my MT5 platform (even once refreshed). The download and installation processes were completed following the steps on the Trailing Stop on Profit EA.
What exactly do you mean by file clashing? There shouldn't be any conflict between the two.
I've noticed that the Trailing Stop on Profit EA has a relatively low rating on the Expert Advisors list, and I can't help but wonder if this file clashing issue might be one of the reasons for the rating it received. Of course, I'm not certain this is the case, but it's just a thought.
That rating isn't voted by users, it is set by me based on my own idea of the EA's usefulness.
This leads me to another question: If I can get the Trailing Stop on Profit EA to work, can it be used in conjunction with Position Sizer? I use Position Sizer exclusively to open my trades. I'm trying to understand if it's possible to open trades using Position Sizer and then have the Trailing Stop on Profit EA apply its specific trailing stop logic to those trades, doing exactly what I'm aiming for.
Yes, you can do that as long as you attach Trailing Stop on Profit to a separate chart.
 
  • 👍
Reactions: Tumok
What exactly do you mean by file clashing? There shouldn't be any conflict between the two.
What i meant by "file clash" is that some of the folders from the Trailing Stop on Profit EA archive have the exact same names as existing folders within my MetaTrader 5's main MQL5 directory.

The installation instructions for the Trailing Stop on Profit EA says to "copy all the folders from the archive directly to the MQL5 folder." However, the archive contains folders like Experts, Files, and Include, which already exist in my MQL5 folder.

When I try to copy the new files over, the system asks me to either replace the existing folders or merge them. This is what I meant by a clash, and I'm concerned about choosing the wrong option and potentially corrupting the already existing Position Sizer files, which are located within those same directories.

p.s. - I am on Mac
That rating isn't voted by users, it is set by me based on my own idea of the EA's usefulness.
Ahh fair enough, I took that rating as something done by the users.. my apologies.
Yes, you can do that as long as you attach Trailing Stop on Profit to a separate chart.
The response "as long as you attach Trailing Stop on Profit to a separate chart" is a little confusing to me. I'm looking to use both EAs for the same pair and trade. For example, if I open a trade on XAUUSD using Position Sizer, I want the Trailing Stop on Profit EA to manage the trailing stop for that exact same trade. Is this possible?
 
What i meant by "file clash" is that some of the folders from the Trailing Stop on Profit EA archive have the exact same names as existing folders within my MetaTrader 5's main MQL5 directory.

The installation instructions for the Trailing Stop on Profit EA says to "copy all the folders from the archive directly to the MQL5 folder." However, the archive contains folders like Experts, Files, and Include, which already exist in my MQL5 folder.

When I try to copy the new files over, the system asks me to either replace the existing folders or merge them. This is what I meant by a clash, and I'm concerned about choosing the wrong option and potentially corrupting the already existing Position Sizer files, which are located within those same directories.
It's OK that those folders already exist in your MQL5 folder (it would be a problem if they didn't). You can safely copy them over your existing folders, overwriting the files with the same names. It shouldn't cause any issues.
The response "as long as you attach Trailing Stop on Profit to a separate chart" is a little confusing to me. I'm looking to use both EAs for the same pair and trade. For example, if I open a trade on XAUUSD using Position Sizer, I want the Trailing Stop on Profit EA to manage the trailing stop for that exact same trade. Is this possible?
Yes, you just attach the Trailing Stop on Profit EA to the second XAU/USD chart.
 
  • 👍
Reactions: Tumok
It's OK that those folders already exist in your MQL5 folder (it would be a problem if they didn't). You can safely copy them over your existing folders, overwriting the files with the same names. It shouldn't cause any issues.
I've tried overwriting the files as you've suggested but it doesn't seem to be working.. Trailing Stop on Profit EA does not appear in the MT5 Navigator window under the Expert Advisors. Tried it on both Windows and Mac and both don't seem to have the same installing issue.

The Position Sizer EA downloads, installs and runs perfectly fine, but for some reason the Trailing Stop on Profit EA fails to install properly on either OS, despite following the instruction on the Trailing Stop on Profit EA page or your suggestions of overwriting files 🙁

What are some potential reasons why this specific EA wouldn't be appearing in the Navigator window, even after following the correct installation and overwriting the files?

Could you possibly create and upload a quick video demonstrating the correct installation steps (for Mac) specifically for this EA? It would be incredibly helpful to make sure we aren't missing a small but crucial step.

Alternatively, do you have any other suggestions on what we could try to get it to show up?

Already very thankful for your time and efforts to solve this!
 
I've tried overwriting the files as you've suggested but it doesn't seem to be working.. Trailing Stop on Profit EA does not appear in the MT5 Navigator window under the Expert Advisors. Tried it on both Windows and Mac and both don't seem to have the same installing issue.

The Position Sizer EA downloads, installs and runs perfectly fine, but for some reason the Trailing Stop on Profit EA fails to install properly on either OS, despite following the instruction on the Trailing Stop on Profit EA page or your suggestions of overwriting files 🙁

What are some potential reasons why this specific EA wouldn't be appearing in the Navigator window, even after following the correct installation and overwriting the files?

Could you possibly create and upload a quick video demonstrating the correct installation steps (for Mac) specifically for this EA? It would be incredibly helpful to make sure we aren't missing a small but crucial step.

Alternatively, do you have any other suggestions on what we could try to get it to show up?

Already very thankful for your time and efforts to solve this!
What steps exactly are you following to install it and at which one does it fail?
Did you try compiling the Trailing Stop on Profit.mq5 in MetaEditor?
 
Did you try compiling the Trailing Stop on Profit.mq5 in MetaEditor?
Yes, and when I do that, in the Errors tab I get this error (attached screenshot)

At this point I am almost sure I am doing the right thing yet cannot seem to get it install 🙁
 

Attachments

  • Screenshot 2025-08-27 at 10.19.07.png
    Screenshot 2025-08-27 at 10.19.07.png
    192.4 KB · Views: 5