请老师帮忙修改下
多:#IMPORT[DAY,1,MM] AS MM1
DT1:=MM1.DT;
#IMPORT[DAY,1,MACDJC] AS MACDJC1
JC1:=MACDJC1.JC;
MA5:MA(C,5);
MA25:MA(C,25);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值定义为RSV
K:SMA(RSV,M1,1);//RSV的移动平均
D:SMA(K,M2,1);//K值的移动平均
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。
DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
V>REF(V,1)&&DT1&&JC1;//日线多头
CROSS(K,D)&&CROSS(REF(C,1),MA5)&&C>MA5,BK;
12’KD死叉且连续两个12’周期站稳12’5线,开多;
CROSSDOWN(K,D)&&CROSSDOWN(REF(C,1),MA5)&&C<MA5,SPK;
12’KD死叉且连续两个12’周期跌破12’5线,平多开空
空:
#IMPORT[DAY,1,NN] AS NN1
KT1:=NN1.KT;
#IMPORT[DAY,1,MACDJC] AS MACDJC1
SC1:=MACDSC1.SC;
KT1&&SC1;//日线空头
CROSSDOWN(K,D)&&CROSSDOWN(REF(C,1),MA5)&&C<MA5,SK;
//12’KD死叉且连续两个12’周期跌破12’5线,开空;
CROSS(K,D)&&CROSS(REF(C,1),MA5)&&C>MA5,BPK;
12’KD金叉且连续两个12’周期站稳12’5线,平空开多
AUTOFILTER; 此帖仅作者可见 此帖仅作者可见 此帖仅作者可见 此帖仅作者可见
页:
[1]