fxDreema

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

    Bug with Condition block & _OrderStopLoss Block

    Bug Reports
    2
    4
    658
    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.
    • K
      kroghd last edited by

      Hi,

      I think I have found 2 problems

      First problem is with use of _OrderStopLoss MQL has error compiling - it complains about missing correct number of parameters
      inside the else if (Mode=="fraction") needing the digits param to be supplied.

      Second is with trying to use condition block to evaluate result as ==.
      Example is if I open an order with stoploss of 100 pips

      I fill a variable with value of stop loss in pips using result returned from pips block from your _OrderStopLoss (fixed function so it compiles).

      Trying to compare value of variable containing result from above to numeric 100 they are not returning as equal.

      I cant seem to find a way to resolve the issue - it must be something to do with the double type variable results being somehow different so the comparison is always false.

      I have tried Ro=NormalizeDouble(_value(100),Digits()); but this has made no difference.

      Your help would be appreciated.

      P.S - Do you give some extra days for finding bugs - unfortunately I have lost some time trying to figure out what has been the problem here 🙂

      Thanks
      -David

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

        Don't try to fix error that comes from fxDreema, it's most probably some bug that I must fix, so reporting it is enough. You have extra days.

        1 Reply Last reply Reply Quote 0
        • K
          kroghd last edited by

          I understand - please post back when things have been fixed from your side so I can download again & check

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

            Ah, you are using the local version? Ok, I reuploaded it now because of other small problem with another person (081), you can ty it.

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

            Online Users

            L
            H
            S
            E

            8
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors