以下是同花顺指标为王公式

同花顺指标为王公式

源码

多方强度:=EMA(CLOSE,2.5);

空方强度:=EMA(CLOSE,5);

趋势线:EMA(空方强度,18),CoLor00FFFF,LINETHICK2;

DRAWTEXT((多方强度>趋势线),LOW,’↑’),CoLor0000FF,LINETHICK2;

DRAWTEXT((多方强度<空方强度),HIGH,’↓’),CoLor008000,LINETHICK2;

多空均衡:=EMA(空方强度,2.5);

VARF1:=(COUNT(CROSS(多方强度,多空均衡),2)=1);

VARF2:=(COUNT(CROSS(空方强度,多空均衡),2)=1);

ZAI:=FILTER(VARF1 AND VARF2,2);

S:=(MA(VOL,5))/(MA(VOL,60));

A:=MA(S,5);

BIAS:=((CLOSE-MA(CLOSE,5))/(MA(CLOSE,5)))*(100);

F:=MA(S,121);

RSV:=((CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45)))*(100);

K:=SMA(RSV,15,1);

D:=SMA(K,15,1);

J:=(3)*(K)-(2)*(D);

LC:=REF(CLOSE,1);

RSI:=((SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1)))*(100);

DRAWTEXT(CROSS(82,RSI),HIGH,’ 减 ‘),CoLor00FF00;

DRAWTEXT(CROSS(63,RSI),HIGH,’ 卖 ‘),CoLor00FF00;

S1:=IF((J<11) AND (BIAS>(-11)) AND CROSS(S,F) AND (S-F>0.01),2,0);
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。