1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using RightEdge.Common; 5 6 // This is an auto-generated file. You should not need to edit it. 7 8 public abstract class MySystemBase : SystemBase 9 { 10 private SymbolScriptCollection<MySymbolScript> _symbolScripts = new SymbolScriptCollection<MySymbolScript>(); 11 public SymbolScriptCollection<MySymbolScript> SymbolScripts 12 { 13 get { return _symbolScripts; } 14 } 15 16 public override void Startup(SystemData data) 17 { 18 base.Startup(data); 19 SymbolScripts.Initialize(this); 20 foreach (MySymbolScriptBase symbolScript in SymbolScripts) 21 { 22 symbolScript.TradingSystem = (MySystem)this; 23 symbolScript.Startup(); 24 SystemData.IndicatorManager.RegisterMembers(symbolScript, symbolScript.Symbol); 25 } 26 } 27 28 public override void NewBar() 29 { 30 base.NewBar(); 31 SymbolScripts.NewBar(); 32 } 33 34 public override void NewTick(Symbol symbol, BarData bar, TickData tick) 35 { 36 base.NewTick(symbol, bar, tick); 37 SymbolScripts.NewTick(symbol, bar, tick); 38 } 39 40 // Indicators 41 42 } 43 44 public class MySymbolScriptBase : SymbolScriptBase 45 { 46 public MySystem TradingSystem; 47 48 public SymbolScriptCollection<MySymbolScript> OtherSymbols 49 { 50 get { return TradingSystem.SymbolScripts; } 51 } 52 53 54 } 55