Example #1
0
        //----------------------------------------------------------------------
        // Component Event
        //----------------------------------------------------------------------\
        private void TradeStationControl_Load(object sender, EventArgs e)
        {
            Log = new Logger();

            fOnTSActiveOrder = new FOnTSActiveOrder(OnTSActiveOrder);
            GC.KeepAlive(fOnTSActiveOrder);
            Log.Write("NEW fOnTSActiveOrder and KeepAlive");

            fOnTSCanceledOrder = new FOnTSCanceledOrder(OnTSCanceledOrder);
            GC.KeepAlive(fOnTSCanceledOrder);

            fOnTSFilledOrder = new FOnTSFilledOrder(OnTSFilledOrder);
            GC.KeepAlive(fOnTSFilledOrder);
        }
Example #2
0
        //----------------------------------------------------------------------
        // Component Event
        //----------------------------------------------------------------------\
        private void TradeStationControl_Load(object sender, EventArgs e)
        {
            Log = new Logger();

            fOnTSActiveOrder = new FOnTSActiveOrder(OnTSActiveOrder);
            GC.KeepAlive(fOnTSActiveOrder);
            Log.Write("NEW fOnTSActiveOrder and KeepAlive");

            fOnTSCanceledOrder = new FOnTSCanceledOrder(OnTSCanceledOrder);
            GC.KeepAlive(fOnTSCanceledOrder);

            fOnTSFilledOrder = new FOnTSFilledOrder(OnTSFilledOrder);
            GC.KeepAlive(fOnTSFilledOrder);
        }
 public static extern int RegisterOnTSCanceledOrderCallBack(FOnTSCanceledOrder OnTSCanceledOrder);
Example #4
0
 public static extern int RegisterOnTSCanceledOrderCallBack(FOnTSCanceledOrder OnTSCanceledOrder);