protected override void Create(){
     m_AverageFC = new AverageFC(this);
     m_UpperBand = new VariableSeries<Double>(this);
     m_bSetupLE = new VariableObject<bool>(this);
     m_CrossingHigh = new VariableObject<double>(this);
     m_KltChLE = OrderCreator.Stop(new SOrderParameters(Contracts.Default, "KltChLE", EOrderAction.Buy));
 }
 protected override void Create(){
     m_adx1 = new Function.ADX(this);
     m_adxvalue = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("ADX", 0, Color.Cyan,
                                     Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_mktfacilx = new VariableSeries <Double>(this);
     Plot1       =
         AddPlot(new PlotAttributes("MktFacilX", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_rs_dailydataarray1 = new RS_DailyDataArray(this);
     m_barnumber1 = new BarNumber(this);
     m_rs_extremes1 = new RS_Extremes(this);
     m_rs_average1 = new RS_Average(this);
     m_rs_average2 = new RS_Average(this);
     m_rs_average3 = new RS_Average(this);
     m_index = new VariableObject<Int32>(this);
     m_qualhi = new VariableSeries<Boolean>(this);
     m_quallo = new VariableSeries<Boolean>(this);
     m_oprevhighest = new VariableObject<Double>(this);
     m_oprevhighestday = new VariableObject<Double>(this);
     m_oprevlowest = new VariableObject<Double>(this);
     m_oprevlowestday = new VariableObject<Double>(this);
     m_revgapup = new VariableObject<Boolean>(this);
     m_revgapdn = new VariableObject<Boolean>(this);
     m_dataarray = new Array2DSimple<Double>(this, 13, 101);
     m_subarray = new ArraySimple<Double>(this, 4);
     Plot1 =
         AddPlot(new PlotAttributes("NewHiLo", EPlotShapes.Point,
                                    Color.Cyan, Color.Empty, 5, 0,
                                    true));
     Plot2 =
         AddPlot(new PlotAttributes("RevGap", EPlotShapes.Point,
                                    Color.Yellow, Color.Empty, 2,
                                    0,
                                    true));
     Plot3 =
         AddPlot(new PlotAttributes("HiLine", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
     Plot4 =
         AddPlot(new PlotAttributes("LoLine", 0, Color.Magenta,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_normgradientcolor1 = new NormGradientColor(this);
     m_roc = new VariableSeries <Double>(this);
     Plot1 = AddPlot(new PlotAttributes("ROC", 0, Color.Silver, Color.Empty, 0, 0, true));
     Plot2 = AddPlot(new PlotAttributes("ZeroLine", 0, Color.Green, Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_xaverage1 = new XAverage(this);
     m_avgexp = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("AvgExp", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_macd1 = new Function.MACD(this);
     m_xaverage1 = new Function.XAverage(this);
     m_normgradientcolor1 = new Function.NormGradientColor(this);
     m_macdvalue = new VariableSeries<Double>(this);
     m_macddiff = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("Plot1", EPlotShapes.BarHigh,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
     Plot2 =
         AddPlot(new PlotAttributes("Plot2", EPlotShapes.BarLow,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
     Plot3 =
         AddPlot(new PlotAttributes("Plot3", EPlotShapes.LeftTick,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
     Plot4 =
         AddPlot(new PlotAttributes("Plot4", EPlotShapes.RightTick,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
 }
 protected override void Create(){
     m_mypercentr = new VariableSeries<Double>(this);
     m_avg = new VariableSeries<Double>(this);
     m_PctRLE =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "PctRLE", EOrderAction.Buy));
     m_setupl = new VariableObject<bool>(this);
 }
 protected override void Create(){
     m_adaptivemovavg1 = new AdaptiveMovAvg(this);
     m_maa = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("MAA", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_accumdist1 = new AccumulationDistribution(this);
     m_accdstprvol = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("AccDst-PrVol", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_AverageFC = new AverageFC(this);
     m_LowerBand = new VariableSeries<Double>(this);
     m_KltChSE = OrderCreator.Stop(new SOrderParameters(Contracts.Default, "KltChSE", EOrderAction.SellShort));
     m_bSetupSE = new VariableObject<bool>(this);
     m_CrossingLow = new VariableObject<double>(this);
 }
示例#12
0
 protected override void Create()
 {
     m_RSI   = new RSI(this);
     m_myrsi = new VariableSeries <Double>(this);
     m_RsiLE =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "RsiLE", EOrderAction.Buy));
 }
 protected override void Create(){
     m_obv1 = new OBV(this);
     m_obvvalue = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("OBV", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_AverageFC = new AverageFC(this);
     m_Avg = new VariableSeries<Double>(this);
     m_MACrossSX =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MACrossSX",
                                                               EOrderAction.BuyToCover, OrderExit.FromAll));
 }
示例#15
0
 protected override void Create()
 {
     m_rs_dailydataarray1 = new RS_DailyDataArray(this);
     m_barnumber1         = new BarNumber(this);
     m_rs_extremes1       = new RS_Extremes(this);
     m_rs_average1        = new RS_Average(this);
     m_rs_average2        = new RS_Average(this);
     m_rs_average3        = new RS_Average(this);
     m_index           = new VariableObject <Int32>(this);
     m_qualhi          = new VariableSeries <Boolean>(this);
     m_quallo          = new VariableSeries <Boolean>(this);
     m_oprevhighest    = new VariableObject <Double>(this);
     m_oprevhighestday = new VariableObject <Double>(this);
     m_oprevlowest     = new VariableObject <Double>(this);
     m_oprevlowestday  = new VariableObject <Double>(this);
     m_revgapup        = new VariableObject <Boolean>(this);
     m_revgapdn        = new VariableObject <Boolean>(this);
     m_dataarray       = new Array2DSimple <Double>(this, 13, 101);
     m_subarray        = new ArraySimple <Double>(this, 4);
     Plot1             =
         AddPlot(new PlotAttributes("NewHiLo", EPlotShapes.Point,
                                    Color.Cyan, Color.Empty, 5, 0,
                                    true));
     Plot2 =
         AddPlot(new PlotAttributes("RevGap", EPlotShapes.Point,
                                    Color.Yellow, Color.Empty, 2,
                                    0,
                                    true));
     Plot3 =
         AddPlot(new PlotAttributes("HiLine", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
     Plot4 =
         AddPlot(new PlotAttributes("LoLine", 0, Color.Magenta,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_macd1              = new Function.MACD(this);
     m_xaverage1          = new Function.XAverage(this);
     m_normgradientcolor1 = new Function.NormGradientColor(this);
     m_macdvalue          = new VariableSeries <Double>(this);
     m_macddiff           = new VariableSeries <Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("Plot1", EPlotShapes.BarHigh,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
     Plot2 =
         AddPlot(new PlotAttributes("Plot2", EPlotShapes.BarLow,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
     Plot3 =
         AddPlot(new PlotAttributes("Plot3", EPlotShapes.LeftTick,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
     Plot4 =
         AddPlot(new PlotAttributes("Plot4", EPlotShapes.RightTick,
                                    Color.White, Color.Empty, 0,
                                    0,
                                    true));
 }
 protected override void Create(){
     m_linearregvalue1 = new LinearRegValue(this);
     m_linreg = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("LinReg", 0, Color.Yellow,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_triaverage1 = new TriAverage(this);
     m_avgtri = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("AvgTri", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
示例#19
0
 protected override void Create()
 {
     m_avgwtd = new VariableSeries <Double>(this);
     Plot1    =
         AddPlot(new PlotAttributes("AvgWtd", 0, Color.Yellow,
                                    Color.Empty, 0, 0, true));
 }
示例#20
0
 protected override void Create()
 {
     m_barnumber1        = new BarNumber(this);
     m_swinglowbar1      = new SwingLowBar(this);
     m_swinglowbar2      = new SwingLowBar(this);
     m_swinghighbar1     = new SwingHighBar(this);
     m_swinghighbar2     = new SwingHighBar(this);
     m_barnum            = new VariableSeries <Double>(this);
     m_neckswbar         = new VariableObject <Int32>(this);
     m_hnsswbar          = new VariableObject <Int32>(this);
     m_neckswprice       = new VariableSeries <Double>(this);
     m_hnsswprice        = new VariableSeries <Double>(this);
     m_vertorder_hvss    = new VariableObject <Boolean>(this);
     m_vertorder_nvss    = new VariableObject <Boolean>(this);
     m_necklinelimit     = new VariableObject <Double>(this);
     m_maxnecktoheaddist = new VariableObject <Double>(this);
     m_vertproportion    = new VariableObject <Boolean>(this);
     m_color             = new VariableObject <Color>(this);
     m_confirmbarnum     = new VariableObject <Double>(this);
     m_lastcrossedtl     = new VariableObject <int>(this);
     m_neckswings        = new Array2DSimple <Double>(this, 2, 4);
     m_hnsswings         = new Array2DSimple <Double>(this, 3, 5);
     Plot1 =
         AddPlot(new PlotAttributes("H&S", EPlotShapes.Point, Color.White,
                                    Color.Empty, 4, 0, true));
 }
 protected override void Create()
 {
     m_AverageFC    = new AverageFC(this);
     m_UpperBand    = new VariableSeries <Double>(this);
     m_bSetupLE     = new VariableObject <bool>(this);
     m_CrossingHigh = new VariableObject <double>(this);
     m_KltChLE      = OrderCreator.Stop(new SOrderParameters(Contracts.Default, "KltChLE", EOrderAction.Buy));
 }
示例#22
0
 protected override void Create()
 {
     m_dema      = new Dema(this);
     m_avgdouble = new VariableSeries <Double>(this);
     //Plotting
     Plot1 = AddPlot(new PlotAttributes("AvgDouble", 0, Color.Blue, Color.Empty, 0, 0, true));
     Plot2 = AddPlot(new StringPlotAttributes("Trend", Color.Aqua));
 }
示例#23
0
 protected override void Create()
 {
     m_triaverage1 = new TriAverage(this);
     m_avgtri      = new VariableSeries <Double>(this);
     Plot1         =
         AddPlot(new PlotAttributes("AvgTri", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
示例#24
0
 protected override void Create()
 {
     m_adaptivemovavg1 = new AdaptiveMovAvg(this);
     m_maa             = new VariableSeries <Double>(this);
     Plot1             =
         AddPlot(new PlotAttributes("MAA", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_linearregvalue1 = new LinearRegValue(this);
     m_linreg          = new VariableSeries <Double>(this);
     Plot1             =
         AddPlot(new PlotAttributes("LinReg", 0, Color.Yellow,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_AverageFC   = new AverageFC(this);
     m_LowerBand   = new VariableSeries <Double>(this);
     m_KltChSE     = OrderCreator.Stop(new SOrderParameters(Contracts.Default, "KltChSE", EOrderAction.SellShort));
     m_bSetupSE    = new VariableObject <bool>(this);
     m_CrossingLow = new VariableObject <double>(this);
 }
示例#27
0
 protected override void Create()
 {
     m_accumdist1  = new AccumulationDistribution(this);
     m_accdstprvol = new VariableSeries <Double>(this);
     Plot1         =
         AddPlot(new PlotAttributes("AccDst-PrVol", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
 }
示例#28
0
 protected override void Create()
 {
     m_averagefc1 = new AverageFC(this);
     m_avg        = new VariableSeries <Double>(this);
     Plot1        =
         AddPlot(new PlotAttributes("Avg", 0, Color.Yellow,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_MP = new VariableSeries<int>(this);
     m_PftClsSX =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "PftClsSX",
                                                               EOrderAction.BuyToCover, OrderExit.FromAll));
     m_EntryPrice = new VariableObject<double>(this);
     m_cnt = new VariableObject<int>(this);
 }
 protected override void Create()
 {
     m_vwapresettable1 = new vwapSession(this);
     m_price           = new VariableSeries <Double>(this);
     m_it    = new VariableSeries <Double>(this);
     m_color = new VariableObject <Color>(this);
     Plot1   = AddPlot(new PlotAttributes("vwap_reset", EPlotShapes.Point, Color.Blue, Color.Empty, 0, 0, true));
 }
示例#31
0
 protected override void Create()
 {
     m_obv1     = new OBV(this);
     m_obvvalue = new VariableSeries <Double>(this);
     Plot1      =
         AddPlot(new PlotAttributes("OBV", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_AverageFC = new AverageFC(this);
     m_Avg       = new VariableSeries <Double>(this);
     m_MACrossSX =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MACrossSX",
                                                         EOrderAction.BuyToCover, OrderExit.FromAll));
 }
 protected override void Create(){
     m_timeseriesforecast1 = new TimeSeriesForecast(this);
     m_tsf = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("TSF", 0, Color.Blue,
                                    Color.Empty,
                                    0, 0, true));
 }
        protected override void Create()
        {
            m_xaverage1 = new XAverage(this);
            m_xaverage2 = new XAverage(this);

            m_body    = new VariableSeries <Double>(this);
            m_bodyavg = new VariableSeries <Double>(this);
        }
示例#35
0
 protected override void Create()
 {
     m_mypercentr = new VariableSeries <Double>(this);
     m_avg        = new VariableSeries <Double>(this);
     m_PctRLE     =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "PctRLE", EOrderAction.Buy));
     m_setupl = new VariableObject <bool>(this);
 }
 protected override void Create(){
     m_FastAverageFC = new AverageFC(this);
     m_MedAverageFC = new AverageFC(this);
     m_SlowAverageFC = new AverageFC(this);
     m_Cond = new VariableSeries<Boolean>(this);
     m_MA3CrsLE =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MA3CrsLE", EOrderAction.Buy));
 }
示例#37
0
 protected override void Create()
 {
     m_adx1     = new Function.ADX(this);
     m_adxvalue = new VariableSeries <Double>(this);
     Plot1      =
         AddPlot(new PlotAttributes("ADX", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_xaverage1 = new XAverage(this);
     m_avgexp    = new VariableSeries <Double>(this);
     Plot1       =
         AddPlot(new PlotAttributes("AvgExp", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_timeseriesforecast1 = new TimeSeriesForecast(this);
     m_tsf = new VariableSeries <Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("TSF", 0, Color.Blue,
                                    Color.Empty,
                                    0, 0, true));
 }
 protected override void Create(){
     m_FastAverageFC = new AverageFC(this);
     m_SlowAverageFC = new AverageFC(this);
     m_FastAvg = new VariableSeries<Double>(this);
     m_SlowAvg = new VariableSeries<Double>(this);
     m_MA2CrossSE =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MA2CrossSE",
                                                               EOrderAction.SellShort));
 }
 protected override void Create(){
     m_ulcerx = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("UlcerX", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
     Plot2 =
         AddPlot(new PlotAttributes("SafeLevel", 0, Color.Green,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create()
 {
     m_FastAverageFC = new AverageFC(this);
     m_SlowAverageFC = new AverageFC(this);
     m_FastAvg       = new VariableSeries <Double>(this);
     m_SlowAvg       = new VariableSeries <Double>(this);
     m_MA2CrossLE    =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MA2CrossLE", EOrderAction.Buy));
 }
 protected override void Create()
 {
     m_MP       = new VariableSeries <int>(this);
     m_PftClsSX =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "PftClsSX",
                                                         EOrderAction.BuyToCover, OrderExit.FromAll));
     m_EntryPrice = new VariableObject <double>(this);
     m_cnt        = new VariableObject <int>(this);
 }
 protected override void Create(){
     m_MP = new VariableSeries<int>(this);
     m_TradeHH = new VariableSeries<Double>(this);
     m_ParTrSX =
         OrderCreator.Stop(new SOrderParameters(Contracts.Default, "ParTrSX", EOrderAction.BuyToCover,
                                                      OrderExit.FromAll));
     m_StopPrice = new VariableObject<double>(this);
     m_AF = new VariableObject<double>(this);
 }
示例#45
0
 protected override void Create()
 {
     m_MACD      = new MACD(this);
     m_XAverage  = new XAverage(this);
     m_my_MACD   = new VariableSeries <Double>(this);
     m_MACD_diff = new VariableSeries <Double>(this);
     m_MacdLE    =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MacdLE", EOrderAction.Buy));
 }
示例#46
0
 /// <summary>
 ///   建立模型時所呼叫的方法
 /// </summary>
 protected override void Create()
 {
     __cPrevSMA = new _Variable <double>(this, 0, this.MasterDataStream);
     __cUP      = new VariableSeries <double>(this, 0, this.MasterDataStream);
     __cMD      = new VariableSeries <double>(this, 0, this.MasterDataStream);
     __cDN      = new VariableSeries <double>(this, 0, this.MasterDataStream);
     __cBB      = new VariableSeries <double>(this, 0, this.MasterDataStream);
     __cBW      = new VariableSeries <double>(this, 0, this.MasterDataStream);
 }
 protected override void Create(){
     m_normgradientcolor1 = new NormGradientColor(this);
     m_eom = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("EOM", 0, Color.Cyan,
                                    Color.Empty, 0, 0, true));
     Plot2 =
         AddPlot(new PlotAttributes("ZeroLine", 0, Color.Green,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_mp = new VariableSeries<int>(this);
     m_PosLow = new VariableObject<Double>(this);
     m_AtrSX =
         OrderCreator.Stop(new SOrderParameters(Contracts.Default, "AtrSX", EOrderAction.BuyToCover,
                                                      OrderExit.FromAll));
     m_AtrSX_eb =
         OrderCreator.Stop(new SOrderParameters(Contracts.Default, "AtrSX-eb", EOrderAction.BuyToCover,
                                                      OrderExit.FromAll));
 }
 protected override void Create()
 {
     m_Stochastic = new Stochastic(this);
     m_oFastK     = new VariableSeries <Double>(this);
     m_oFastD     = new VariableSeries <Double>(this);
     m_oSlowK     = new VariableSeries <Double>(this);
     m_oSlowD     = new VariableSeries <Double>(this);
     m_StochLE    =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "StochLE", EOrderAction.Buy));
 }
 protected override void Create(){
     m_mp = new VariableSeries<int>(this);
     m_ATTSX_Tgt =
         OrderCreator.Limit(new SOrderParameters(Contracts.Default, "ATTSX-Tgt", EOrderAction.BuyToCover,
                                                       OrderExit.FromAll));
     m_ATTSX_Trl =
         OrderCreator.Stop(new SOrderParameters(Contracts.Default, "ATTSX-Trl", EOrderAction.BuyToCover,
                                                      OrderExit.FromAll));
     m_TargetPrice = new VariableObject<double>(this);
 }
 protected override void Create(){
     m_vwapresettable1 = new vwapResettable(this);
     m_price = new VariableSeries<Double>(this);
     m_it = new VariableSeries<Double>(this);
     m_color = new VariableObject<Color>(this);
     Plot1 =
         AddPlot(new PlotAttributes("vwap_reset", EPlotShapes.Point,
                                    Color.Blue, Color.Empty, 0, 0,
                                    true));
 }
 protected override void Create()
 {
     m_MACD = new MACD(this);
     m_XAverage = new XAverage(this);
     m_my_MACD = new VariableSeries<Double>(this);
     m_MACD_diff = new VariableSeries<Double>(this);
     m_MacdSE =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MacdSE",
                                                         EOrderAction.SellShort));
 }
 protected override void Create(){
     m_ao = new VariableSeries<Double>(this);
     m_ac = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("+AC", EPlotShapes.Histogram, Color.Lime,
                                    Color.Empty, 0, 0, true));
     Plot2 =
         AddPlot(new PlotAttributes("-AC", EPlotShapes.Histogram, Color.Blue,
                                    Color.Empty, 0, 0, true));
 }
示例#54
0
 protected override void Create()
 {
     m_MP      = new VariableSeries <int>(this);
     m_TradeHH = new VariableSeries <Double>(this);
     m_ParTrLX =
         OrderCreator.Stop(new SOrderParameters(Contracts.Default, "ParTrLX", EOrderAction.Sell,
                                                OrderExit.FromAll));
     m_StopPrice = new VariableObject <double>(this);
     m_AF        = new VariableObject <double>(this);
 }
 protected override void Create()
 {
     m_FastAverageFC = new AverageFC(this);
     m_MedAverageFC  = new AverageFC(this);
     m_SlowAverageFC = new AverageFC(this);
     m_Cond          = new VariableSeries <Boolean>(this);
     m_MA3CrsSE      =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "MA3CrsSE",
                                                         EOrderAction.SellShort));
 }
 protected override void Create(){
     m_trix1 = new Function.TRIX(this);
     m_normgradientcolor1 = new Function.NormGradientColor(this);
     m_trixvalue = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("TRIX", 0, Color.Yellow,
                                    Color.Empty, 0, 0, true));
     Plot2 =
         AddPlot(new PlotAttributes("ZeroLine", 0, Color.Green,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_swinghigh1 = new SwingHigh(this);
     m_swinglow1 = new SwingLow(this);
     m_swingprice = new VariableSeries<Double>(this);
     m_swingtime = new VariableSeries<DateTime>(this);
     m_tldir = new VariableObject<int>(this);
     m_saveswing = new VariableObject<Boolean>(this);
     m_addtl = new VariableObject<Boolean>(this);
     m_updatetl = new VariableObject<Boolean>(this);
     m_tlref = new VariableObject<ITrendLineObject>(this);
 }
 protected override void Create(){
     m_averagefc1 = new AverageFC(this);
     m_wtdclose = new VariableSeries<Double>(this);
     m_avg = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("WtdClose", 0, Color.Yellow,
                                    Color.Empty, 0, 0, true));
     Plot2 =
         AddPlot(new PlotAttributes("Avg", 0, Color.Magenta,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_priceoscillator1 = new PriceOscillator(this);
     m_normgradientcolor1 = new NormGradientColor(this);
     m_priceosc = new VariableSeries<Double>(this);
     Plot1 =
         AddPlot(new PlotAttributes("PriceOsc", 0, Color.Blue,
                                    Color.Empty, 0, 0, true));
     Plot2 =
         AddPlot(new PlotAttributes("ZeroLine", 0, Color.Green,
                                    Color.Empty, 0, 0, true));
 }
 protected override void Create(){
     m_Stochastic = new Stochastic(this);
     m_oFastK = new VariableSeries<Double>(this);
     m_oFastD = new VariableSeries<Double>(this);
     m_oSlowK = new VariableSeries<Double>(this);
     m_oSlowD = new VariableSeries<Double>(this);
     m_StochLE =
         OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, "StochLE", EOrderAction.Buy));
 }