您好
唇齒顎的數值與系統的數值不一樣,請協助確認,謝謝!

variable:Jaws(0), Lips(0), Teeth(0);
variable: difValue(0), macdValue(0), oscValue(0);
input: FastLength(12), SlowLength(26), MACDLength(9);
SetTotalBar(200);
SetInputName(1, "DIF短期期數");
SetInputName(2, "DIF長期期數");
SetInputName(3, "MACD期數");
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
Jaws = EMA(((high + low)/2), 13)[8];
Teeth = EMA(((high + low)/2), 8)[5];
Lips = EMA(((high + low)/2), 5)[3];
condition1=Low[1]<Lips[1];
condition2=Low > Lips and Lips > Teeth and Teeth > Jaws;
condition4=difValue > 0;
if condition1 and condition2 and condition4
then RET=1;
SetOutputName1("唇");
OutputField1(Lips);
SetOutputName2("昨日唇");
outputfield2(Lips[1]);
setoutputname3("齒");
outputfield3(Teeth);
setoutputname4("顎");
outputfield4(Jaws);
setoutputname5("今日低");
outputfield5(low);
setoutputname6("昨日低");
outputfield6(low[1]);
1 評論