Dynamic Trailing Stop loss


I'm new to MT4/MT5 learning things with doing some project on each concepts can anyone tell me how to create a Forex trade management tool for MT4 which will continually move a trailing stop loss based upon when new higher highs or lower lows are being formed for that particular currency pair. When the trade is a buy trade, the stop loss will trail the most recent low. When the trade is a sell trade, the stop loss will trail the most recent high. Anyone knows any video to follow regarding this particular topic or any other thing please comment below.


  • Usually people who cannot code do not receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • You can also search the Codebase or Articles, for example code to study and adapt.
  • Finally, you also have the option to hire a programmer in the Freelance section.
Here is a quick search of the CodeBase with the keywords "trailing stop" — https://www.mql5.com/en/search#!keyword=trailing%20stop&module=mql5_module_codebase

Help you with what? You haven't stated a problem, you stated a want.

There are many chandelier trailing stops in the code base. Modify one to trail on the previous higher low instead of the current higher high.

Show us your attempt (using the CODE button) and state the nature of your difficulty.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
          No free help (2017)