if (MarketPosition = 1) then . MAE = (LowestLow â EntryPrice)/EntryPrice else if (MarketPosition = -1) then . MAE = (EntryPrice - HighestHigh)/EntryPrice;