fxDreema

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

    Accessing error codes after unsuccessful trade action (e.g. Buy now)

    Questions & Answers
    3
    3
    475
    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
      dgw last edited by

      Hi there,
      using the "Buy now" or "Sell now" blocks, in some cases it occurs that the opening of the requested trade is not possible - for whatever reason (e.g. insufficient margin, just to name one)

      To the grey outcome (unsuccessful) I attached a "custom code" block with "Print("ERROR: Opening BUY failed. ErrorCode: " + GetLastError()); "
      This shows me that the grey outcome has been activated. It should print the reasons for error. However it prints ErrorCode 0, meaning "no error". This means that the error has been read by another block first, but it is not printed to the log.

      Any suggestions? - Otherwise this is feature request to log error codes after reading them.

      cheers

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

        If you are using custom code blocks it means you are a programmer. I'm afraid your answer should be offered bu other programmers like miro or roar.

        (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
        • B
          Babago last edited by

          Hi, have you found any solution to this? Sometimes “modify stop” blocks go for the grey outcome and I can’t get the last error.. and I’m struggling to understand what’s going on...

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

          Online Users

          E
          D
          E
          K
          T
          E
          K
          A
          K

          23
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors