fxDreema

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

    Compilation errors '-' - illegal operation use '-'

    Bug Reports
    4
    9
    522
    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.
    • A
      akallai86 last edited by

      hello community, after a few months i did some rebuilding and wanted to compile. source code with metaeditor and online compiling throws up errors. would be great if someone has a solution or just ignore it

      Compilation errors
      '-' - illegal operation use
      '-' - illegal operation use

      sourcecode
      public: /* The main method */
      string execute()
      {
      return v::avg_open_price-DoubleToString(SymbolInfoInteger(_Symbol,SYMBOL_SPREAD),2);
      }
      };

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

        Recently I've been using ChatGpt to help fix my compiling errors. Worked great. Sometimes it's a trial and error with the AI , but I kept posting new error codes and it kept giving me the fixes . Plus it explains why the error occurred and where in the code to place the corrected code. Like commuting with a teacher. You can copy and paste the errors from MetaEditor into the chat window

        Also, there is a limited number of characters you can place in one message. I put FXDreama code into an online chat prompt splitter and then posted the individual sections so Chat GPT could read the full code. The amazing thing is that ChatGPT kept track of 1 of 7, 2 of 7 etc., knew when I was done an then asked what I wanted. That's when I posted the errors, which were from me manually adjusting and/or adding code

        1 Reply Last reply Reply Quote 0
        • A
          akallai86 last edited by

          thank u for that but even chatgpt throws the random explanation. just happened with the new metatrader update and the update to their package. syntax us right just dont know why it throws the error

          F 1 Reply Last reply Reply Quote 0
          • A
            akallai86 last edited by

            image.png

            1 Reply Last reply Reply Quote 0
            • A
              akallai86 last edited by

              when i use - instead of + it gives the error. worked in the past. the goal was to get a breakeven price include the spread.

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

                Definitely you should let the admin know.

                (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
                • F
                  fxpim @akallai86 last edited by

                  @akallai86 Just to make sure, have you already tried to deduct or add the symbol spread from sell_open_price without converting it into a string value?

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    akallai86 @fxpim last edited by

                    @fxpim no thats what im trying to do to deduct the spread. when i use + instead of - it works the moment i want to deduct it throws the error

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fxpim @akallai86 last edited by

                      @akallai86 I mean, have you already tried to deduct the spread as a number from sell_open_price instead of deducting it as a text?

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

                      Online Users

                      J
                      T
                      J
                      B

                      20
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors