Check Lot Size
-
Hello all,
Is there any function where I can create check lot size to open trade. It should be similar like "check trades count" block.
So, for example. max. lot size is set to 1.0 Lot. This means, no trades should be opened if the total lot size for all opened trades already 1.0 Lot.Thank you in advance for any hints!
-
@andrewfrank Something like this:

-
@jstap Thanks a lot!!
And for the Bucket of trades should be like this?
How the color (gray, magenta, etc.) play the role in this case?

-
@andrewfrank Am not really sure but, I think all trades that block collects gets classified as the selected colour..
-
@jstap Ok. Thank you!
I will try it and see how the color plays in the EA..:) -
@jstap
I found out, you can also use directly the condition block with bucket of trades.. (without using modify variables)
is this possible or using modify variables would be the best option?
-
@andrewfrank This depends on what you need it to do, as you don't need the result saved use the condition, if things aren't working as expected try another way. I like it in a variable because this way the result can be seen on screen via a comment block.
-
@jstap Ok. Thanks!
I did the backtest and actual test on my demo, however somehow it did not take any trades...Any idea why? -
@andrewfrank I would think all would work, I would put all into a comment block to check all numbers are correct and not stoping trade.
-
@jstap That's what I thought..
I put the comment. however when it runs, the comment only show the "Comment Message" even though I put the "Total Lot" variable as a text.. -
@andrewfrank This is because the label box is empty, nothing shows until you put at least a .