百股精软件盖世波段王指标 公式 源码[其他软件公式]
指标公式代码分析及使用参考说明
源码:
N:=6;
M:=81;
A1:=DATE<=1110115;
TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SUM(IF(HD>0 AND HD>LD,HD,0),N);
DMM:=SUM(IF(LD>0 AND LD>HD,LD,0),N);
PDI:=DMP*100/TR1;
X:=37;
Y:=49.99;
DIFF:=EMA(CLOSE,34)-EMA(CLOSE,5);
DEA:=EMA(DIFF,5);
A:=CROSS(DIFF,0);
B:=CROSS(0,DIFF);
STICKLINE(CLOSE>=OPEN AND A1,CLOSE,OPEN,8,1),colorFF0000;
STICKLINE(CLOSE>=OPEN AND HIGH>CLOSE AND A1,CLOSE,HIGH,0,0),colorFF0000;
STICKLINE(CLOSE>=OPEN AND OPEN>LOW AND A1,LOW,OPEN,0,0),colorFF0000;
STICKLINE(CLOSE<OPEN AND A1,OPEN,CLOSE,8,0),colorFF0000;
STICKLINE(CLOSE<OPEN AND HIGH>OPEN AND A1,OPEN,HIGH,0,0),colorFF0000;
STICKLINE(CLOSE<OPEN AND CLOSE>LOW AND A1,LOW,CLOSE,0,0),colorFF0000;
STICKLINE(B AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE>=OPEN AND A1,CLOSE,OPEN,8,1),colorFFFFFF;
STICKLINE(B AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE>=OPEN AND HIGH>CLOSE AND A1,CLOSE,HIGH,0,0),colorFFFFFF;
STICKLINE(B AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE>=OPEN AND OPEN>LOW AND A1,LOW,OPEN,0,0),colorFFFFFF;
STICKLINE(B AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE<OPEN AND A1,OPEN,CLOSE,8,0),colorFFFFFF;
STICKLINE(B AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE<OPEN AND HIGH>OPEN AND A1,OPEN,HIGH,0,0),colorFFFFFF;
STICKLINE(B AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE<OPEN AND CLOSE>LOW AND A1,LOW,CLOSE,0,0),colorFFFFFF;
STICKLINE(REF(B,1) AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE>=OPEN AND A1,CLOSE,OPEN,8,1),colorFFFFFF;
STICKLINE(REF(B,1) AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE>=OPEN AND HIGH>CLOSE AND A1,CLOSE,HIGH,0,0),colorFFFFFF;
STICKLINE(REF(B,1) AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE>=OPEN AND OPEN>LOW AND A1,LOW,OPEN,0,0),colorFFFFFF;
STICKLINE(REF(B,1) AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE<OPEN AND A1,OPEN,CLOSE,8,0),colorFFFFFF;
STICKLINE(REF(B,1) AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE<OPEN AND HIGH>OPEN AND A1,OPEN,HIGH,0,0),colorFFFFFF;
STICKLINE(REF(B,1) AND (CROSS(PDI,Y) OR CROSS(PDI,X)) AND CLOSE<OPEN AND CLOSE>LOW AND A1,LOW,CLOSE,0,0),colorFFFFFF;
STICKLINE((REF(B,2) OR REF(B,3) OR REF(B,4)) AND CLOSE>=OPEN AND A1,CLOSE,OPEN,8,1),colorFF0000;
STICKLINE((REF(B,2) OR REF(B,3) OR REF(B,4)) AND CLOSE>=OPEN AND HIGH>CLOSE AND A1,CLOSE,HIGH,0,0),colorFF0000;
STICKLINE((REF(B,2) OR REF(B,3) OR REF(B,4)) AND CLOSE>=OPEN AND OPEN>LOW AND A1,LOW,OPEN,0,0),colorFF0000;
STICKLINE((REF(B,2) OR REF(B,3) OR REF(B,4)) AND CLOSE<OPEN AND A1,OPEN,CLOSE,8,0),colorFF0000;
STICKLINE((REF(B,2) OR REF(B,3) OR REF(B,4)) AND CLOSE<OPEN AND HIGH>OPEN AND A1,OPEN,HIGH,0,0),colorFF0000;
STICKLINE((REF(B,2) OR REF(B,3) OR REF(B,4)) AND CLOSE<OPEN AND CLOSE>LOW AND A1,LOW,CLOSE,0,0),colorFF0000;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容