thats why there are cash/settlement restricitons of usually 3 days, not sure about margin trades though...