Read workshop 7 again, and look in the manual for the description of the adviseLong/Short function. It does just that.