How to perform raises correctly?
-
I am performing volume increases by multiplying the previous lot by *1.12 in MT4, but some brokers do not understand and keep the same lot infinitely as 0.01 and do not advance to 0.02
In order for the problem not to occur, I had to create a formula block to calculate the next order and that way I managed to get the EA to open order 0.02 but I don't think it's ideal because a warning message always appears on the screen advising that the broker does not recognize the lot size.Any tips on how to make something standard so that all brokers accept it?

-
@ontradingx As most brokers only use 0.00 as a lot you probably need to round number before using?
-
@jstap Do you have an example of how I can do this?
any projects on fxdreema showing how to solve this? -
@ontradingx Use DoubleToString, look in the comment of this: https://fxdreema.com/shared/N8raddpY
-
@ontradingx the lot gets rounded down to 0.01 and you lose the information of 3rd decimal.
Lot compounding is easier when you work with trade counts - check how many trades you have running, then you can calculate the proper next iteration:
next lot = 0.01*MathPow(1.12, # of trades)
-
@roar Can you give me an example in fxdreema?
You speak in a very easy way to express yourself, but I may be understanding in a more difficult way.
I understood that I would have to use a " Bucket of trader " block to count how many orders are open and relate this to a table, for example:
If I have 1 order use lot 0.01
If I have 2 orders use lot 0.02
If I have 3 orders use lot 0.03And so on....