if語句的小于判斷不起作用
作者:開拓者 TB 來源:cxh99.com 發布時間:2021年01月16日
-
咨詢內容:
? ? ? ? if語句的小于判斷不起作用請問各位大神是怎么回事?
? ? ? ? NumericSeries nMA(0);
? ? ? ? Numeric nLoss(10);
? ?? ???nMAShort =IntPart(nMAShort);
? ? ? ? nMALong =IntPart(nMALong);
? ? ? ? nMA = Abs(nMAShort-nMALong);
? ? ? ? Commentary("nMA="+text(nMA));
? ? ? ? If(nMA<nLoss)
? ? ? ? {
? ? ? ? ? ? ? ? nTrend=0;
? ? ? ? }