fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Crisfx
    3. Posts
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 56
    • Best 0
    • Controversial 1
    • Groups 0

    Posts made by Crisfx

    • RE: Lots multiplication problem

      @jstap I have been testing it for some time and everything works fine, thank you very much.

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap I tried and the sequence continues even after restarting the mt4, fantastic. Thank you very much, can I ask you how these blocks "work"?

      I have just these "alert" during compilation: implicit conversion from 'number' to 'string'

      Cattura.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      I had to create a variable called BUYMART because it gave an error during compilation. I copied the blocks into my project and tried in demo but it doesn't multiply.
      Cattura.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      I tried but now it doesn't even multiply anymore, since I modified the "modify variable" block. This is because by using it in loop he will still read the lot (already rounded by the broker) of the last open operation (0.01) and then using "adjust" he will multiply it *1.1. But it will be rounded again by the broker to 0.01 and the next pips away the same thing will happen, in loop it will read the current size of the operation of 0.01. In this way there is no real "sequence" with a variable that increases the lot to follow, the initial size always remains.

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      Everything is correct?

      Cattura.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      Perfect, I'll try it. However, I can't understand how it can solve my problem, currently with the block that I attach(photo) in case of crash/reopening it starts again from the last trade reading the lot. But when he reads the lot of the last trade, can he also read the thousandths?

      Original trade 0.01
      2 trades 0.011
      3 trades 0.0121
      4 trades 0.01331
      5 trade 0.014641 (the broker open 0.01) -> if the platform restart here, when restarting the "for each trade" block and all subsequent ones, what lot will they read? 0.014641 or 0.01 (like the last open trade as it is automatically rounded by the broker)? I understand that it is then adjusted using *TrendMultiply but it would mean starting again as if it were the 2nd trade. As I specified, my problem is to "continue" the multiplication sequence even if the mt4 were to restart due to any problem.

      Cattura.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap "in the modify block get the running trade value"

      Do you mean to modify the "modify variables" block on the right by selecting (in loop) Trade/Order in Loop - Volume size (lots) - Current volume and insert *costantmultiplication in Adjust section?

      "Also use the code in your buy block under numeric value, text code input, and then your multiplier value will be corrected to the correct 0.00"

      By code do you mean MathRound(Lots* 100.0) / 100.0 ?
      To be inserted in the buy block on the right tree?
      I have to use a custom value for this I guess, so I block buy / money management CUSTOM VALUE / Text (code input) / in "sample text" I insert the variable with the lot and in adjust I insert the code I wrote above?

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      It's difficult to understand, I'll explain why: if the mt4 platform is not closed and reopened, everything works correctly. The problem comes when it is closed and reopened and at that point when the For Each Trade/pips away etc block is activated the error I showed you appears, as if the buy or sell connected to the "For each trade" chain wants to use a variable which apparently has been reset/lost/forgotten, since if the mt4 is not closed and reopened the same chain works perfectly.

      Cattura.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap Apparently 0. In fact you can read it inside the alert: for the broker I am trying to open at 0.0. It means that the expert after the reboot has "lost" the variable count, which is now 0.

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap It doesn't happen immediately when I close and reopen the platform. It only happens when the "pips away" condition occurs after the restart, then in this case having to open another trade with that distance the error I sent you comes out. I attach you two screenshots, in the first you see the 3 open trades (2 buy and 1 sell), after which I close and reopen the mt4, after a few minutes another sell opens (I set 1 pip as pips away otherwise it would take days to test) and here's the error. Even if he had to open 0.02 or 0.03 the error would still have occurred. It has already happened to me other times, when this happens it is because for the expert the variable is 0 at that moment.

      I'm using the one I sent you in the last link: https://fxdreema.com/shared/qq3YsnW8c

      Cattura.JPG Cattura2.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap Sorry, I didn't mean an error during compilation but an error once the mt4 was closed and reopened with a trade in progress.
      Cattura.JPG

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap Ok I tried inserting the same constant that I use to open the first trade called "Lots" instead of "Round_from". I tried but the error is always the same, when I have to open another trade as specified as distant from the pips away block, the error appears that the minimum lot is 0.01 from the broker.

      https://fxdreema.com/shared/n5rwoqn4

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap https://fxdreema.com/shared/h3ocNTZRc

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap Where should these 2 blocks be added? The following error appears: 'Round_from' - undeclared identifier
      'Round_from' - undeclared identifier

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @ambrogio I tried in the demo to simulate a crash/restart/update of MT4 when it already had trades in progress, the problem is that the correct multiplication does not continue:

      Let's imagine we started from 0.01 and multiplied *1.1
      1 trade 0.011 broker rounds to 0.01
      2 trades 0.0121 broker rounds to 0.01
      3 trades 0.01331 broker rounds to 0.01
      4 trade 0.014641 broker rounds to 0.01
      5 trades 0.0161051, the broker rounds to 0.02

      If at this moment a crash or restart of MT4 occurs, the variable is lost and it starts again from 0.01.

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @ambrogio This is exactly what I was looking for, thank you very much!

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      Of course, I know this, as I wrote in my second post the value will always be rounded up by the broker. I am interested in the expert making the calculation considering the "correct" number multiplied. By doing this, starting from 0.01 and multiplying *1.1, the expert will calculate the next lot at 0.011, the broker will open at 0.01, no problem. However, the expert will have to "know" that the correct lot according to the multiplication was 0.011 and multiply the next trade starting from this value.

      By doing so, after opening 3 trades at 0.01 he will open the fourth trade at 0.02.

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      @jstap Of course this is clear, the problem is by using this method from 0.01 you immediately go to 0.02. Instead, I would really like to respect the sequence by using a multiplication of *1.1 (or *1.2):

      Starting from 0.01: 0.011 / 0.0121 / 0.01331 / 0.014641, only at the fourth multiplication is 0.02 opened
      Starting from 0.02: 0.022 / 0.0242 / 0.02662 at the third multiplication 0.03 is opened and you can continue up to a starting size of 0.05, from then on it would multiply correctly.

      This is very useful for using low lots but continuing to lower the average entry price even with small capital.

      posted in Questions & Answers
      C
      Crisfx
    • RE: Lots multiplication problem

      The point is that I would like to multiply, not add. When the multiplication occurs, for example 0.01 *1.1 = 0.011, there is a way to "write" the exact lot (which will then be rounded by the broker) but the expert will take into consideration the correct size for the next multiplication (with decimals)?

      posted in Questions & Answers
      C
      Crisfx
    • Lots multiplication problem

      Good evening everyone, I'm trying to understand how to open a second (third, fourth, etc.) trade when the first is at a loss but using a low multiplication, for example 1.1.

      I'm using "for each trade" and a variable that takes the trade lot and then multiplies it using a formula, but of course it keeps repeating the same size without multiplying it. If you start from 0.01 and multiply by 1.1 the result is 0.011 but is rightly rounded to 0.01. The 0.02 will never be opened since every time the digits from thousandths onwards will be lost.

      Does anyone know the way to do this?

      posted in Questions & Answers
      C
      Crisfx
    • 1
    • 2
    • 3
    • 1 / 3