如何将通达信主图公式指标改成选股公式?
分别做C点和H点的选股公式DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);范围...
分别做C点和H点的选股公式
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);
范围A:=BARSLAST(DEA<0);
标记:=IF(REF(DIFF,1)>0 AND REF(DEA,1)>0,CROSS(DIFF,DEA),0);
C点:=SUM(标记,范围A)=2 AND 标记=1;
蛟龙银线:EMA(CLOSE,21),DOTLINE,LINETHICK1;
蛟龙金线:EMA(CLOSE,55),LINETHICK2;
STICKLINE(C点=1,CLOSE,OPEN,3.1,0),COLOR00FFFF;
STICKLINE(C点=1,HIGH,LOW,0.0000000001,0),COLOR00FFFF;
DRAWTEXT(C点=1,REF(LOW,1),'【C点:水上蛟龙】'),COLOR00FFFF;
H点:=CROSS(CLOSE,蛟龙金线) AND VOL>REF(SUM(VOL,3)/3*1.5,1);
STICKLINE(H点=1,CLOSE,OPEN,3.1,0),COLORFF40FF;
STICKLINE(H点=1,HIGH,LOW,0.0000000001,0),COLORFF40FF;
DRAWTEXT(H点=1,REF(LOW,1),' 【H点:蛟龙出海】'),COLORFF40FF; 展开
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);
范围A:=BARSLAST(DEA<0);
标记:=IF(REF(DIFF,1)>0 AND REF(DEA,1)>0,CROSS(DIFF,DEA),0);
C点:=SUM(标记,范围A)=2 AND 标记=1;
蛟龙银线:EMA(CLOSE,21),DOTLINE,LINETHICK1;
蛟龙金线:EMA(CLOSE,55),LINETHICK2;
STICKLINE(C点=1,CLOSE,OPEN,3.1,0),COLOR00FFFF;
STICKLINE(C点=1,HIGH,LOW,0.0000000001,0),COLOR00FFFF;
DRAWTEXT(C点=1,REF(LOW,1),'【C点:水上蛟龙】'),COLOR00FFFF;
H点:=CROSS(CLOSE,蛟龙金线) AND VOL>REF(SUM(VOL,3)/3*1.5,1);
STICKLINE(H点=1,CLOSE,OPEN,3.1,0),COLORFF40FF;
STICKLINE(H点=1,HIGH,LOW,0.0000000001,0),COLORFF40FF;
DRAWTEXT(H点=1,REF(LOW,1),' 【H点:蛟龙出海】'),COLORFF40FF; 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询