fxDreema

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

    Error message when compiling

    Questions & Answers
    4
    9
    2289
    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.
    • S
      swissi last edited by

      I have this error when compiling .ex5:
      possible loss of data due to type conversion (Value1.Shift = v::CandUpU;)
      Code:
      public: /* Custom methods */
      virtual double Value1() {
      Value1.Symbol = CurrentSymbol();
      Value1.Period = CurrentTimeframe();
      Value1.Shift = v::CandUpU;

      Can anyone help to solve this?

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @swissi last edited by

        @swissi
        "possible loss of data due to type conversion" is not an error, just a warning.

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        S 1 Reply Last reply Reply Quote 0
        • S
          swissi @roar last edited by

          @roar
          Yes I know but it can cause losses in trading. Any suggestions to solve this?

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @swissi last edited by

            @swissi this is just a wild guess, but the warning maybe considers the difference between double and int data types...
            Try changing your double variable to int, maybe it does the trick
            0_1600884060401_d7f5bcd7-a567-4f70-bb15-5af48387ab65-image.png

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            S 1 Reply Last reply Reply Quote 0
            • S
              swissi @roar last edited by

              @roar
              It is not the solution. Thanks

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @swissi last edited by

                @swissi worked in my own test but ok

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                1 Reply Last reply Reply Quote 0
                • S
                  swissi last edited by

                  Solved. Thanks

                  D 1 Reply Last reply Reply Quote 1
                  • D
                    DanZig55 @swissi last edited by

                    @swissi

                    Hello, I know it is quite a long time, but what was the solution here please?

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

                      probably exactly what Roar said.

                      But if you have an issue like this, it is probably specific to you. Problems like this can happen for anything.

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

                      Online Users

                      H
                      R
                      A

                      18
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors