I have coded a strategy that has built into it a money management system and within this there is a minimum position size that is set with something like the following instruction:
minstake = 0.2
mystake = (my positionsize calculation)
stake = max(minstake, mystake)
The strategy simply buys the stake size in accumulating positions and then sells them all in one go at market. There is no partial closing of positions.
For some reason I see in my orders the closing of positions that are under the minimum possible position size. How is this possible?
See attached image.
More bugs or maybe IG have changed the rules re partial closures etc?
Weird partial lot size … doubt IG would allow other than 0.1 increments so … mmm??
You do unearth the weirdest of happenings Vonasi
You do unearth the weirdest of happenings Vonasi
There is a direct correlation between both the quantity of bugs and the weirdness of bugs and the amount of time spent coding strategies and indicators. I really must get out more! 🙂