Looking for Automatic Stop loss and TP
Results 1 to 7 of 7

Thread: Looking for Automatic Stop loss and TP

  1. #1
    Hi guys,

    I'm searching for a Mt4-tool which sets a predefined stop loss and take profit once we send a market order. It is very valuable for scalping.

    Thank you.

  2. #2
    Quote Originally Posted by ;
    No thought? Thank yoz.
    Hello Unabletrader, please try one you find under this link will help you
    https://www.nigeriaforextrading.com/...mers-read.html

    Regards,
    Moti

  3. #3
    Don't know if the attached script is useful, but I found it in my writings.

    It can also split a market order (together with same entrance and SL) into multiple TPs with different place size weights on each and every part order. For instance, if TotalRisk = $400, TPpips = 10, TPmultiples = 1,2,3 and VolWeights = 2,1,1 then it will generate 3 orders with TP of 10, 20, 30 pips, using $200, $100, $100 risk on the 3 positions, respectively. TotalRisk may be entered as lots (number only), $,% (of B=balance( E=equity or F=free margin),: (true leverage) or (ADR$). Other settings must be self-explanatory. Feel welcome to experimentation.

    The script is offered on a take it or leave it basis, as I've no incentive to revisit the code and modify it. Download and use it at your own risk.

    I have connected the .mq4 source code, however I don't recommend installing it, as it will compile with errors on MT4 build 600 onward. But it makes it possible for another programmer to correct the incompatibilities, then make any additional desired modifiions. The code libraries that the .mq4 file uses can be found in this thread (many thanks to pips4life for updating them).
    https://www.nigeriaforextrading.com/...4170911168.ex4
    https://www.nigeriaforextrading.com/...1938145063.mq4

  4. #4
    Thank you both. It works flawlessly.

  5. #5
    1 Attachment(s)
    Quote Originally Posted by ;
    Don't know if the attached script is useful, but I found it in my writings. It can also divide a market order (with same entrance and SL) into multiple TPs with different place size weights on each part order. By way of instance, if TotalRisk = 400, TPpips = 10, TPmultiples = 1,2,3 and VolWeights = 2,1,1 then it will create 3 orders with TP of 10, 20, 30 pips, with $200, $100, $100 risk over the 3 positions, respectively. TotalRisk might be entered as lots (number only), $,% (of B=equilibrium, E=equity or F=free margin),: (accurate leverage) or (ADR$)....
    I fixed some errors and warnings in -- extensible functions (np).mqh
    so it is compatible with MT4 build 600 , I am using pepperstone 840
    (I remarked the series ReadWebPage(string url) ... function,
    since I can not find the ideal WinINet.dll version in order for it to work.
    https://www.nigeriaforextrading.com/...teresting.html

  6. #6
    Quote Originally Posted by ;
    quote I fixed some errors and warnings in -- extensible functions (np).mqh so it's compatible with MT4 build 600 , I am using pepperstone 840 (I commented out the series ReadWebPage(string url) ... function, because I can not find the ideal WinINet.dll version for it to work. file
    Many many thanks.

    I guess that one day I will put build 509 behind me and begin coding in MQL5.

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.