changed insider buy logic (reversed tradePrice and medianPrice)