fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    formula for SL

    Questions & Answers
    2
    2
    480
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Piroozmand last edited by

      I have a formula to define SL. Then I want it to limit it between to values. How is it possible?

      Formula---> define SL , 20< SL<40
      put SL that is minimum 20 or maximum 40

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by fxDreema

        If you have both values in Variables, you can use the native MQL function MathMin() directly into the field where you would normally write the size of the SL - https://docs.mql4.com/math/mathmin

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        E
        Y
        L
        F
        S
        F
        N
        S
        E
        H

        23
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors