Problem with Weight

I have been trying to use the Weight function for the purpose of balancing. I am using it in a sell rule, such as:

Eval(Weight > 60, Weight - 0.50, 0)

OR

Eval(Weight > 60, Weight - 50, 0)

The intention is to sell off the part of a positon > 50% of the total portfolio value. In portfolio, positon ABC has reached a weight of 65%. I’d like to sell off 15% of the position only.

In both cases the sell rule sells 100% of the position.

Thanks.

Try Eval(Weight > 60, 0.50, 0).

The Sell rules sell 100% when the function evaluates to 1 or more, 0% if it evaluates to 0 and the corresponding fraction if it evaluates between 0 - 1.

Boolean expressions are the most common, like ‘Rank < 60’, and since they return either 1(true) or 0(false), either all or none of the position is sold.