fxDreema

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

    Trouble checking a Boolean Variable

    Questions & Answers
    2
    3
    744
    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.
    • D
      droctagon last edited by

      Hi,

      I have used a condition block to try and check a value.

      Left Side:
      Value
      Numerical
      [myBooleanValue]

      == Equal to

      Right Side
      Value
      Boolean
      True

      I cannot seem to get a positive output even though I have set the variable to True and tested using Print showing true in the Journal during backtesting. I also set the Left Side to Boolean just in case it was that.

      What am I doing wrong? Thank you very much for your help.

      Update: I created a new project and did a simple test it worked. For some reason I doesn't work in my main project.

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

        Here is something that I tried now:
        [MQL4] https://fxdreema.com/shared/Y7hn2uq1d
        [MQL5] https://fxdreema.com/shared/uWj3Hc36b

        I also defined the variable as int and I used values like 0 and 1 for it, but I can't find something wrong. Can you give me some project or tell me which one of your projects should I look at?

        1 Reply Last reply Reply Quote 0
        • D
          droctagon last edited by

          Sorry to waste your time, I realised it was a purely a problem of block execution order, my numbering was all out.

          Thanks again.

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

          Online Users

          V

          6
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors