Dear,
At the moment I have different position sizes for my longs an my shorts. My shorts are 1.5 bigger as my shorts. I also have multiple positions at one time. The corresponding code I’m using is:
SetPositionSize(IIf(Buy, 1, IIf(Short, 1.5, spsNoChange)), spsShares);
SetOption(“MaxOpenPositions”,4);
I want to change this. Only my first short should be 1.5 bigger as my long. Al other shorts should have the same size as my longs.
Any idea how I can solve this problem?
Kind regards,
Hans