通达信【霸王枪】主副图 突破前期压力位 打压股价后的反转点 源码

{霸王枪主图源码如下}
{霸王枪主图指标,无未来}
好股网1:=SMA(SMA(SMA(MA(C,1),2,1),2,1),2,1);
好股网2:=((C>REF(C,1)) AND (C>REF(C,2)));
好股网3:=((REF(好股网2,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网4:=((REF(好股网3,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网5:=((REF(好股网4,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网6:=((REF(好股网5,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网7:=((REF(好股网6,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网8:=((REF(好股网7,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网9:=((REF(好股网8,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网10:=((REF(好股网9,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网11:=((REF(好股网10,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网12:=((REF(好股网11,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网13:=((REF(好股网12,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网14:=((C<REF(C,1)) AND (C<REF(C,2)));
好股网15:=((REF(好股网14,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网16:=((REF(好股网15,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网17:=((REF(好股网16,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网18:=((REF(好股网17,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网19:=((REF(好股网18,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网20:=((REF(好股网19,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网21:=((REF(好股网20,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网22:=((REF(好股网21,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网23:=((REF(好股网22,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网24:=((REF(好股网23,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网25:=((REF(好股网24,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网26:=(((好股网14 OR 好股网15) OR 好股网16) OR 好股网17);
好股网27:=(((好股网26 OR 好股网18) OR 好股网19) OR 好股网20);
好股网28:=(((好股网27 OR 好股网21) OR 好股网22) OR 好股网23);
好股网29:=(REF(((好股网28 OR 好股网24) OR 好股网25),1) AND 好股网2);
好股网30:=(((好股网2 OR 好股网3) OR 好股网4) OR 好股网5);
好股网31:=(((好股网30 OR 好股网6) OR 好股网7) OR 好股网8);
好股网32:=(((好股网31 OR 好股网9) OR 好股网10) OR 好股网11);
好股网33:=(REF(((好股网32 OR 好股网12) OR 好股网13),1) AND 好股网14);
好股网34:=CROSS((MA((H+L)/5,4))-(MA((H+L)/5,34)),0);
好股网35:=CROSS(0,(MA((H+L)/5,4))-(MA((H+L)/5,34)));
好股网36:=BARSLAST(REF(好股网34,1));
好股网37:=BARSLAST(REF(好股网35,1));
好股网38:=IF((好股网36<好股网37),(REF((HHV(H,2)),好股网36)),(REF((LLV(L,2)),好股网37)));
好股网39:=(((REF(C,1))<=(REF(好股网38,1))) AND (C>好股网38)) AND (BARSLAST(好股网34)<BARSLAST(好股网35));
好股网40:=(((REF(C,1))>=(REF(好股网38,1))) AND (C<好股网38)) AND (BARSLAST(好股网35)<BARSLAST(好股网34));
好股网41:=好股网39 AND ((COUNT(好股网39,BARSLAST(好股网34)))=1);
好股网42:=好股网40 AND ((COUNT(好股网40,BARSLAST(好股网35)))=1);
好股网43:=好股网41 AND ((REF(BARSLAST(好股网42),1))<(REF(BARSLAST(好股网41),1)));
好股网44:=(C-MA(AMOUNT/(V),13))/(MA(AMOUNT/(V),13))*100;
好股网45:=MA(C,22)+2*STD(C,22);
好股网46:=MA(C,22)-2*STD(C,22);
好股网B:=(C-好股网46)/(好股网45-好股网46);
好股网A:=(REF(好股网44,1)<-15 AND REF(好股网B,1)<0 AND 好股网44>REF(好股网44,1));
霸王枪买入:IF(LLV(MA(好股网1,8),3)<好股网1,LLV(MA(好股网1,8),3),好股网1);
IF(好股网1>MA(好股网1,3),好股网1,DRAWNULL),COLORRED,LINETHICK4;
IF(好股网1<MA(好股网1,3),好股网1,DRAWNULL),COLORGREEN,LINETHICK4;
霸王枪卖出:HHV(MA(好股网1,1),13),COLORYELLOW;
STICKLINE(霸王枪卖出>好股网1 AND 好股网1>MA(好股网1,3),霸王枪卖出,好股网1,0,1),COLORLIBLUE;
STICKLINE(霸王枪卖出>MA(好股网1,3) AND 好股网1<MA(好股网1,3),霸王枪卖出,MA(好股网1,3),0,1),COLORBLUE;
STICKLINE((C>=O),O,L,0,0),COLOR0726CA;
STICKLINE((C>=O),C,H,0,0),COLOR0726CA;
STICKLINE((C<O),C,L,0,0),COLORDE9100;
STICKLINE((C<O),O,H,0,0),COLORDE9100;
STICKLINE((C<O),C,O,4,0),COLORFF5B00;
STICKLINE((C<O),C,O,3.4,0),COLORFF6C00;
STICKLINE((C<O),C,O,2.8,0),COLORFF7B00;
STICKLINE((C<O),C,O,2.2,0),COLORFF9C00;
STICKLINE((C<O),C,O,1.6,0),COLORFFBE00;
STICKLINE((C<O),C,O,1,0),COLORFFCC00;
STICKLINE((C<O),C,O,0.3,0),COLORFFFF00;
STICKLINE((C>O),C,O,4,0),COLOR070084;
STICKLINE((C>O),C,O,3.4,0),COLOR0000A3;
STICKLINE((C>O),C,O,2.8,0),COLOR0000B7;
STICKLINE((C>O),C,O,2.2,0),COLOR0000CD;
STICKLINE((C>O),C,O,1.6,0),COLOR0000E9;
STICKLINE((C>O),C,O,1,0),COLOR0754E9;
STICKLINE((C>O),C,O,0.5,0),COLOR076EF3;
STICKLINE((C>O),C,O,0.2,0),COLOR077BF3;
STICKLINE(好股网29,O,O+(C-O)/3,4,0),COLOR1029FF;
STICKLINE(好股网29,O,O+(C-O)/3,3.4,0),COLOR1040FF;
STICKLINE(好股网29,O,O+(C-O)/3,2.8,0),COLOR1083FF;
STICKLINE(好股网29,O,O+(C-O)/3,2.2,0),COLOR10ABFF;
STICKLINE(好股网29,O,O+(C-O)/3,1.6,0),COLOR10D0FF;
STICKLINE(好股网29,O,O+(C-O)/3,1,0),COLOR10FFFF;
STICKLINE(好股网29,O,O+(C-O)/3,0.3,0),COLOR00FFFF;
STICKLINE(好股网33,O,O+(C-O)/3,4.3,0),COLOR009900;
STICKLINE(好股网33,O,O+(C-O)/3,3.2,0),COLOR00AA00;
STICKLINE(好股网33,O,O+(C-O)/3,2.4,0),COLOR00BB00;
STICKLINE(好股网33,O,O+(C-O)/3,1.7,0),COLOR00CC00;
STICKLINE(好股网33,O,O+(C-O)/3,1.1,0),COLOR00DD00;
STICKLINE(好股网33,O,O+(C-O)/3,0.5,0),COLOR00EE00;
STICKLINE(好股网33,O,O+(C-O)/3,0.2,0),COLOR00FF00;
DRAWTEXT(好股网43,MA(好股网1,3)*0.99,'←霸王枪'),COLORYELLOW;
STICKLINE(好股网A,L*0.93,L*0.95,6,0)COLORRED;
STICKLINE(好股网A>0,C,O,4,0),COLORRED;
STICKLINE(好股网A>0,C,O,3.4,0),COLOR1029FF;
STICKLINE(好股网A>0,C,O,2.8,0),COLOR1040FF;
STICKLINE(好股网A>0,C,O,2.2,0),COLOR1083FF;
STICKLINE(好股网A>0,C,O,1.6,0),COLOR10ABFF;
STICKLINE(好股网A>0,C,O,1,0),COLOR10D0FF;
STICKLINE(好股网A>0,C,O,0.3,0),COLOR10FFFF;
DRAWTEXT(好股网A>0,LOW*0.98,'$'),COLORFF00FF;
DRAWTEXT(好股网A>0,LOW*0.92,'底部将到'),COLORFF00FF;


{霸王枪副图源码如下}
{霸王枪副图/选股一体指标,无未来函数}
好股网1:=SMA(SMA(SMA(MA(C,1),2,1),2,1),2,1);
好股网2:=((C>REF(C,1)) AND (C>REF(C,2)));
好股网3:=((REF(好股网2,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网4:=((REF(好股网3,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网5:=((REF(好股网4,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网6:=((REF(好股网5,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网7:=((REF(好股网6,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网8:=((REF(好股网7,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网9:=((REF(好股网8,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网10:=((REF(好股网9,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网11:=((REF(好股网10,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网12:=((REF(好股网11,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网13:=((REF(好股网12,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网14:=((C<REF(C,1)) AND (C<REF(C,2)));
好股网15:=((REF(好股网14,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网16:=((REF(好股网15,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网17:=((REF(好股网16,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网18:=((REF(好股网17,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网19:=((REF(好股网18,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网20:=((REF(好股网19,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网21:=((REF(好股网20,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网22:=((REF(好股网21,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网23:=((REF(好股网22,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网24:=((REF(好股网23,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
好股网25:=((REF(好股网24,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
好股网26:=(((好股网14 OR 好股网15) OR 好股网16) OR 好股网17);
好股网27:=(((好股网26 OR 好股网18) OR 好股网19) OR 好股网20);
好股网28:=(((好股网27 OR 好股网21) OR 好股网22) OR 好股网23);
好股网29:=(REF(((好股网28 OR 好股网24) OR 好股网25),1) AND 好股网2);
好股网30:=(((好股网2 OR 好股网3) OR 好股网4) OR 好股网5);
好股网31:=(((好股网30 OR 好股网6) OR 好股网7) OR 好股网8);
好股网32:=(((好股网31 OR 好股网9) OR 好股网10) OR 好股网11);
好股网33:=(REF(((好股网32 OR 好股网12) OR 好股网13),1) AND 好股网14);
好股网34:=CROSS((MA((H+L)/5,4))-(MA((H+L)/5,34)),0);
好股网35:=CROSS(0,(MA((H+L)/5,4))-(MA((H+L)/5,34)));
好股网36:=BARSLAST(REF(好股网34,1));
好股网37:=BARSLAST(REF(好股网35,1));
好股网38:=IF((好股网36<好股网37),(REF((HHV(H,2)),好股网36)),(REF((LLV(L,2)),好股网37)));
好股网39:=(((REF(C,1))<=(REF(好股网38,1))) AND (C>好股网38)) AND (BARSLAST(好股网34)<BARSLAST(好股网35));
好股网40:=(((REF(C,1))>=(REF(好股网38,1))) AND (C<好股网38)) AND (BARSLAST(好股网35)<BARSLAST(好股网34));
好股网41:=好股网39 AND ((COUNT(好股网39,BARSLAST(好股网34)))=1);
好股网42:=好股网40 AND ((COUNT(好股网40,BARSLAST(好股网35)))=1);
霸王枪:好股网41 AND ((REF(BARSLAST(好股网42),1))<(REF(BARSLAST(好股网41),1)));


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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