Condition if
-
Hello,
I would like to put a condition block.
I have a "group" variable that acts as a counter, increasing by 1 by 1.
I want that if (group = 1) the value of "lots" is the same.
but if (group> 1) lots = lots * multiplier.
In short, each time I increase the group my lot increases.
group = 1 .... lots = 1
group = 2 .... lots = 1 * 1.5 = 1.5
group = 3 .... lots = 1.5 * 1.5 = 2.25
group = 4 ... lots = 2.25 * 1.5 = 3.37
.....
where 1.5 is my constant "multiplier".
for this I have tried using a condition block.
But it's not working.
Another option would be to put a CUSTOM MQL CODE block, but I can't program mql.
help, how can i do it?
thanks -
@cesardefez your mql is very close already.
-
@roar thank you very very much
