通达信【强势突围】主副图指标 突破重围见曙光 用法详解 源码附图

{强势突围选股源码如下:}
{强势突围选股源码:}

VAR1:=SUM(IF(HIGH>LOW,(CLOSE-LOW/HIGH-LOW+CLOSE-HIGH/HIGH-LOW)*VOL,0),10)/10000;
VAR6:=UPNDAY((12-26)*2,1);
VAR7:=BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5);
VAR8:=BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5);
VAR9:=IF(BARSLAST(VAR7)=BARSLAST(VAR8) AND MA(C,5)>MA(C,10),VAR7,IF(BARSLAST(VAR8)>BARSLAST(VAR7),VAR7,0));
VAR10:=IF(BARSLAST(VAR7)=BARSLAST(VAR8) AND MA(C,10)>MA(C,5),VAR8,IF(BARSLAST(VAR7)>BARSLAST(VAR8),VAR8,0));
VAR11:=VAR9 AND H=HHV(H,BARSLAST(VAR10));
VAR12:=VAR10 AND L=LLV(L,BARSLAST(VAR9));
VAR13:=L>REF(H,1) AND DAY!=REF(DAY,1);
VAR14:=H<REF(L,1) AND DAY!=REF(DAY,1);
VAR15:=REF(H,BARSLAST(VAR11));
VAR16:=REF(L,BARSLAST(VAR11));
VAR17:=REF(H,BARSLAST(VAR11)+1);
VAR18:=REF(L,BARSLAST(VAR11)+1);
VAR19:=REF(L,BARSLAST(VAR11)+2);
VAR20:=REF(H,BARSLAST(VAR12)+2);
VAR21:=REF(H,BARSLAST(VAR12));
VAR22:=REF(L,BARSLAST(VAR12));
VAR23:=REF(H,BARSLAST(VAR12)+1);
VAR24:=REF(L,BARSLAST(VAR12)+1);
VAR25:=IF(VAR17<VAR16,VAR16,IF(VAR16<=VAR18,VAR19,VAR18));
VAR26:=IF(VAR24>VAR21,VAR21,IF(VAR21>=VAR23,VAR20,VAR23));
VAR27:=VAR15>VAR26 AND VAR11;
VAR28:=VAR22<VAR25 AND VAR12;
VAR29:=VAR27 AND VAR15>VAR21 AND VAR16>VAR22 AND VAR18>VAR22;
VAR30:=VAR28 AND VAR22<VAR16 AND VAR21<VAR15 AND VAR23<VAR15;
VAR31:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));
VAR32:=COUNT(VAR31,BARSLAST(VAR12));
VAR33:=COUNT(VAR31,BARSLAST(VAR11));
VAR34:=COUNT(VAR13,BARSLAST(VAR12));
VAR35:=COUNT(VAR14,BARSLAST(VAR11));
VAR36:=IF(VAR32>0,VAR32+2,IF(VAR33,VAR33+2,3));
VAR37:=IF(VAR34,VAR36-VAR34,IF(VAR35,VAR36-VAR35,VAR36));
VAR38:=(VAR29 AND BARSLAST(VAR30)>VAR37);
VAR39:=(VAR30 AND BARSLAST(VAR29)>VAR37);
VAR40:=(VAR11 AND REF(H,BARSLAST(VAR11))>=REF(H,BARSLAST(VAR38)) AND BARSLAST(VAR39)>BARSLAST(VAR38)) OR (VAR27 AND COUNT(VAR13,BARSLAST(VAR28))>0 AND REF(H,BARSLAST(VAR27))>REF(H,BARSLAST(VAR38)));
VAR41:=(VAR12 AND REF(L,BARSLAST(VAR12))<=REF(L,BARSLAST(VAR39)) AND BARSLAST(VAR38)>BARSLAST(VAR39)) OR (VAR28 AND COUNT(VAR14,BARSLAST(VAR27))>0 AND REF(L,BARSLAST(VAR28))<REF(H,BARSLAST(VAR39)));
VAR42:=IF(BARSLAST(VAR41)>BARSLAST(VAR40),REF(H,BARSLAST(VAR40)),REF(H,BARSLAST(VAR41)));
VAR43:=IF(BARSLAST(VAR40)>BARSLAST(VAR41),REF(L,BARSLAST(VAR41)),REF(L,BARSLAST(VAR40)));
VAR44:=VAR40 AND H=HHV(VAR42,BARSLAST(VAR41)+1) AND H>REF(H,1) AND BARSLAST(VAR41)>BARSLAST(VAR40);
VAR45:=VAR41 AND L=LLV(VAR43,BARSLAST(VAR40)+1) AND L<REF(L,1) AND BARSLAST(VAR40)>BARSLAST(VAR41);
VAR68:=VAR44 OR (VAR11 AND REF(H,BARSLAST(VAR11))>REF(H,BARSLAST(VAR44)) AND BARSLAST(VAR45)>BARSLAST(VAR44));
VAR88:=DRAWLINE(VAR68,H,REF(VAR68,1),REF(H,1),1);
XG:CROSS(C,VAR88) AND VAR88>0 AND VAR6 AND VAR1;





{强势突围主图源码如下:}



VAR1:=IF(BARSLAST(BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5))=BARSLAST(BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5)) AND MA(C,5)>MA(C,10),BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5),IF(BARSLAST(BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5))>BARSLAST(BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5)),BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5),0));
VAR2:=IF(BARSLAST(BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5))=BARSLAST(BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5)) AND MA(C,10)>MA(C,5),BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5),IF(BARSLAST(BACKSET(REF(H,5)=HHV(H,11),6)>BACKSET(REF(H,5)=HHV(H,11),5))>BARSLAST(BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5)),BACKSET(REF(L,5)=LLV(L,11),6)>BACKSET(REF(L,5)=LLV(L,11),5),0));
VAR3:=IF(REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))+1)<REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))),REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))),IF(REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))))<=REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))+1),REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))+2),REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))+1)));
VAR4:=IF(REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))+1)>REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))),REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))),IF(REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))))>=REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))+1),REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))+2),REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))+1)));
VAR5:=REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))))>VAR4 AND VAR1 AND H=HHV(H,BARSLAST(VAR2));
VAR6:=REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))))<VAR3 AND VAR2 AND L=LLV(L,BARSLAST(VAR1));
VAR7:=VAR5 AND REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))))>REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))) AND REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))))>REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))) AND REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))+1)>REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))));
VAR8:=VAR6 AND REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))))<REF(L,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))) AND REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))))<REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))) AND REF(H,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))+1)<REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))));
VAR9:=COUNT((H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1)),BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))));
VAR10:=COUNT((H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1)),BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))));
VAR11:=IF(COUNT(L>REF(H,1) AND DAY!=REF(DAY,1),BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))),IF(VAR9>0,VAR9+2,IF(VAR10,VAR10+2,3))-COUNT(L>REF(H,1) AND DAY!=REF(DAY,1),BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1)))),IF(COUNT(H<REF(L,1) AND DAY!=REF(DAY,1),BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))),IF(VAR9>0,VAR9+2,IF(VAR10,VAR10+2,3))-COUNT(H<REF(L,1) AND DAY!=REF(DAY,1),BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2)))),IF(VAR9>0,VAR9+2,IF(VAR10,VAR10+2,3))));
VAR12:=(VAR1 AND H=HHV(H,BARSLAST(VAR2)) AND REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))))>=REF(H,BARSLAST((VAR7 AND BARSLAST(VAR8)>VAR11))) AND BARSLAST((VAR8 AND BARSLAST(VAR7)>VAR11))>BARSLAST((VAR7 AND BARSLAST(VAR8)>VAR11))) OR (VAR5 AND COUNT(L>REF(H,1) AND DAY!=REF(DAY,1),BARSLAST(VAR6))>0 AND REF(H,BARSLAST(VAR5))>REF(H,BARSLAST((VAR7 AND BARSLAST(VAR8)>VAR11))));
VAR13:=(VAR2 AND L=LLV(L,BARSLAST(VAR1)) AND REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))))<=REF(L,BARSLAST((VAR8 AND BARSLAST(VAR7)>VAR11))) AND BARSLAST((VAR7 AND BARSLAST(VAR8)>VAR11))>BARSLAST((VAR8 AND BARSLAST(VAR7)>VAR11))) OR (VAR6 AND COUNT(H<REF(L,1) AND DAY!=REF(DAY,1),BARSLAST(VAR5))>0 AND REF(L,BARSLAST(VAR6))<REF(H,BARSLAST((VAR8 AND BARSLAST(VAR7)>VAR11))));
VAR14:=VAR12 AND H=HHV(IF(BARSLAST(VAR13)>BARSLAST(VAR12),REF(H,BARSLAST(VAR12)),REF(H,BARSLAST(VAR13))),BARSLAST(VAR13)+1) AND H>REF(H,1) AND BARSLAST(VAR13)>BARSLAST(VAR12);
VAR15:=VAR13 AND L=LLV(IF(BARSLAST(VAR12)>BARSLAST(VAR13),REF(L,BARSLAST(VAR13)),REF(L,BARSLAST(VAR12))),BARSLAST(VAR12)+1) AND L<REF(L,1) AND BARSLAST(VAR12)>BARSLAST(VAR13);
VAR68:=VAR14 OR (VAR1 AND H=HHV(H,BARSLAST(VAR2)) AND REF(H,BARSLAST(VAR1 AND H=HHV(H,BARSLAST(VAR2))))>REF(H,BARSLAST(VAR14)) AND BARSLAST(VAR15)>BARSLAST(VAR14));
VAR88:=VAR15 OR (VAR2 AND L=LLV(L,BARSLAST(VAR1)) AND REF(L,BARSLAST(VAR2 AND L=LLV(L,BARSLAST(VAR1))))<REF(L,BARSLAST(VAR15)) AND BARSLAST(VAR14)>BARSLAST(VAR15));
STICKLINE(VOL/REF(VOL,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;
DRAWTEXT_FIX(C>O,0,0.07,0,'VAR68:VAR88'),COLORMAGENTA;
趋势向上:DRAWLINE(VAR88,L,VAR68,H,0),COLORYELLOW,DOTLINE;
趋势向下:DRAWLINE(VAR68,H,VAR88,L,0),COLORWHITE,DOTLINE;
找顶线:DRAWLINE(VAR68,H,REF(VAR68,1),REF(H,1),1),COLORGREEN;
找底线:DRAWLINE(VAR88,L,REF(VAR88,1),REF(L,1),1),COLORRED;
DRAWNUMBER(VAR88,LOW*0.995,LOW);
DRAWNUMBER(VAR68,HIGH*1.01,HIGH);
XG:CROSS(C,找顶线) AND 找顶线>0 AND (SUM(IF(HIGH>LOW,(CLOSE-LOW/HIGH-LOW+CLOSE-HIGH/HIGH-LOW)*VOL,0),10)/10000) AND UPNDAY((12-26)*2,1),NODRAW;
DRAWICON(XG,LOW,1);




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

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

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