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); }
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); }