胡37 发表于 2024-2-24 02:30:16

通达信主图指标智能操盘(附源码)

<p data-first-child >通达信主图指标智能操盘(附源码)</p><p >DRAWTEXT_FIX(1,0.0,0.00,0,EXTERNSTR(0,1))COLOR0077FF;</p><p >N8:=STRCAT(CON2STR(YEAR,0),' 年 '); </p><p >Y8:=STRCAT(CON2STR(MONTH,0),' 月 '); </p><p >R8:=STRCAT(CON2STR(DAY,0),' 日 '); </p><p >买线:=EMA(C,2); </p><p >卖线:=EMA(SLOPE(C,21)*20+C,42); </p><p >STICKLINE(买线>=卖线,REFDAT(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR000055;</p><p >STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR663300;</p><p >DRAWNUMBER(ISLASTBAR,C,C),COLORMAGENTA;</p><p >VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));</p><p >VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));</p><p >VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));</p><p >SJTJ:=DATE<1590301;</p><p >X1:=(C+L+H)/3; </p><p >X2:=EMA(X1,6); </p><p >X3:=EMA(X2,5);</p><p >SJ8:=STRCAT(STRCAT(N8,Y8), R8); </p><p >STICKLINE(X2>=X3 AND SJTJ,LOW,HIGH,0,1),COLORRED; </p><p >STICKLINE(X2>=X3 AND SJTJ,CLOSE,OPEN,3.2,2),COLORRED; </p><p >STICKLINE(X2<X3 AND SJTJ,LOW,HIGH,0,1),COLORCYAN;</p><p >STICKLINE(X2<X3 AND SJTJ,CLOSE,OPEN,3.2,2),COLORCYAN;</p><p >STICKLINE(CROSS(X3,X2) AND SJTJ,OPEN,CLOSE,3.2,0),COLORCYAN;</p><p >STICKLINE(CROSS(X2,X3) AND SJTJ,OPEN,CLOSE,3.2,0),COLORRED; </p><p >STICKLINE((CLOSE>OPEN) AND (X2<X3) AND SJTJ,CLOSE,OPEN,3.2,2)COLORCYAN;</p><p >STICKLINE((CLOSE>OPEN) AND (X2>=X3) AND SJTJ,CLOSE,OPEN,3.2,2)COLORRED;</p><p >STICKLINE((CLOSE<OPEN) AND (X2<X3) AND SJTJ,CLOSE,OPEN,3.2,0)COLORCYAN;</p><p >STICKLINE((CLOSE<OPEN) AND (X2>=X3) AND SJTJ,CLOSE,OPEN,3.2,0)COLORRED;</p><p >做空:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE; </p><p >做多:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED; </p><p >操盘线:=EMA(EMA(EMA(CLOSE,2),2),2);</p><p >趋势线:(MA(操盘线,5)),COLORCYAN,LINETHICK2;</p><p >IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;</p><p >IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2;</p><p >最新价:IF(SJTJ, C,DRAWNULL),LINETHICK0,COLORYELLOW;</p><p >DRAWTEXT_FIX(C>0,0.88,0,0,SJ8),COLOR00FFFF;</p><p >DRAWBMP(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.01)),'BUY1');</p><p >DRAWBMP(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),'SELL1');</p><p >注:平台目前更新的有关公式源码,(会有收费,捡漏勿扰,该主图99元可得)(全部支持电脑手机),使用过程中,若有不懂,可以及时联系我们这边,帮忙处理,,喜欢加关注,感谢点赞支持,后市若有可期,希望越来越好!</p><p></p>

刘久田 发表于 2024-3-30 10:32:45

好好 学习了 确实不错
页: [1]
查看完整版本: 通达信主图指标智能操盘(附源码)