示例#1
0
 internal static void IsCrossing(this UnitRecommendation ur, DataSeries data1, DataSeries data2, string description = "")
 {
     ur.Description = description;
     if (data1.HasCrossedAbove(data2, 1))
     {
         ur.Recommendation = BackToSquareOne.TradeRecommendation.Buy;
     }
     else if (data1.HasCrossedBelow(data2, 1))
     {
         ur.Recommendation = BackToSquareOne.TradeRecommendation.Sell;
     }
 }