胡37 发表于 2023-10-24 22:40:30

分享一个自己拼凑起来有趋势有通道的通达信主图指标(箭头进出)

<p data-first-child >这个是通达信主图指标,手机已测,电脑就大家自己试试,应该都可以的</p><p >这个指标也是我自己拼凑起来的,分享给大家参考参考</p><p >主图指标源码:</p><p >LC:=REF(CLOSE,1);</p><p >RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;</p><p >RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;</p><p >X9:=FORCAST(C,9);</p><p >LLX:=LLV(FORCAST(C,9),2);</p><p >XX9:=X9*100-LLX*100;</p><p >VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;</p><p >VAR2A:=SMA(VAR1A,9,1)+100;</p><p >VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;</p><p >VAR4A:=SMA(VAR3A,3,1);</p><p >VAR5A:=SMA(VAR4A,3,1)+100;</p><p >VAR6A:=VAR5A-VAR2A;</p><p >端庄窝:=IF(VAR6A>21,VAR6A-21,0);</p><p >T1:=(XX9=0 AND 端庄窝<=REF(端庄窝,1));</p><p >T2:=(XX9=0 AND 端庄窝>REF(端庄窝,1));</p><p >T3:=(XX9>0 AND 端庄窝>REF(端庄窝,1));</p><p >T4:=(XX9>0 AND 端庄窝<=REF(端庄窝,1));</p><p >T5:=RSI1>=RSI2;</p><p >T6:=RSI1<RSI2;</p><p >STICKLINE(T1,H,L,0,1),COLORGRAY;</p><p >STICKLINE(T1 AND C>O,O,C,3,1),COLORGRAY;</p><p >STICKLINE(T1 AND C<O,C,O,3,0),COLORGRAY;</p><p >STICKLINE(T2 AND T5,H,L,0,1),COLORWHITE;</p><p >STICKLINE(T2 AND T5 AND C>O,O,C,3,1),COLORWHITE;</p><p >STICKLINE(T2 AND T5 AND C<O,C,O,3,0),COLORWHITE;</p><p >STICKLINE(T2 AND T6,H,L,0,1),COLORGRAY;</p><p >STICKLINE(T2 AND T6 AND C>O,O,C,3,1),COLORGRAY;</p><p >STICKLINE(T2 AND T6 AND C<O,C,O,3,0),COLORGRAY;</p><p >STICKLINE(T3,H,L,0,1),COLORRED;</p><p >STICKLINE(T3 AND C>O,O,C,3,1),COLORRED;</p><p >STICKLINE(T3 AND C<O,C,O,3,0),COLORRED;</p><p >STICKLINE(T4 AND T5,H,L,0,1),COLORWHITE;</p><p >STICKLINE(T4 AND T5 AND C>O,O,C,3,1),COLORWHITE;</p><p >STICKLINE(T4 AND T5 AND C<O,C,O,3,0),COLORWHITE;</p><p >STICKLINE(T4 AND T6,H,L,0,1),COLORGRAY;</p><p >STICKLINE(T4 AND T6 AND C>O,O,C,3,1),COLORGRAY;</p><p >STICKLINE(T4 AND T6 AND C<O,C,O,3,0),COLORGRAY;</p><p >STICKLINE(T3 AND C<LLX,H,L,0,1),COLORWHITE;</p><p >STICKLINE(T3 AND C>O AND C<LLX,O,C,3,1),COLORWHITE;</p><p >STICKLINE(T3 AND C<O AND C<LLX,C,O,3,0),COLORWHITE;</p><p >HMA22:REF(MA(H,22),1);{平移前一日的22日高点均线到当前K线}</p><p >B买:DRAWICON((CROSS(C,HMA22) AND C>HMA22 AND CLOSE>OPEN ),L,1);</p><p >S卖:DRAWICON((CROSS(HMA22,C) AND C<HMA22 AND CLOSE<OPEN),H,2);</p><p >启动压力:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),DOTLINE,LINETHICK1;</p><p >N:=13;</p><p >UR:=6;</p><p >LR:=6;</p><p >TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);</p><p >TC2:=CONST(BARSLAST(TC1=H))+1;</p><p >UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));</p><p >BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);</p><p >BC2:=CONST(BARSLAST(BC1=L))+1;</p><p >LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));</p><p >LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}</p><p >HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位}</p><p >STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;</p><p >STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;</p><p >NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}</p><p class="ztext-empty-paragraph"><br/></p><p >LR1:=FORCAST(C,NOD+1);</p><p >NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点}</p><p >LR2:=SLOPE(C,NOD+1);</p><p >LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));</p><p >FP:=NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点}</p><p >EQU:=(NP+FP)/2,POINTDOT,COLOR93BDA8;</p><p >AD:=ABS(NP-FP);{高差};</p><p >DBL:=BARSLAST(BC1!=DRAWNULL)+1;</p><p >DBH:=BARSLAST(TC1!=DRAWNULL)+1;</p><p >BSP:=IF(BC2>TC2,DBL,DBH)-1;</p><p class="ztext-empty-paragraph"><br/></p><p >LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);</p><p >AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);</p><p >AT2:=HHV(AT1-LRL,MAX(BC2,TC2));</p><p >AT3:=CONST(BARSLAST(AT1-LRL=AT2));</p><p >AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));</p><p >AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));</p><p >ATL:=LRL+AT5;</p><p >UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);</p><p >UT2:=HHV(LRL-UT1,MAX(BC2,TC2));</p><p >UT3:=CONST(BARSLAST(LRL-UT1=UT2));</p><p >UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));</p><p >UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));</p><p >UTL:=LRL-UT5;</p><p >RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高}</p><p >RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}</p><p >中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORYELLOW;</p><p >上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORGREEN;</p><p >下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORRED;</p><p >EM01:=EMA(C,10);</p><p >EM:=EMA(C,21);</p><p >UP:=EMA(EM,13);</p><p >DOWN:=EMA(EM,17);</p><p >MIDD:(UP+DOWN)/2,POINTDOT;</p><p >STICKLINE(MIDD>REF(MIDD,1),UP,DOWN,1,0),COLORMAGENTA;</p><p >STICKLINE(MIDD<REF(MIDD,1),UP,DOWN,1,0),COLORGREEN;</p><p >STICKLINE(MIDD=REF(MIDD,1),UP,DOWN,1,0),COLORGRAY;</p><p ><b>① 指标源码导入即可使用,但由于文章篇幅限制,股票和公式并未分享完整,如果对于指标有兴趣和疑问,亦或者若不能成功导入请与我沟通!</b></p><p ><b>②创作收集不易,恳请大家阅读之后,对于我的文章能关注和转发,帮忙加加人气,万分谢谢!</b></p><p></p>

咏春学徒篮 发表于 2023-11-18 16:25:07

点赞楼主!

fastemb 发表于 2024-1-24 00:52:46

有道理。。。

123458862 发表于 2024-1-31 10:02:04

看帖回帖是美德!:lol

末路心路nu 发表于 2024-2-11 22:24:59

如果想获取全部资源,怎么操作?

怕代时 发表于 2024-2-15 00:31:56

顶贴光荣!
页: [1]
查看完整版本: 分享一个自己拼凑起来有趋势有通道的通达信主图指标(箭头进出)