I've thought and nothing came up so far, dont you have anything similar to the Volume statistics regarding the position size?
As the code shows, all I want is to limit exposition using while.
EDIT:
The snippet below is our badboy:
CODE:
Please log in to see this code.
I thought about dividing the financial per position per quantity to estimate how many orders I would shoot in hundreds
ie
financial/close = 400
that will be 4 orders of 100 but even in that case I would have to do a FOR using that variable, is that somehow better than my while ?
BR
EDIT 2:
With some patience it happens, test finished now. If you guys have any recommendation for me, let me know but for now I'm satisfied! Thanks for your help!