Пример #1
0
 /**
  * Constructor.
  * @param first the first indicator
  * @param second the second indicator
  */
 public CrossedDownIndicatorRule(IIndicator <decimal> first, IIndicator <decimal> second)
 {
     _cross = new CrossIndicator(first, second);
 }
Пример #2
0
 /// <summary>
 /// Constructor. </summary>
 /// <param name="first"> the first indicator </param>
 /// <param name="second"> the second indicator </param>
 public CrossedDownIndicatorRule(IIndicator <Decimal> first, IIndicator <Decimal> second)
 {
     _cross = new CrossIndicator(first, second);
     logger = LogWrapper.Factory?.CreateLogger <CrossedDownIndicatorRule>();
 }
Пример #3
0
 /**
  * Constructor.
  * @param first the first indicator
  * @param second the second indicator
  */
 public CrossedUpIndicatorRule(IIndicator <decimal> first, IIndicator <decimal> second)
 {
     _cross = new CrossIndicator(second, first);
 }