/// <summary> /// Basic indicator example for SMA crossover /// </summary> public Example_Condition_SMA_CrossOver_Advanced Example_Condition_SMA_CrossOver_Advanced(IDataSeries input, System.Int32 fastSma, System.Int32 slowSma, System.Boolean isLongEnabled, System.Boolean isShortEnabled) { if (IsInInit && input == null) { throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'OnInit()' method"); } return(LeadIndicator.Example_Condition_SMA_CrossOver_Advanced(input, fastSma, slowSma, isLongEnabled, isShortEnabled)); }
/// <summary> /// Basic indicator example for SMA crossover /// </summary> public Example_Condition_SMA_CrossOver_Advanced Example_Condition_SMA_CrossOver_Advanced(IDataSeries input, System.Int32 fastSma, System.Int32 slowSma, System.Boolean isLongEnabled, System.Boolean isShortEnabled) { return(LeadIndicator.Example_Condition_SMA_CrossOver_Advanced(input, fastSma, slowSma, isLongEnabled, isShortEnabled)); }