fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Bocadeangu
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 1
    • Topics 4
    • Posts 12
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Bocadeangu

    • B

      Metatrader backtest taking 5X longer than normal
      Questions & Answers • • Bocadeangu

      1
      0
      Votes
      1
      Posts
      217
      Views

      No one has replied

    • B

      Help for Write custom block Mql Code: Condition + modify variables
      Questions & Answers • • Bocadeangu

      7
      0
      Votes
      7
      Posts
      1622
      Views

      M

      @bocadeangu said in Help for Write custom block Mql Code: Condition + modify variables:

      @miki Thanks a lot for the help.

      In what I need to program, I don't need to confirm that the condition is false. If it is not true, you can move on to the next comparison.

      If I write the way below is there a problem ???

      if (Variable1> 0) {Variable1 = Variable1 * Constant;}
      if (Variable2> 0) {Variable2 = Variable2 * Constant;}
      if (Variable3> 0) {Variable3 = Variable3 * Constant;}
      if (Variable4> 0) {Variable4 = Variable4 * Constant;}

      If you use only "if" all variables are checked, if you use "else if" the next variable is checked if the previous is not true. However it would be faster to create an array and loop with a "for" but it would be difficult to explain

    • B

      Help to compare 61 variables at the end of trade
      Questions & Answers • • Bocadeangu

      3
      0
      Votes
      3
      Posts
      562
      Views

      l'andorrà

      @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.

    • B

      Help to compare 61 variables at the end of trade
      General Discussions • • Bocadeangu

      2
      0
      Votes
      2
      Posts
      341
      Views

      l'andorrà

      @bocadeangu I'm not a programmer so I cannot provide an elegant solution to that issue. My suggestion is doing it visually. Try can take a screenshot by using the 'Chart screen shot' block every time the trade hits TP with all requested variables visible with a 'Comment' block. You will need to visualize a lot of photos but at least you will get it.

    • 1 / 1