Пример #1
0
    public override FX.Technicals.IndicatorBase GenerateWeightsIndicator(System.Windows.Forms.IWin32Window parentWindow_)
    {
      FX.Controls.ShowForm sf = new FX.Controls.ShowForm();
      sf.StartPosition = FormStartPosition.CenterParent;

      Technicals.Momentum.Args args;

      try
      {
        Display.MomArgsDisplay disp = new FX.TechnicalsTrader.Builder.Display.MomArgsDisplay();
        sf.Create(disp);
        sf.Text = "Momentum args";
        sf.ShowDialog(parentWindow_);
        args = disp.Args;
      }
      finally
      {
        sf.Dispose();
      }

      if (args != null)
        return new Technicals.Momentum(args);
      else
        return new Technicals.Momentum();
    }
Пример #2
0
    public override Technicals.IndicatorBase GenerateWeightsIndicator(System.Windows.Forms.IWin32Window parentWindow_)
    {
      FX.Controls.ShowForm sf = new FX.Controls.ShowForm();
      sf.StartPosition = FormStartPosition.CenterParent;

      Technicals.StochasticKey key = null;
      bool doFast = false;

      try
      {
        Display.StochasticsArgsDisplay disp = new FX.TechnicalsTrader.Builder.Display.StochasticsArgsDisplay();

        sf.Text = "Stoch args";
        sf.Create(disp);
        sf.ShowDialog(parentWindow_);

        key = disp.StochKey;
        doFast = disp.DoFast;
      }
      finally
      {
        sf.Dispose();
      }

      return new Technicals.Stoch_DS_DSS_Diff(key,doFast);
    }
Пример #3
0
    private Technicals.IndicatorBase genIndicator(IWin32Window window_, bool filter_)
    {
      FX.Controls.ShowForm sf = new FX.Controls.ShowForm();
      sf.StartPosition = FormStartPosition.CenterParent;

      ADXArgs args = new ADXArgs();

      try
      {
        FX.TechnicalsTrader.Builder.Display.ADXArgsDisplay disp = new FX.TechnicalsTrader.Builder.Display.ADXArgsDisplay();
        disp.Bind(args);
        sf.Create(disp);

        sf.Text = "ADX args";
        sf.ShowDialog(window_);
      }
      finally
      {
        sf.Dispose();
      }

      if (filter_==false)
        return new Technicals.ADX_gt(0.1, args.WindowLength, null);
      else
        return new Technicals.ADX_gt(0.1, args.WindowLength, args.Threshold);
    }
Пример #4
0
    public override FX.Technicals.IndicatorBase GenerateWeightsIndicator(System.Windows.Forms.IWin32Window parentWindow_)
    {
      FX.Controls.ShowForm s = new FX.Controls.ShowForm();
      MAStrat.MA2SimpleArgsEditor editor = new FX.TechnicalsTrader.MAStrat.MA2SimpleArgsEditor();

      s.Create(editor);

      MAStrat.MA2SimpleArgs args = new FX.TechnicalsTrader.MAStrat.MA2SimpleArgs(15, 35);

      editor.Create(args);

      s.ShowDialog(parentWindow_);

      return new MAStrat.MA2Simple(args);
    }
Пример #5
0
    public override Technicals.IndicatorBase GenerateWeightsIndicator(System.Windows.Forms.IWin32Window parentWindow_)
    {
      FX.Controls.ShowForm sf = new FX.Controls.ShowForm();
      sf.StartPosition = FormStartPosition.CenterParent;

      ADXArgs args = new ADXArgs();

      try
      {
        Display.ADXArgsDisplay disp = new FX.TechnicalsTrader.Builder.Display.ADXArgsDisplay();
        disp.Bind(args);
        sf.Create(disp);

        sf.Text = "DMI diff args";
        sf.ShowDialog(parentWindow_);
      }
      finally
      {
        sf.Dispose();
      }

      return new Technicals.ADX_PlusDM_m_MinusDM(0.1, args.WindowLength);
    }
Пример #6
0
    public override Technicals.IndicatorBase GenerateWeightsIndicator(System.Windows.Forms.IWin32Window parentWindow_)
    {
      FX.Controls.ShowForm sf = new FX.Controls.ShowForm();
      sf.StartPosition = FormStartPosition.CenterParent;

      Technicals.CCIArgs key = null;

      try
      {
        Display.CCIArgsDisplay disp = new FX.TechnicalsTrader.Builder.Display.CCIArgsDisplay();

        sf.Text = "CCI args";
        sf.Create(disp);
        sf.ShowDialog(parentWindow_);

        key = disp.CCI_Args;
      }
      finally
      {
        sf.Dispose();
      }

      return new Technicals.CCI_Trending(key);
    }
Пример #7
0
    public override FX.Technicals.IndicatorBase GenerateWeightsIndicator(System.Windows.Forms.IWin32Window parentWindow_)
    {
      FX.Controls.ShowForm sf = new FX.Controls.ShowForm();
      sf.StartPosition = FormStartPosition.CenterParent;

      QC.Common.SignalStuff.ECScoresType type=QC.Common.SignalStuff.ECScoresType.G10_21;

      try
      {
        Display.EC_O_ArgsDisplay disp = new Display.EC_O_ArgsDisplay();
        sf.Create(disp);

        sf.Text = "EC args";
        sf.ShowDialog(parentWindow_);

        type = disp.ScoreType;
      }
      finally
      {
        sf.Dispose();
      }

      return new FXStrat.EC_O(type);
    }