自用主图有粉丝需要分享一下主图公式,这也...

自用主图
有粉丝需要分享一下主图公式,这也没什么的。反正我也没把它做成花里胡哨的。简洁实用就好。在左上角也就是添加了题材概念之类的基本面信息。
话不多说源码如下。
EXP5:EMA(C,M4)COLORE8E8E8;
EXP10:EMA(C,M1)COLOR00A5FF;{250之上做股;MACD金叉买;3线缠绕埋伏;}
EXP30:EMA(C,30)COLORCDCD79;
EXP320:EMA(C,320)COLORCDCD88;
EXP60:EMA(C,M2)LINETHICK2,COLOR8968CD;
EXP250:EMA(C,M3)LINETHICK3,COLOR00FFFF;
AAA:=C/REF(C,1)>1.098;{涨停颜色}
AA1:STICKLINE(AAA,C,O,3,0),COLORYELLOW;
CCC:=REF(C,1)/C>1.1;
CC1:STICKLINE(CCC,C,O,3,0),COLOREE687B;
DRAWTEXT_FIX(MACD.MACD>0,0.8,1.4,0,'顶背离,底背离'),LINETHICK3,COLOR00FFFF;
总股本:=STRCAT(STRCAT(' 总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
股本市值:=STRCAT(' ',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));
DRAWTEXT_FIX(ISLASTBAR,0.01,0.1,0,股本市值),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.01,0.004,0,DYBLOCK),COLOR2222B2,LINETHICK2;{板块红}
DRAWTEXT_FIX(C>0,0.06,0.004,0,HYBLOCK),COLORCDC09A,LINETHICK2;{行业绿}
DRAWTEXT_FIX(C>0,0.13,0.004,0,GNBLOCK),COLORMAGENTA,LINETHICK2;{概念洋红}
DRAWTEXT_FIX(1,0,0.2,0,FGBLOCK),COLOR9FFF54;{简况果绿};
DRAWTEXT_FIX(MACD.MACD>0,0,1.4,0,'时间(正态)空间(1/2)结构(背驰)趋势(直尺) 波动(幅度) 指标(底背)零上地量 '),LINETHICK3,COLOR00FFFF;
MA60:IF(EXP60<REF(EXP60,1),EXP60,DRAWNULL),COLORGREEN,LINETHICK2;
W:=BACKSET(C/REF(C,3)>=1.1,3) AND COUNT(BACKSET(C/REF(C,3)>=1.1,3),3)=1;
DRAWTEXT(W,LOW,'买入'),LINETHICK3,COLOR00FFFF;
因为代码比较多,如果出现什么问题请截图回复,以便解决。

(0)

相关推荐