public override void Execute() { if (this.TUdREdiNP8 is FreeQuant.Trading.Entry) { FreeQuant.Trading.Entry entry = this.TUdREdiNP8 as FreeQuant.Trading.Entry; switch (this.eASRvQmqnG) { case SignalItemType.Long: entry.LongEntry(); break; case SignalItemType.Short: entry.ShortEntry(); break; } } if (!(this.TUdREdiNP8 is Exit)) { return; } Exit exit = this.TUdREdiNP8 as Exit; switch (this.eASRvQmqnG) { case SignalItemType.Long: exit.LongExit(); break; case SignalItemType.Short: exit.ShortExit(); break; } }
public EntryRule(FreeQuant.Trading.Entry entry) { this.A6AjNEf2lw = entry; this.mYhjgGMMit(); }