fxDreema

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

    Outdated Code Structure in MQL5 Output

    Bug Reports
    3
    5
    508
    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.
    • amincgi
      amincgi last edited by

      HI
      I’m using the MQL5 output from FXDreema, and I noticed that the generated code triggers deprecation warnings when compiled with the latest MetaEditor.

      Here are the warnings:

      'struct PendingOrder' initialized from type type 'OnTradeEventDetector::PendingOrder' using assignment operator, this behavior is deprecated and will be removed in future
      ...
      consider defining copy constructor 'PendingOrder(const OnTradeEventDetector::PendingOrder&)'

      This applies to both PendingOrder and Position structs. It seems the generated code uses direct assignment (=) instead of copy constructors, which is now flagged by MQL5 as deprecated behavior.

      Please consider updating the code generation logic in FXDreema to use proper copy constructors to avoid future compatibility issues.

      Best regards,

      J 1 Reply Last reply Reply Quote 0
      • J
        jowy last edited by

        Its true is a warning how can we fixed

        1 Reply Last reply Reply Quote 0
        • J
          jowy last edited by

          Here are the warnings i dont know why this happening and how to fix it

          'struct PendingOrder' initialized from type type 'OnTradeEventDetector::PendingOrder' using assignment operator, this behavior is deprecated and will be removed in future
          ...
          consider defining copy constructor 'PendingOrder(const

          1 Reply Last reply Reply Quote 0
          • J
            jowy @amincgi last edited by

            @amincgi hi did you fixed the warnings could you helpe me

            1 Reply Last reply Reply Quote 0
            • l'andorrà
              l'andorrà last edited by

              Please contact the admin here to let him know:

              https://fxdreema.com/support

              (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

              (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

              (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

              Online Users

              E
              B
              P
              S
              S
              T
              F
              I
              S

              16
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors