How to set trades lot size from newest to oldest?
-
How to set trades lot size from newest to oldest? I want to open more consecutive trades but first trade to have 1 lots, second 1.5 lots, 3rd 2.5 lots, 4th 3 lots and to reset lots sizing after a Take Profit hit.
-
@andrew-b Hello,
I don't believe there's a straight forward way to do this if you have a custom sequesnce that is not an addition or a multiplier of the previous size unless someone else here on the forum can lead us to a simple answer. However, to do this, you will probably need to place a variable in the lot size of the trade, and after that do the following in the screenshot for the amount of number of trades you want:

That's how I would approach this. Good Luck

-
@q8carpenter Thank you for you answer! I really apreciate it. I did this but when i press export, appear "Compilation error". Do you know what the problem might be?
?
-
@andrew-b you're welcome

In the (buy now) block, next to the trade size you have it ticked. You will need to remove that tick cuz now its a variable and not a constant.
-
Yes...this was the error. But the logic is good and really works. Thank you very much!

-
@andrew-b anytime

-
@q8carpenter how would the logic be if it were to be used in a loop
-
@vonmunchy If I understand what you mean here correctly, to add it in a loop, the only ways I know would be to add or multiply the previous lot size by a number. Meaning that at the end of the block chain, place a formula that will multiply the variable lot size lets say by 2 as an example. What this will do is multiply the current trade size by 2 to set the next trade size.
then you will still need to place (no trade) linked to a (modify variable) block that resets the lot size to the first.
-
@q8carpenter something like this i guess.
-
@vonmunchy
I was thinking something like this image. Here you will have an initial trade size and the reset be 0.01 and then with every opened trade, it will be multiplied with the multiplier.
-
@q8carpenter that works too lol. I had used adjust filed to set it to default