|
各位大大, 剛剛學習寫了一個簡單的FUNCTION 和 INDICATOR, 在MC中加入時初期可以運作, 但轉另外一支股票數據時就出ERROR, 煩請各位大大斧正一下, 謝謝~
//FunctionInputs : Len (NumericSimple);variables: LOLO(0), HIHI(0), HLDIFF(0);LOLO = Lowest(Low,len);HIHI = Highest(High, len);HLDIFF = HIHI - LOLO;RSV = ((Close - LOLO) / HLDIFF * 100);//IndicatorInputs: Len(9), Displace(0);variables: var0( 0 ) ;var0 = RSV(Len);condition1 = Displace >=0 or currentbar > absvalue (Displace);if condition1 thenbeginplot1[displace] (var0);end;
|
|