sample nt8 On-Order-Position-update

selnomeria Oct 27th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  2.         protected override void OnPositionUpdate(Cbi.Position position, double averagePrice,  int quantity, Cbi.MarketPosition marketPosition)
  3.         {
  4.             base.OnPositionUpdate(position,  averagePrice,  quantity, marketPosition);
  5.             p("POS_upd:" + bInfo() + "      __"+ position.ToString());
  6.         }
  7.         protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string comment)
  8.         {
  9.             base.OnOrderUpdate(order, limitPrice, stopPrice, quantity, filled, averageFillPrice, orderState, time, error, comment);
  10.             p("ORD_upd:" + bInfo() + "      __" + order.ToString());
  11.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand