相关标签:
说明:底部出现黄s细线进入底部关注,出现B时买入。顶部出现粉色及蓝色减仓、清仓。
DRAWGBK(DATE>900101,COLORRGB(15,50,90),COLORRGB(0,0,0),1);//蓝色
CXH1:=IF(DATE>=2990601,0,1);
CXH2:=TROUGHBARS(3,15,1)<10;
CXH3:=PEAKBARS(3,15,1)<10;
CXH4:=IF(CXH2=1,50,0);
CXH5:=IF(CXH3=1,50,0);
底: IF(CXH4=50,50,0),STICK,LINETHICK1;
顶: IF(CXH5=50,80,0),STICK,LINETHICK1;
TT:=BARPOS=SYSPARAM(2);
HH:=SYSPARAM(4);
DRAWTEXT(TT,HH,'代码:'+STKLABEL),ALIGN4,PXDN1,colorFFFFFF;
DRAWTEXT(TT,HH,' 名称:'+STKNAME),ALIGN4,PXDN1,colorFF00;
drawtext(sysparam(2)=barpos,c,' 板块:'+blkname),,colorcyan,align4;
{捞钱手(原码)}
拾金线:ma(sma((l+h+2*c)/4-ref((l+h+2*c)/4,1),5,1)/sma(abs((l+h+2*c)/4-ref((l+h+2*c)/4,1)),5,1)*100,1)+50,LINETHICK0,COLORMAGENTA;
顶a:120,POINTDOT,COLORWHITE,LINETHICK0;
风险:100,POINTDOT,COLORWHITE,LINETHICK0;
中:50,POINTDOT,COLORWHITE,LINETHICK0;
减仓:IF(拾金线>=风险,100,120),LINETHICK1,colorwhite;
减仓2:=IF(CROSS(拾金线,风险),100,120);
DRAWTEXT(减仓2=100,100,'减仓'),LINETHICK1,COLORWHITE;
卖出:IF( CROSS(风险,拾金线),100,120),LINETHICK1,COLORGREEN;{http://www.cxh99.com}
DRAWTEXT(卖出=100,95,'卖出'),LINETHICK1,COLORGREEN;{http://www.cxh99.com}
{}
rr8:=MA(CLOSE,27);
rr9:=(CLOSE-rr8)/rr8*100;
rrA:=MA(rr9,2);
rrB:=BARSLAST(CROSS(-10,rrA)=1);
rrD:=rrA<-10 AND rrB>3;
【黄金坑】:IF(rrD,-60,0),coloryellow,LINETHICK2;
{顶底先知}
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:(EMA(CS,3)-50)*2,colorred;
0;
极弱:-80;
强势1:60;
风险1:80;
弱势1:-60;
FILLRGN(YJD<弱势1,YJD,弱势1),color000082;
FILLRGN(YJD>强势1,YJD,强势1),COLORCC6600;
CXH1:=REF(CLOSE,1);
CXH2:=SMA(MAX(CLOSE-CXH1,0),6,1)/SMA(ABS(CLOSE-CXH1),6,1)*100;
STICKLINE(CROSS(75.9,CXH2),YJD+5,YJD-5,3,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,78,' 清仓'),COLORRED;
DRAWTEXT(ISLASTBAR=1,60,' 减仓'),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,0,' 控盘'),COLORWHITE;
DRAWTEXT(ISLASTBAR=1,-60,' 回补'),COLORGREEN;{http://www.cxh99.com}
DRAWTEXT(ISLASTBAR=1,-80,' 吸筹'),COLORBLUE;
CXH1:=REF(CLOSE,1);
CXH2:=(SMA(MAX(CLOSE-CXH1,0),6,1))/(SMA(ABS(CLOSE-CXH1),6,1))*100;
短期顶部:CROSS(80,CXH2)*30,colorFFFFFF,LINETHICK0;
DRAWTEXT(CROSS(80,CXH2),90,'见顶 '),colorFFFF;
Nv:=5;
CXH1:4*SMA((CLOSE-LLV(LOW,Nv))/(HHV(HIGH,Nv)-LLV(LOW,Nv))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,Nv))/(HHV(HIGH,Nv)-LLV(LOW,Nv))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
CXH2:=8,COLORGREEN,LINETHICK0;
上升在即: IF(CROSS(CXH1,CXH2),-80,0),STICK,COLOR0000CC,LINETHICK0;
DRAWTEXT(CROSS(CXH1,CXH2),-50,'B'),COLOR00FFFF;
{时间}
BB:=BARPOS=SYSPARAM(1);
CXHiable:wday[7]='星期六';
wday[1]:='星期日';
wday[2]:='星期一';
wday[3]:='星期二';
wday[4]:='星期三';
wday[5]:='星期四';
wday[6]:='星期五';
fy:=YEAR;
fm:=MONTH;
fd:=DAY;
wd:=WEEKDAY;
p:=SYSPARAM(1);
str1:=' '+'今日: '+NUMTOSTR(fy[p],0)+'年'+NUMTOSTR(fm[p],0)+'月'+NUMTOSTR(fd[p],0)+'日 '+wday[wd[p]+1]+'';
DRAWTEXT(barpos=p,-57,'n n'+str1),PXUP10,ALIGN2,COLORFFEEAA;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
发表评论