I have a problem with a code. I want to close half the position in a DAX algo right after a position s taken. Actually i want to take 0.5 contrakt from the beginning but you can only do that manually at IG. Positionsize = 1 a=0.5 If Onmarket Then Sell a At Market Endif