CCI 訊號

  •   228 
  • 最後發表   DR  2018 三月 29
DR 發文於   2018/03/29

請問一下我想要設定附圖 CCI 大於100 小於100 出現買賣訊號會出現錯誤

CCI122539未知的關鍵字 "OverSold",請檢查是否有宣告此變數或是拼字是否有誤。

這是什麼問題? 

 

condition1=false;

condition2=false;

 

switch(close)

begin

 case >150: value5=low*0.9;

 case <50 : value5=low*0.98;

 default: value5=low*0.95;

end;

 

Input: Length(14), AvgLength(9), OverBought(100);

Variable: cciValue(0), cciMAValue(0);

 

SetTotalBar(maxlist(AvgLength + Length + 1,6) + 3);

 

SetInputName(1, "期數");

SetInputName(2, "平滑期數");

SetInputName(3, "超買值");

 

cciValue = CommodityChannel(Length);

cciMAValue = Average(cciValue, AvgLength);

 

 

Condition1 = cciMAValue Crosses Over OverBought;

Condition2 = cciMAValue Crosses Below OverSold;

 

 

 

//If condition1 and condition2 then ret = 1;

 

 

//==========CCI 買訊================

 

if 

value1 Crosses Over OverBought then

 condition1=true;

if condition1 then

 plot1(value1,"");

 

//============CCI 賣訊====================

if 

 value2 Crosses Below OverSold then 

 condition2=true;

if condition2 then

 plot2(value2,"");

XQ小幫手 發文於   2018/03/29

Hi DR,

待小幫手查看後,再向您說明,謝謝。

發表回覆
Close