自动划线主图 带无未来参考买卖——辅助观察趋势很不错 源码附图

DRAWKLINE(H,O,L,C);

MA5:=MA(CLOSE,5),COLORWHITE;

MA10:=MA(CLOSE,10),COLORYELLOW;

MA20:=MA(CLOSE,24),COLORMAGENTA;

MA60:=MA(CLOSE,60),COLORGREEN;

MA120:=MA(CLOSE,120),COLORLIMAGENTA;

MA240:=MA(CLOSE,240),COLORBLUE;

DRAWICON(CROSS(MA10,MA20),MA20,1);

DRAWICON(CROSS(MA20,MA60),MA60,1);

DRAWICON(CROSS(MA20,MA120),MA120,1);

反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);

月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);

季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);

短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);

半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);

熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);

年托:=MA120>MA240 AND MA120>MA240 AND CROSS(MA120,MA240);

月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);

DRAWTEXT(月蜘蛛 , MA20-0.08,'金蜘蛛'),COLORMAGENTA;

DRAWTEXT(反弹托 , MA20-0.08,'反弹托'),COLORMAGENTA;

DRAWTEXT(月价托 , MA20-0.2,'月托'),COLORMAGENTA;

DRAWTEXT(季价托 , MA60-0.0158,'季价托'),COLORMAGENTA;

DRAWTEXT(短长价托,L+0.015,'短长托'),COLOR36C0C1;

DRAWTEXT(半年托,MA120-0.08,'牛市来'),COLORRED;

DRAWTEXT(熊来,MA60+0.08,'小心熊'),COLORGREEN;

DRAWTEXT(年托,MA240-0.08,'年托'),COLORRED;

压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10);

DRAWTEXT(压,MA20+0.012,'压'),COLORYELLOW;

VOL5:=MA(VOL,5),COLORWHITE;

VOL10:=MA(VOL,10),COLORYELLOW;

VOL40:=MA(VOL,40),COLORFF00FF ;

量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);

DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;

AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));

BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);

CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;

芙蓉出水:=BB1 AND CC1,COLOR00FF00;

DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;

STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;

STICKLINE(芙蓉出水,O,C,4,1),LINETHICK2,COLORFF00FF;

MA1:=MA(CLOSE,5);

MA2:=MA(CLOSE,10);

MA3:=MA(CLOSE,30);

ZJ:=AMOUNT/10000;

TM:=V-MA(V,10);

一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;

DRAWTEXT(一穿三,L-0.012,'穿三线'),COLORFF00FF;

C6:=REF(C,1);

涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);

STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(涨停,H,L,0,0),COLORLIRED;

TY:=C;

A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);

A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);

前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;

STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW;

MAA5:MA(C,5),COLORLIRED,LINETHICK2;

MAA10:MA(C,10),COLORCYAN;

MAA30:MA(C,30),COLORRED;

KS:IF(MAA10>MAA30,MAA10,MAA30),COLORYELLOW;

A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

A4:=SMA(A3,3,1);

A5:=SMA(A4,3,1);

A6:=3*A4-2*A5;

A7:=C-REF(C,1);

A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);

买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));

DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买'),COLORYELLOW;

STICKLINE(买,OPEN,CLOSE,2,0),COLORMAGENTA;

卖:=HHV(A8,2)=HHV(A8,7) AND COUNT(A8>0,2) AND CROSS(MA(A8,3),A8);

DRAWTEXT(FILTER(卖=1,5),HIGH+0.05,'↙卖'),COLORYELLOW;

STICKLINE(卖,OPEN,CLOSE,2,0),COLORGREEN;

UR:=6;

LR:=6;

TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);

TC2:=CONST(BARSLAST(TC1=H))+1;

UP:CONST(IF(TC2=1,H,REF(H,TC2-1)));

BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);

BC2:=CONST(BARSLAST(BC1=L))+1;

LL:CONST(IF(BC2=1,L,REF(L,BC2-1)));

LP:=CURRBARSCOUNT<=BC2 AND L=LL;

HP:=CURRBARSCOUNT<=TC2 AND H=UP;

STICKLINE(IF(BC2>TC2,HP,LP),LL,UP,0,0),COLORLIMAGENTA;

STICKLINE(IF(BC2>TC2,LP,HP),LL,UP,0,0),COLORLIMAGENTA;

NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));

LR1:=FORCAST(C,NOD+1);

NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;

LR2:=SLOPE(C,NOD+1);

LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));

FP:NP-LR3*(NOD),POINTDOT,COLOR93BDA8;

EQU:(NP+FP)/2,POINTDOT,COLOR93BDA8;

AD:=ABS(NP-FP);

DBL:=BARSLAST(BC1!=DRAWNULL)+1;

DBH:=BARSLAST(TC1!=DRAWNULL)+1;

BSP:=IF(BC2>TC2,DBL,DBH)-1;

LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);

AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);

AT2:=HHV(AT1-LRL,MAX(BC2,TC2));

AT3:=CONST(BARSLAST(AT1-LRL=AT2));

AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));

AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));

ATL:=LRL+AT5;

UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);

UT2:=HHV(LRL-UT1,MAX(BC2,TC2));

UT3:=CONST(BARSLAST(LRL-UT1=UT2));

UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));

UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));

UTL:=LRL-UT5;

RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));

RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));

中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORLIMAGENTA;

上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORLIMAGENTA;

下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORLIMAGENTA;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图