public override void UpdateBarData(BarData bar) { base.UpdateBarData(bar); if (valueDict["K"].Count == Count) { valueDict["K"].RemoveAt(Count - 1); if (!IsSimpleMode) { graphDict["K"].RemoveLast(); } } if (valueDict["D"].Count == Count) { valueDict["D"].RemoveAt(Count - 1); if (!IsSimpleMode) { graphDict["D"].RemoveLast(); } } if (valueDict["J"].Count == Count) { valueDict["J"].RemoveAt(Count - 1); if (!IsSimpleMode) { graphDict["J"].RemoveLast(); } } if (KList.Count > 0) { KList.RemoveAt(KList.Count - 1); } if (DList.Count > 0) { DList.RemoveAt(DList.Count - 1); } HH.RemoveLast(); LL.RemoveLast(); thisK = preK; if (init) { thisD = preD; } GenerateKDJ(Count - 1); }