@staticmethod
def calcVariation(onetick, oneposition):
    '\n    (tick: OneTick, position: OnePosition) -> float\n    '
    created = oneposition.priceMean()
    if (oneposition.side == OnePosition.SideLong):
        current = onetick.bid
    else:
        current = onetick.ask
    return (current / created)
(tick: OneTick, position: OnePosition) -> float
@staticmethod
def calcVariation(onetick, oneposition):
    '\n    \n    '
    created = oneposition.priceMean()
    if (oneposition.side == OnePosition.SideLong):
        current = onetick.bid
    else:
        current = onetick.ask
    return (current / created)