예제 #1
0
 //The IsTrading flag is the only state variable that is not reset by the rule that sets it
 override protected bool ExcuteRuleLogic()
 {
     if (BotState.IsAfterTerminateTime || BotState.IsReset)
     {
         RulesManager.Reset();
         BotState.IsTrading = false;
         return(true);
     }
     return(false);
 }