Exemplo n.º 1
0
 public ConditionForm(Form parent, TradingStrategy strategy, int indexRule)
 {
     InitializeComponent();
     this.parent    = parent;
     this.strategy  = strategy;
     this.indexRule = indexRule;
     init();
 }
Exemplo n.º 2
0
 public ConditionForm(Form parent, TradingStrategy strategy, int indexRule, int indexCondition)
 {
     InitializeComponent();
     this.parent         = parent;
     this.strategy       = strategy;
     this.indexRule      = indexRule;
     this.indexCondition = indexCondition;
     init();
     init_values(strategy.get_condition(indexRule, indexCondition));
 }
Exemplo n.º 3
0
        public TestingForm(Form1 parent, TradingStrategy strategy)
        {
            this.parent = parent;

            InitializeComponent();

            this.strategy = strategy;
            foreach (KeyValuePair <string, FinancialInstrument> instr in parent.Control.Instruments)
            {
                cb_Instrument.Items.Add(instr.Key);
            }
        }
Exemplo n.º 4
0
 public ForecastingModule(TradingStrategy strategy, FinancialInstrument instrument)
 {
     this.strategy   = strategy;
     this.instrument = instrument;
 }
Exemplo n.º 5
0
 public CaretakerStrategy(TradingStrategy strategy)
 {
     originator = strategy;
 }