fxDreema

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

    Help to compare 61 variables at the end of trade

    Questions & Answers
    3
    3
    562
    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.
    • B
      Bocadeangu last edited by Bocadeangu

      Good evening, friends from the forum. @fxDreema

      I am Brazilian and I already apologize for the English. I'm writing through Google Translate.

      My EA project here at Fxdreema is intended to look like a simple neural network (Perceptron).

      Through indicators and candles, each CONDITION block assigns a value to a unique variable. The value can be 1 or -1.

      I need help to find out at the end of the trade which variables were with negative numbers and which variables were positive.

      Let's say the sum of the variables was> 0. In this case, I make a purchase.

      If the trade is a winner: I want to see which variables were positive and increase their value. (Example: If it was 1, I want to change the value to 1.2)

      I want to see which variables were negative and decrease their values. (Example: if it was 1, I want to change the value to 0.9)

      I know what I can do with blocks. But you would have to compare 61 variables with 2 CONDITION blocks each (162 blocks). After that, use 162 more blocks of MODIFY VARIABLES.

      My question is whether there is a more elegant solution in the CUSTOM MQL custom block to be implemented.

      Obs. I am completely layman in MQL5 code. I don't know anything about programming.

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

        Define an array like Indicator_Value[2,61], then go through this array with loop, quite easy.

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

          @bocadeangu I'm not a programmer either so my help will be limited, I'm afraid. 🙂 The most efficient way is creating arrays to compare all those variables, but you will need custom code for that. Otherwise, I would need to take a look at the project to see if it can be improved.

          (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

          K
          F
          Z
          S
          C
          P

          13
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors