cps16888 发表于 2016-5-25 16:26

通达信锁喉枪买卖主图指标公式

通达信锁喉枪买卖主图指标公式

  B1:=MA(C,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
SMA2:=MA(B2,3);
三枪买入:IF(LLV(MA(B2,8),3)B2,LLV(MA(B2,8),3),B2);
IF(B2SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;
IF(B2SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK4;
三枪卖出:HHV(MA(B2,1),13),COLORYELLOW;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=MA(VAR1,7);
VAR3:=VAR2-MA(VAR1,7/2)0;
VAR4:=VAR2-MA(VAR1,7/2)0;
VAR5:=BARSLAST(VAR3);
VAR6:=0-BARSLAST(VAR4);
VAR7:=IF(VAR3=0,VAR5,VAR6);
STICKLINE(三枪卖出B2ANDB2SMA2,三枪卖出,B2,0,1),COLORLIBLUE;
STICKLINE(三枪卖出SMA2ANDB2SMA2,三枪卖出,SMA2,0,1),COLORBLUE;
VAR11:=(CLOSE*2+HIGH+LOW)/4;
VAR21:=EMA(VAR11,13)-EMA(VAR11,34);
VAR31:=EMA(VAR21,5);
STICKLINE((C=O),OPEN,LOW,0,0),COLOR0726CA;
STICKLINE((C=O),CLOSE,HIGH,0,0),COLOR0726CA;
STICKLINE((CO),CLOSE,LOW,0,0),COLORDE9100;
STICKLINE((CO),OPEN,HIGH,0,0),COLORDE9100;
STICKLINE((CO),CLOSE,OPEN,4,0),COLORFF5B00;
STICKLINE((CO),CLOSE,OPEN,3.4,0),COLORFF6C00;
STICKLINE((CO),CLOSE,OPEN,2.8,0),COLORFF7B00;
STICKLINE((CO),CLOSE,OPEN,2.2,0),COLORFF9C00;
STICKLINE((CO),CLOSE,OPEN,1.6,0),COLORFFBE00;
STICKLINE((CO),CLOSE,OPEN,1,0),COLORFFCC00;
STICKLINE((CO),CLOSE,OPEN,0.3,0),COLORFFFF00;
STICKLINE((CO),CLOSE,OPEN,4,0),COLOR070084;
STICKLINE((CO),CLOSE,OPEN,3.4,0),COLOR0000A3;
STICKLINE((CO),CLOSE,OPEN,2.8,0),COLOR0000B7;
STICKLINE((CO),CLOSE,OPEN,2.2,0),COLOR0000CD;
STICKLINE((CO),CLOSE,OPEN,1.6,0),COLOR0000E9;
STICKLINE((CO),CLOSE,OPEN,1,0),COLOR0754E9;
STICKLINE((CO),CLOSE,OPEN,0.5,0),COLOR076EF3;
STICKLINE((CO),CLOSE,OPEN,0.2,0),COLOR077BF3;
VAR2A:=((CLOSEREF(CLOSE,1))AND(CLOSEREF(CLOSE,2)));
VAR3A:=((REF(VAR2A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR4A:=((REF(VAR3A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR5A:=((REF(VAR4A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR6A:=((REF(VAR5A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR7A:=((REF(VAR6A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR8A:=((REF(VAR7A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR9A:=((REF(VAR8A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VARAA:=((REF(VAR9A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VARBA:=((REF(VARAA,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VARCA:=((REF(VARBA,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VARDA:=((REF(VARCA,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAREAA:=((CLOSEREF(CLOSE,1))AND(CLOSEREF(CLOSE,2)));
VARFA:=((REF(VAREAA,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR10A:=((REF(VARFA,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR11A:=((REF(VAR10A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR12A:=((REF(VAR11A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR13A:=((REF(VAR12A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR14A:=((REF(VAR13A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR15A:=((REF(VAR14A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR16A:=((REF(VAR15A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR17A:=((REF(VAR16A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR18A:=((REF(VAR17A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR19A:=((REF(VAR18A,1)AND(CLOSE=REF(CLOSE,1)))AND(CLOSE=REF(CLOSE,2)));
VAR1A:=(REF((((((((((((VAREAAORVARFA)ORVAR10A)ORVAR11A)ORVAR12A)OR
VAR13A)ORVAR14A)ORVAR15A)ORVAR16A)ORVAR17A)ORVAR18A)ORVAR19A),1)ANDVAR2A);
STICKLINE(VAR1A,O,O+(C-O)/3,4,0),COLOR1029FF;
STICKLINE(VAR1A,O,O+(C-O)/3,3.4,0),COLOR1040FF;
STICKLINE(VAR1A,O,O+(C-O)/3,2.8,0),COLOR1083FF;
STICKLINE(VAR1A,O,O+(C-O)/3,2.2,0),COLOR10ABFF;
STICKLINE(VAR1A,O,O+(C-O)/3,1.6,0),COLOR10D0FF;
STICKLINE(VAR1A,O,O+(C-O)/3,1,0),COLOR10FFFF;
STICKLINE(VAR1A,O,O+(C-O)/3,0.3,0),COLOR00FFFF;
AA:=(REF((((((((((((VAR2AORVAR3A)ORVAR4A)ORVAR5A)ORVAR6A)ORVAR7A)OR
VAR8A)ORVAR9A)ORVARAA)ORVARBA)ORVARCA)ORVARDA),1)ANDVAREAA);
STICKLINE(AA,O,O+(C-O)/3,4.3,0),COLOR009900;
STICKLINE(AA,O,O+(C-O)/3,3.2,0),COLOR00AA00;
STICKLINE(AA,O,O+(C-O)/3,2.4,0),COLOR00BB00;
STICKLINE(AA,O,O+(C-O)/3,1.7,0),COLOR00CC00;
STICKLINE(AA,O,O+(C-O)/3,1.1,0),COLOR00DD00;
STICKLINE(AA,O,O+(C-O)/3,0.5,0),COLOR00EE00;
STICKLINE(AA,O,O+(C-O)/3,0.2,0),COLOR00FF00;
A13:=EMA(CLOSE,55);
A14:=MA(CLOSE,75);
A15:=EMA(A14,3);
A16:=EMA(A15,3);
A17:=(HIGH+LOW)/5;
A18:=(MA(A17,4))-(MA(A17,34));
A19:=CROSS(A18,0);
A20:=CROSS(0,A18);
A21:=BARSLAST(A19);
A22:=BARSLAST(A20);
A23:=REF(A19,1);
A24:=REF(A20,1);
A25:=BARSLAST(A23);
A26:=BARSLAST(A24);
A27:=IF((A25A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));
A28:=(((REF(CLOSE,1))=(REF(A27,1)))AND(CLOSEA27))AND(A21A22);
A29:=(((REF(CLOSE,1))=(REF(A27,1)))AND(CLOSEA27))AND(A22A21);
A30:=A28AND((COUNT(A28,A21))=1);
A31:=A29AND((COUNT(A29,A22))=1);
A32:=A30AND((REF(BARSLAST(A31),1))(REF(BARSLAST(A30),1)));
A33:=A31AND((REF(BARSLAST(A31),1))(REF(BARSLAST(A30),1)));
DRAWTEXT(A32,SMA2*0.99,''锁喉''),COLORYELLOW;
AC:=AMOUNT/(VOL);
YY:=MA(AC,13);
LLL:=(C-YY)/YY*100;
MIDC:=MA(CLOSE,22);
UPPERC:=MIDC+2*STD(C,22);
LOWERC:=MIDC-2*STD(C,22);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
LIFENGCYC:=(REF(LLL,1)-15ANDREF(BBA,1)0ANDLLLREF(LLL,1));
STICKLINE(LIFENGCYC,LOW*0.93,LOW*0.95,6,0)COLORRED;
STICKLINE(LIFENGCYC0,C,O,4,0),COLORRED;
STICKLINE(LIFENGCYC0,C,O,3.4,0),COLOR1029FF;
STICKLINE(LIFENGCYC0,C,O,2.8,0),COLOR1040FF;
STICKLINE(LIFENGCYC0,C,O,2.2,0),COLOR1083FF;
STICKLINE(LIFENGCYC0,C,O,1.6,0),COLOR10ABFF;
STICKLINE(LIFENGCYC0,C,O,1,0),COLOR10D0FF;
STICKLINE(LIFENGCYC0,C,O,0.3,0),COLOR10FFFF;
DRAWTEXT(LIFENGCYC0,LOW*0.98,''$''),COLORFF00FF;
DRAWTEXT(LIFENGCYC0,LOW*0.92,''探头''),COLORFF00FF;
  


  

  STICKLINE(18,100,0,5,0),COLORBLUE;
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)REF(VAR02,1)ANDVAR02REF(VAR02,1);
VAR05:=COUNT(VAR03,7)0ANDVAR04;
VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
{_最新股票指标公式}
VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);
VAR08:=EMA(VAR07,10);
VAR09:=EMA(C,5);
VAR10:=LLV(LOW,33);
VAR11:=EMA(IF(LOW=VAR10,VAR09,0),3)*40;
VAR12:=IF(VAR11100,VAR11*0.312,VAR11);
底部爆发:VAR12,COLORWHITE;
STICKLINE(VAR120,0,VAR12,3,0),COLORWHITE;
STICKLINE(VAR120,0,VAR12,2,0),COLOR555555;
STICKLINE(VAR120,0,VAR12,1,0),COLORWHITE;
STICKLINE(VAR020,0,VAR02,5,0),COLOR3A7841;
海岸:VAR02,COLORGREEN;
浪花:VAR01,COLORCYAN;
STICKLINE(VAR05ANDCOUNT(VAR05,5)=1,0,VAR12,4,0),COLORRED;


shijiuteng 发表于 2016-10-25 17:09

那天看到,没在意,今天再来看,学习与提高一起

zyl10 发表于 2016-5-25 16:55

能给我的帖子评点分吗,谢谢了

胖子99 发表于 2016-5-25 17:20

楼主辛苦,先看看好不好用

股迷阿成 发表于 2016-5-25 16:44

:victory::handshake

股迷阿成 发表于 2016-5-25 16:53

:victory::handshake

binqing1 发表于 2016-5-25 16:54

人生大股市,股市小人生。

696y 发表于 2016-5-25 16:57

谢谢分享谢谢分享

射雕英雄郭靖 发表于 2016-5-25 16:58

谢谢分享学习

二步山 发表于 2016-5-25 17:04

谢谢分享学习

大大陆大 发表于 2016-5-25 17:17

:):)

aaa1392 发表于 2016-5-25 17:24

谢谢分享谢谢分享

seacer 发表于 2016-5-25 17:30

谢谢楼主分享

abc123abc 发表于 2016-5-25 17:30

谢谢分享、

森淼垚鑫焱 发表于 2016-5-25 17:33

向高手学习

seacer 发表于 2016-5-25 17:34


谢谢分享学习
页: [1] 2
查看完整版本: 通达信锁喉枪买卖主图指标公式