0

ninjatrader でポップアップを作成しているコードにアサーションがあります。ポップアップを防ぎ、同じメッセージをログ ファイルに送信するにはどうすればよいですか?

case MarketPosition.Long:
                {
                    Trace.Assert(exitStopOrderLong!= null,"exitStopOrderLong is null");
                    Trace.Assert(exitStopOrderLong.OrderState==OrderState.Accepted,string.Format("exitStopOrderLong is in invalid state{0}",exitStopOrderLong.OrderState));
                    double stopPrice=Instrument.MasterInstrument.Round2TickSize(Low[1]) -Instrument.MasterInstrument.TickSize/2 ;
                    ChangeOrder(exitStopOrderLong, exitStopOrderLong.Quantity, 0, stopPrice);


                    break;
                }

http://i.imgur.com/vADbRMz.png

4

1 に答える 1