通达信牛熊主图公式
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{牛熊主图}
{十字图标为获利比例接近零
钱袋图标为回踩144线买点
绿三角图标是回踩144的卖点
红色向上箭头图标为突破233线买点
绿色向下箭头图标是突破233的卖点
绿色虚线为止损线
黄色梨图标是第五天回调
笑脸图标是低位买点
踢的图标是低位卖点
数字为天数计数}
平均:COST(50);
牛熊:MA(C,144),COLORYELLOW,LINETHICK1;
低值:=COST(2.5);
高值:=COST(97.5);
低利:COST(5);
MA5:MA(C,5);
MA233:MA(C,233);
MA266:MA(C,266);
MA311:MA(C,311);
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C A1:=ABS(100*((平均/牛熊)-1))<1; A2:=ABS(100*(MIN(O,C)/牛熊-1))<1; A3:=COUNT(MIN(O,C)>牛熊,5)>2; 买入:=CROSS(A1 AND A2 AND A3,0.1); SJ:=BARSLAST(买入); DRAWICON(买入,L,9); DRAWICON(SJ=5,L*0.96,16); DRAWNUMBER(C>牛熊AND SJ>0 AND SJ<30,L*0.98,SJ),COLORBROWN; STICKLINE(买入,O,C,1,0),COLORYELLOW; 卖出:=CROSS(H,MA233); DRAWICON(CROSS(卖出OR MAX(O,C)<牛熊OR CROSS(H,高值),0.1) AND SJ<30 AND SJ>0,H,39); A4:=REF(MIN(C,O),SJ); 止损:IF(SJ<15 AND SJ>0,A4,DRAWNULL),COLORGREEN,DOTLINE; Z1:=REF(CROSS(C,MA233),2); Z2:=COUNT(MIN(O,C)>MA233,2)>1; 买入1:=CROSS(Z1 AND Z2,0.1); SJ1:=BARSLAST(买入1); DRAWICON(买入1,L,1); DRAWICON(SJ1=5,L*0.96,11); DRAWNUMBER(C>MA233 AND SJ1>0 AND SJ1<30,L*0.98,SJ1),COLORBROWN; STICKLINE(买入1,O,C,1,0),COLORYELLOW; 卖出1:=CROSS(H,MA311); DRAWICON(CROSS(卖出 1 OR MAX(O,C) Z3:=REF(MIN(C,O),SJ1); 止损1:IF(SJ1<15 AND SJ1>0,Z3,DRAWNULL),COLORGREEN,DOTLINE; 获利比例:=CROSS(100*WINNER(C)<0.3,0.1); DRAWICON(获利比例,L,23); TJ:=BARSLAST(获利比例); 两阳:=CROSS(EVERY(C>O,2) AND TJ>0 AND TJ<30,0.1); DRAWTEXT(两阳,L,'两阳'),COLORYELLOW; JS1:=COUNT(两阳AND TJ>0 AND TJ<30 AND C<牛熊,TJ); DRAWNUMBER(两阳AND C<牛熊,H*1.02,JS1); JS2:=COUNT(两阳AND TJ>0 AND TJ<30 AND C>牛熊,TJ); DRAWNUMBER(两阳AND C>牛熊,H*1.02,JS2); 买入2:=FILTER(CROSS(MA5,低利) AND TJ>0 AND TJ<30,20); ZQ:=BARSLAST(买入2); DRAWICON(买入2,L*0.96,5); LL:=REF(L,TJ); DRAWICON(FILTER((CROSS(H,牛熊) OR C DB:=REF(MIN(C,O),TJ); 止损2:IF(TJ<15 AND TJ>0,DB,DRAWNULL),COLORGREEN,DOTLINE; 总额:=AMOUNT; 买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNT*100; 流入:=AMOUNT*买%/10000000000; 流出:=AMOUNT/100000000-流入; 净流:=(流入-流出); 总额3:=SUM(AMOUNT,3); 流入3:=SUM(流入,3); 流出3:=SUM(流出,3); 净流3:=SUM(流入-流出,3); 总额5:=SUM(AMOUNT,5);