早教吧作业答案频道 -->其他-->
当输入公式源码时,提示错误如下,提示错误:MACD:=2*(DIF-DEA);A1:=CROSS(DIF,DEA);A2:=REF(A1,1):在变量A1前又错误的定义一次变量!错误起始位置:472;长度:2公式源码:{kdj三金叉}MA5:=EMA(C,5);MA10:=EMA(C,1
题目详情
当输入公式源码时,提示错误如下,
提示错误:
MACD:=2*(DIF-DEA);
A1:=CROSS(DIF,DEA);
A2:=REF(A1,1)
:在变量 A1 前又错误的定义一次变量!
错误起始位置 :472 ; 长度:2
公式源码:
{kdj三金叉}
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MV5:=EMA(V,5);
MV10:=EMA(V,10);
K:="KDJ.K"(9,3,3);
D:="KDJ.D"(9,3,3);
V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;
VV1:=MA5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.2;
KD1:=K>REF(K,1) AND D>=REF(D,1);
VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 AND
COUNT(CROSS(MV5,MV10),4)>=1;
{macd二次金叉}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
A1:=CROSS(DIF,DEA);
A2:=REF(A1,1);
A3:=COUNT(A2,21);{今天之前3个星期以来曾经金叉}
A4:=MA(C,5)>=MA(C,10) AND MA(C,10)>=MA(C,30) AND MA(C,30)>=MA(C,60)
AND MA(C,60)>=MA(C,120) AND MA(C,120)>=MA(C,250);{均线多头排列}
{去S.T.停牌}
ST:=STRFIND(stkname,'ST',1)>0;
S:=STRFIND(stkname,'S',1)>0;
停牌:=(DYNAINFO(4)=0);
选股:IF(V1 AND VV1 ADN KD1 ADN VA,1,0) and A1 AND A3 AND A4 and not(ST)
not(停牌)and not(S);
提示错误:
MACD:=2*(DIF-DEA);
A1:=CROSS(DIF,DEA);
A2:=REF(A1,1)
:在变量 A1 前又错误的定义一次变量!
错误起始位置 :472 ; 长度:2
公式源码:
{kdj三金叉}
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MV5:=EMA(V,5);
MV10:=EMA(V,10);
K:="KDJ.K"(9,3,3);
D:="KDJ.D"(9,3,3);
V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;
VV1:=MA5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.2;
KD1:=K>REF(K,1) AND D>=REF(D,1);
VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 AND
COUNT(CROSS(MV5,MV10),4)>=1;
{macd二次金叉}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
A1:=CROSS(DIF,DEA);
A2:=REF(A1,1);
A3:=COUNT(A2,21);{今天之前3个星期以来曾经金叉}
A4:=MA(C,5)>=MA(C,10) AND MA(C,10)>=MA(C,30) AND MA(C,30)>=MA(C,60)
AND MA(C,60)>=MA(C,120) AND MA(C,120)>=MA(C,250);{均线多头排列}
{去S.T.停牌}
ST:=STRFIND(stkname,'ST',1)>0;
S:=STRFIND(stkname,'S',1)>0;
停牌:=(DYNAINFO(4)=0);
选股:IF(V1 AND VV1 ADN KD1 ADN VA,1,0) and A1 AND A3 AND A4 and not(ST)
not(停牌)and not(S);
▼优质解答
答案和解析
{OK.已改大智慧测试通过}
{KDJ三金叉}
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MV5:=EMA(V,5);
MV10:=EMA(V,10);
K:="KDJ.K"(9,3,3);
D:="KDJ.D"(9,3,3);
V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;
VV1:=MA5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.2;
KD1:=K>REF(K,1) AND D>=REF(D,1);
VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 AND
COUNT(CROSS(MV5,MV10),4)>=1;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
A1:=CROSS(DIF,DEA);
A2:=REF(A1,1);
A3:=COUNT(A2,21);{今天之前3个星期以来曾经金叉}
A4:=MA(C,5)>=MA(C,10) AND MA(C,10)>=MA(C,30) AND MA(C,30)>=MA(C,60)
AND MA(C,60)>=MA(C,120) AND MA(C,120)>=MA(C,250);{均线多头排列}
{去S.T.停牌}
ST:=STRFIND(STKNAME,'ST',1)>0;
S:=STRFIND(STKNAME,'S',1)>0;
停牌:=(DYNAINFO(4)=0);
选股:IF(V1 AND VV1 AND KD1 AND VA,1,0) AND A1 AND A3 AND A4 AND NOT(ST)
AND NOT(停牌)AND NOT(S);
{KDJ三金叉}
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MV5:=EMA(V,5);
MV10:=EMA(V,10);
K:="KDJ.K"(9,3,3);
D:="KDJ.D"(9,3,3);
V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;
VV1:=MA5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.2;
KD1:=K>REF(K,1) AND D>=REF(D,1);
VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 AND
COUNT(CROSS(MV5,MV10),4)>=1;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
A1:=CROSS(DIF,DEA);
A2:=REF(A1,1);
A3:=COUNT(A2,21);{今天之前3个星期以来曾经金叉}
A4:=MA(C,5)>=MA(C,10) AND MA(C,10)>=MA(C,30) AND MA(C,30)>=MA(C,60)
AND MA(C,60)>=MA(C,120) AND MA(C,120)>=MA(C,250);{均线多头排列}
{去S.T.停牌}
ST:=STRFIND(STKNAME,'ST',1)>0;
S:=STRFIND(STKNAME,'S',1)>0;
停牌:=(DYNAINFO(4)=0);
选股:IF(V1 AND VV1 AND KD1 AND VA,1,0) AND A1 AND A3 AND A4 AND NOT(ST)
AND NOT(停牌)AND NOT(S);
看了 当输入公式源码时,提示错误如...的网友还看了以下:
历史上人类尝试制造各种不需要消耗能量就能源源不断对外做功的“永动机”,但都失败了,因为这违背了定律 2020-04-08 …
火灾发生的基本要素有()。A.一定氧浓度的空气B.一定温度和足够热量的热源C.可燃物D.火源 2020-06-07 …
关于磁的问题1、磁通量与电流大小的定量计算公式.2、磁力与磁通量的定量计算公式.3、通电螺线管吸引 2020-06-09 …
(2011•湖北二模)现要测量某电源的电动势和内阻,备有以下器材:电源E(电动势小于3V,内阻小于 2020-07-12 …
关于电动势下列说法正确的是()A.电源的电动势越大,非静电力将正电荷从负极移送到正极的电荷量一定越 2020-07-13 …
现要测量某电源的电动势和内阻,备有以下器材:电源E(电动势小于3V,内阻小于1Ω,最大允许电流1A 2020-07-15 …
空间中两个过原点向量,已知两向量夹角,知道一个向量顶点坐标.怎么求出另一向量的定点坐标?模长也是已 2020-08-02 …
以下关于能量和能源的认识,正确的是A.“永动机”违反了能的转化和守恒定律B.我国煤炭和石油的资源丰富 2020-12-22 …
以下关于能量和能源的认识,正确的是()A.“永动机”违反了能的转化和守恒定律B.我国煤炭和石油的资源 2020-12-22 …
相同质量的两种物体,升高相同的温度,内能增量一定相同吗?消耗常规能源会带来环境污染吗?太阳电池是.. 2021-01-12 …