Esempio n. 1
0
 private void editIndicatorMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (activeIndicatorLV.FocusedItem == null)
         {
             return;
         }
         IndicatorCurveInfo info = (IndicatorCurveInfo)activeIndicatorLV.FocusedItem.Tag;
         application.forms.baseIndicatorForm form = GetIndicatorForm(info.meta);
         if (form == null)
         {
             return;
         }
         this.CurrentEditCurveName = info.CurveName;
         form.ShowDialog();
     }
     catch (Exception er)
     {
         this.ShowError(er);
     }
     finally
     {
         this.CurrentEditCurveName = "";
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Plot indicator charts. The function displays a form to collect indicator options and then plot the chart.
 /// </summary>
 /// <param name="indicatorTypeName">Indicator name to be drawn</param>
 ///
 public void PlotIndicator(string indicatorName)
 {
     application.forms.baseIndicatorForm form = GetIndicatorForm(indicatorName);
     if (form == null)
     {
         return;
     }
     form.ShowDialog();
 }