综合副图 (副图指标源码 原创 )

[复制链接]
查看29 | 回复0 | 2022-7-11 12:54:21 | 显示全部楼层 |阅读模式
使用说明及源码:
1《综合副图》指标是将成交量(5日、10日)、MACD、KDJ、抢反弹、超级短线(系统自带指标---CJDX)、顶底、操盘线(现在的主图)等七个指标融为一个副图中。
2 副图中的红、绿箭头分别表示上述的七个指标的金叉、死叉状况。
3 操盘线指标的色块中,红色表示买入,绿色表示卖出。
4 对应每日的K线图,可知道其中的七种指标的情况,依此作为准确地作出操盘的决定依据。
指标源码:


STICKLINE(C>0,105,-40,8,0),COLOR990000;
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
DRAWICON(MAVOL1>=MAVOL2,100,1),COLOR0000FF;
DRAWICON (MAVOL1<MAVOL2,95,2),COLOR00FF00;
成交量叉:MAVOL1>MAVOL2,POINTDOT;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
DRAWICON (DIF>=DEA,80,1),COLOR0000FF;
DRAWICON (DIF<DEA,75,2),COLOR00FF00;
MACD叉:DIF>DEA,POINTDOT;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DRAWICON (K>=D,60,1),COLOR0000FF;
DRAWICON(K<D,55,2),COLOR00FF00;
KDJ叉:K>D POINTDOT;
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORRED,LINETHICK2;
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2;
AA:=C1>=C2 ;
BB:=C2>C1 ;
DRAWICON (AA,40,1),COLOR0000FF;
DRAWICON (BB,35,2),COLOR00FF00;
抢反弹:C1>=C2, POINTDOT;
AR1:=(2*CLOSE+HIGH+LOW+O)/5;
AR2:=EXPMA(EXPMA(EXPMA(AR1,4),4),4);
CC:= (AR2-REF(AR2,1))/REF(AR2,1)*100;
EE:= MA(CC,3);
DD:= MA(CC,1);
DRAWICON (DD>=EE,20,1),COLOR0000FF;
DRAWICON (DD<EE,15,2),COLOR00FF00;
超级短线: DD>EE POINTDOT;
VARA1:=LLV(LOW,10);
VARA2:=HHV(HIGH,25);
趋势:= EMA((CLOSE-VARA1)/(VARA2-VARA1)*110,4),COLORFF00FF,LINETHICK5;
DRAWICON(趋势>=REF(趋势,1),0,1);
DRAWICON(趋势< REF(趋势,1),-5,2);
顶底:趋势>=REF(趋势,1) POINTDOT;
A7:=(2*C+H+L)/4;
VARR:=LLV(A7,21);
VAR11:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR22:=REF(VAR11,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR33:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR44:=REF(VAR33,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR55:=REF(VAR44,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR66:=REF(VAR55,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR77:=REF(VAR66,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR88:=REF(VAR77,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR99:=REF(VAR88,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARAA:=REF(VAR99,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARBB:=REF(VARAA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARCC:=REF(VARBB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARDD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAREE:=REF(VARDD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARFF:=REF(VAREE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR100:=REF(VARFF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR110:=REF(VAR100,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR120:=REF(VAR110,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR130:=REF(VAR120,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR140:=REF(VAR130,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR150:=REF(VAR140,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR160:=REF(VAR150,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR170:=REF(VAR160,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR180:=REF(VAR170,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR190:=REF(VARDD OR VAREE OR VARFF OR VAR100 OR VAR110 OR VAR120 OR VAR130 OR VAR140 OR VAR150 OR VAR160 OR VAR170 OR VAR180,1) AND VAR11;
VAR1A:=REF(VAR11 OR VAR22 OR VAR33 OR VAR44 OR VAR55 OR VAR66 OR VAR77 OR VAR88 OR VAR99 OR VARAA OR VARBB OR VARCC,1) AND VARDD;
STICKLINE(VAR190,-15,-25,3,0),COLOR0000FF;
STICKLINE(VAR1A,-20,-30,3,0),COLOR00FF00;
操盘线:VAR190>VAR1A POINTDOT;
DRAWTEXT(CURRBARSCOUNT=5,90,'VOL'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,70,'MACD'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,50,'KDJ'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,30,'抢反弹'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,10,'超短线'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,-10,'顶底'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,-35,'操盘线'),COLORFFFFFF;
 

201082010294320313.png

201082010294320313.png

201082010301032557.rar

5.2 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

201082010301032557.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则