以下是金线版自己用的一线天顶格源码和使用说明
金线版自己用的一线天顶格源码:
持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF,LINETHICK2;
指数:
EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强弱分界:80,COLORYELLOW;
主力集中度:WINNER(C)*100,COLORRED,LINETHICK2;
散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN,LINETHICK2;
自己用的:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
一线天:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK3;
顶格筹码:IF(自己用的 =一线天,一线天,DRAWNULL),COLORRED,LINETHICK2;
dddcc:IF(自己用的 一线天,一线天,DRAWNULL),COLORCYAN,LINETHICK2;
N:=4;
{日}
日DIF:="MacD.DIF#DAY";
日DEA:="maCD.DEA#DAY";
日死叉:stICKLINE(日DIF 日DEA,100,99.9,5,0),COLORGREEN;
日:STICKLINE(日DIF 日DEA,100,99.9,5,0),COLORRED;
DRAWTEXT(ISLASTBAR,100,'日'),COLORWHITE;
{周MACD}
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
周死叉:STICKLINE(周DIF 周DEA,34,33.9,5,0),COLORGREEN;
周金叉:STICKLINE(周DIF 周DEA,34,33.9,5,0),COLORRED;
DRAWTEXT(ISLASTBAR,33,'--周'),COLORYELLOW;
{月MACD}
月DIF:="MACD.DIF#MONTH"(12,26,9);
月DEA:="MACD.DEA#MONTH"(12,26,9);
月死叉:STICKLINE(月DIF 月DEA,-10,-9.9,5,0),COLORGREEN;
月金叉:STICKLINE(月DIF 月DEA,-10,-9.9,5,0),COLORRED;
DRAWTEXT(ISLASTBAR,-7,'--月'),COLORLIGRAY;
LC:=REF(CLOSE,1);
风行操作线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORWHITE;
IF(风行操作线 =REF(风行操作线,1),风行操作线,DRAWNULL),COLORRED,LINETHICK2;
顶部:100,COLORFFFF00,LINETHICK2,NODRAW;
强区:77,COLORFF85FF,DOTLINE;区:90,COLORYELLOW,DOTLINE;
生命线:34.00,COLORRED,NODRAW;
抢反弹:10,COLORYELLOW,DOTLINE;
底部:-10,COLORYELLOW,LINETHICK2,NODRAW;
DRAWTEXT(CURRBARSCOUNT=38,0,'底部区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=38,20,'介入区'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=38,55,'安全区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,83,'强势区'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=38,94,'逃顶区'),COLOR00FF00;
金线版自己用的一线天顶格截图