通达信波段擒牛筹码主图 成本突破 指标源码
CTA1:=REF(C,1);
CTA2:=IF(CODELIKE('68'),1,0);
CTA3:=IF(CODELIKE('83'),1,0)+IF(CODELIKE('87'),1,0);
CTA4:=IF(CODELIKE('30'),1,0)*IF(DATETODAY(DATE)-DATETODAY(1200824)>=0,1,0);
CTA5:=IF(BARSLAST((C=H AND C=ZTPRICE(CTA1,0.05)) OR (C=L AND C=DTPRICE(CTA1,0.05)))<BARSLAST(H>ZTPRICE(CTA1,0.05) OR L<DTPRICE(CTA1,0.05)),1,0);
CTA6:=IF(CTA3>0,ZTPRICE(CTA1,0.30),0);
CTA7:=IF(CTA2>0 OR CTA4>0,ZTPRICE(CTA1,0.20),0);
CTA8:=IF(CTA5>0 AND (CTA7=0 OR CTA7=DRAWNULL),ZTPRICE(CTA1,0.05),0);
CTA9:=IF((CTA6=0 OR CTA6=DRAWNULL) AND (CTA7=0 OR CTA7=DRAWNULL) AND (CTA8=0 OR CTA8=DRAWNULL),ZTPRICE(CTA1,0.10),0);
CTA10:=MAX(MAX(MAX(IF(CTA8=DRAWNULL,0,CTA8),IF(CTA9=DRAWNULL,0,CTA9)),IF(CTA7=DRAWNULL,0,CTA7)),IF(CTA6=DRAWNULL,0,CTA6));
CTA11:=AMA((C*3+O+H+L)/6,0.5);
CTA12:=EMA(CTA11,5);
CTA13:=EMA(EMA(CTA12,15),2);
CTA14:=EMA(MAX(EMA(CTA12,45),EMA(CTA12,50)),5);
CTA15:=EMA(MAX(MAX(EMA(CTA11,100),EMA(CTA11,150)),EMA(CTA11,200)),10);
CTA16:=COST(99.5);
CTA17:=COST(00.5);
CTA18:=1;
CTA19:=CTA16-CTA17;
CTA20:=IF(C<=H AND H=CTA10,1,0);
CTA21:=(COST(02)-COST(01))/CTA19;
CTA22:=(COST(04)-COST(02))/CTA19;
CTA23:=(COST(06)-COST(04))/CTA19;
CTA24:=(COST(08)-COST(06))/CTA19;
CTA25:=(COST(10)-COST(08))/CTA19;
CTA26:=(COST(12)-COST(10))/CTA19;
CTA27:=(COST(14)-COST(12))/CTA19;
CTA28:=(COST(16)-COST(14))/CTA19;
CTA29:=(COST(18)-COST(16))/CTA19;
CTA30:=(COST(20)-COST(18))/CTA19;
CTA31:=(COST(22)-COST(20))/CTA19;
CTA32:=(COST(24)-COST(22))/CTA19;
CTA33:=(COST(26)-COST(24))/CTA19;
CTA34:=(COST(28)-COST(26))/CTA19;
CTA35:=(COST(30)-COST(28))/CTA19;
CTA36:=(COST(32)-COST(30))/CTA19;
CTA37:=(COST(34)-COST(32))/CTA19;
CTA38:=(COST(36)-COST(34))/CTA19;
CTA39:=(COST(38)-COST(36))/CTA19;
CTA40:=(COST(40)-COST(38))/CTA19;
CTA41:=(COST(42)-COST(40))/CTA19;
CTA42:=(COST(44)-COST(42))/CTA19;
CTA43:=(COST(46)-COST(44))/CTA19;
CTA44:=(COST(48)-COST(46))/CTA19;
CTA45:=(COST(50)-COST(48))/CTA19;
CTA46:=(COST(52)-COST(50))/CTA19;
CTA47:=(COST(54)-COST(52))/CTA19;
CTA48:=(COST(56)-COST(54))/CTA19;
CTA49:=(COST(58)-COST(56))/CTA19;
CTA50:=(COST(60)-COST(58))/CTA19;
CTA51:=(COST(62)-COST(60))/CTA19;
CTA52:=(COST(64)-COST(62))/CTA19;
CTA53:=(COST(66)-COST(64))/CTA19;
CTA54:=(COST(68)-COST(66))/CTA19;
CTA55:=(COST(70)-COST(68))/CTA19;
CTA56:=(COST(72)-COST(70))/CTA19;
CTA57:=(COST(74)-COST(72))/CTA19;
CTA58:=(COST(76)-COST(74))/CTA19;
CTA59:=(COST(78)-COST(76))/CTA19;
CTA60:=(COST(80)-COST(78))/CTA19;
CTA61:=(COST(82)-COST(80))/CTA19;
CTA62:=(COST(84)-COST(82))/CTA19;
CTA63:=(COST(86)-COST(84))/CTA19;
CTA64:=(COST(88)-COST(86))/CTA19;
CTA65:=(COST(90)-COST(88))/CTA19;
CTA66:=(COST(92)-COST(90))/CTA19;
CTA67:=(COST(94)-COST(92))/CTA19;
CTA68:=(COST(96)-COST(94))/CTA19;
CTA69:=(COST(98)-COST(96))/CTA19;
CTA75:=(COST(99)-COST(98))/CTA19;
CTA76:=H/REF(C,1)>=1.06;
DRAWGBK(H>=L,RGB(0,0,15),RGB(0,0,15),0,0,0);
DRAWBAND(CTA16,RGB(0,0,20),CTA17,RGB(0,0,0));
DRAWBAND(COST(99),RGB(3,0,22),COST(01),RGB(0,0,0));
DRAWBAND(COST(98),RGB(6,0,24),COST(02),RGB(0,0,0));
DRAWBAND(COST(96),RGB(9,0,26),COST(04),RGB(0,0,0));
DRAWBAND(COST(94),RGB(12,0,28),COST(06),RGB(0,0,0));
DRAWBAND(COST(92),RGB(15,0,30),COST(08),RGB(0,0,0));
DRAWBAND(IF(CTA18,CTA11,DRAWNULL),RGB(35,25,25),CTA15,RGB(25,35,25));
DRAWBAND(IF(CTA18,CTA11,DRAWNULL),RGB(65,25,25),CTA14,RGB(25,65,25));
STICKLINE(H>=L,CTA16,CTA17,0,0),COLOR300000;
NOTEXTC01:PARTLINE(COST(01),IF(BETWEEN(CTA21,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA21,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA21,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA21,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC02:PARTLINE(COST(02),IF(BETWEEN(CTA22,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA22,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA22,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA22,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC03:PARTLINE(COST(04),IF(BETWEEN(CTA23,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA23,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA23,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA23,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC04:PARTLINE(COST(06),IF(BETWEEN(CTA24,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA24,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA24,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA24,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC05:PARTLINE(COST(08),IF(BETWEEN(CTA25,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA25,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA25,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA25,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC06:PARTLINE(COST(10),IF(BETWEEN(CTA26,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA26,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA26,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA26,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC07:PARTLINE(COST(12),IF(BETWEEN(CTA27,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA27,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA27,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA27,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC08:PARTLINE(COST(14),IF(BETWEEN(CTA28,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA28,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA28,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA28,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC09:PARTLINE(COST(16),IF(BETWEEN(CTA29,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA29,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA29,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA29,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC10:PARTLINE(COST(18),IF(BETWEEN(CTA30,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA30,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA30,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA30,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC11:PARTLINE(COST(20),IF(BETWEEN(CTA31,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA31,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA31,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA31,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC12:PARTLINE(COST(22),IF(BETWEEN(CTA32,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA32,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA32,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA32,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC13:PARTLINE(COST(24),IF(BETWEEN(CTA33,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA33,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA33,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA33,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC14:PARTLINE(COST(26),IF(BETWEEN(CTA34,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA34,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA34,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA34,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC15:PARTLINE(COST(28),IF(BETWEEN(CTA35,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA35,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA35,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA35,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC16:PARTLINE(COST(30),IF(BETWEEN(CTA36,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA36,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA36,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA36,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC17:PARTLINE(COST(32),IF(BETWEEN(CTA37,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA37,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA37,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA37,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC18:PARTLINE(COST(34),IF(BETWEEN(CTA38,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA38,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA38,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA38,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC19:PARTLINE(COST(36),IF(BETWEEN(CTA39,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA39,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA39,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA39,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC20:PARTLINE(COST(38),IF(BETWEEN(CTA40,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA40,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA40,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA40,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC21:PARTLINE(COST(40),IF(BETWEEN(CTA41,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA41,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA41,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA41,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC22:PARTLINE(COST(42),IF(BETWEEN(CTA42,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA42,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA42,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA42,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC23:PARTLINE(COST(44),IF(BETWEEN(CTA43,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA43,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA43,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA43,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC24:PARTLINE(COST(46),IF(BETWEEN(CTA44,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA44,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA44,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA44,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC25:PARTLINE(COST(48),IF(BETWEEN(CTA45,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA45,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA45,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA45,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC26:PARTLINE(COST(50),IF(BETWEEN(CTA46,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA46,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA46,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA46,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC27:PARTLINE(COST(52),IF(BETWEEN(CTA47,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA47,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA47,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA47,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC28:PARTLINE(COST(54),IF(BETWEEN(CTA48,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA48,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA48,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA48,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC29:PARTLINE(COST(56),IF(BETWEEN(CTA49,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA49,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA49,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA49,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC30:PARTLINE(COST(58),IF(BETWEEN(CTA50,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA50,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA50,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA50,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC31:PARTLINE(COST(60),IF(BETWEEN(CTA51,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA51,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA51,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA51,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC32:PARTLINE(COST(62),IF(BETWEEN(CTA52,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA52,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA52,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA52,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC33:PARTLINE(COST(64),IF(BETWEEN(CTA53,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA53,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA53,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA53,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC34:PARTLINE(COST(66),IF(BETWEEN(CTA54,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA54,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA54,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA54,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC35:PARTLINE(COST(68),IF(BETWEEN(CTA55,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA55,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA55,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA55,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC36:PARTLINE(COST(70),IF(BETWEEN(CTA56,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA56,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA56,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA56,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC37:PARTLINE(COST(72),IF(BETWEEN(CTA57,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA57,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA57,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA57,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC38:PARTLINE(COST(74),IF(BETWEEN(CTA58,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA58,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA58,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA58,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC39:PARTLINE(COST(76),IF(BETWEEN(CTA59,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA59,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA59,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA59,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC40:PARTLINE(COST(78),IF(BETWEEN(CTA60,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA60,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA60,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA60,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC41:PARTLINE(COST(80),IF(BETWEEN(CTA61,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA61,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA61,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA61,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC42:PARTLINE(COST(82),IF(BETWEEN(CTA62,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA62,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA62,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA62,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC43:PARTLINE(COST(84),IF(BETWEEN(CTA63,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA63,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA63,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA63,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC44:PARTLINE(COST(86),IF(BETWEEN(CTA64,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA64,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA64,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA64,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC45:PARTLINE(COST(88),IF(BETWEEN(CTA65,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA65,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA65,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA65,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC46:PARTLINE(COST(90),IF(BETWEEN(CTA66,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA66,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA66,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA66,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC47:PARTLINE(COST(92),IF(BETWEEN(CTA67,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA67,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA67,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA67,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC48:PARTLINE(COST(94),IF(BETWEEN(CTA68,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA68,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA68,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA68,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC49:PARTLINE(COST(96),IF(BETWEEN(CTA69,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA69,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA69,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA69,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
NOTEXTC50:PARTLINE(COST(98),IF(BETWEEN(CTA75,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA75,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA75,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA75,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1;
STICKLINE(CTA11>=CTA15 AND CTA18,CTA11,CTA15,0,0),COLOR2C2C3C;
STICKLINE(CTA11<=CTA15 AND CTA18,CTA11,CTA15,0,0),COLOR2C3C2C;
STICKLINE(CTA11>=CTA14 AND CTA18,CTA11,CTA14,0,0),COLOR2C2C6C;
STICKLINE(CTA11<=CTA14 AND CTA18,CTA11,CTA14,0,0),COLOR2C6C2C;
DRAWBAND(IF(CTA18,CTA11,DRAWNULL),RGB(100,10,10),CTA13,RGB(10,80,10));
NOTEXTA3:IF(CTA18,CTA15,DRAWNULL),LINETHICK4,COLOR303040;
NOTEXTA3K:IF(CTA15>CTA11 AND CTA18,CTA15,DRAWNULL),LINETHICK4,COLOR304030;
NOTEXTA2:IF(CTA18,CTA14,DRAWNULL),LINETHICK4,COLOR3C3C6C;
NOTEXTA2K:IF(CTA14>CTA11 AND CTA18,CTA14,DRAWNULL),LINETHICK4,COLOR3C6C3C;
STICKLINE(CTA18 AND CTA11>CTA13,CTA11,CTA13,0.5,0),COLOR0A0A64;
STICKLINE(CTA18 AND CTA11<CTA13,CTA11,CTA13,0.5,0),COLOR0A500A;
NOTEXTA1:IF(CTA18,CTA13,DRAWNULL),LINETHICK4,COLOR2C2CAC;
NOTEXTA1K:IF(CTA13>CTA11 AND CTA18,CTA13,DRAWNULL),LINETHICK4,COLOR2CAC2C;
STICKLINE(H>=L,H,L,0,0),COLOR989898;
STICKLINE(C<=O,C,O,2,0),COLOR989898;
STICKLINE(C>=O,C,O,2,1),COLOR989898;
STICKLINE(CTA76 AND C<O,H,L,0,0),COLOR00DF00;
STICKLINE(CTA76 AND C<O,C,O,2,0),COLOR00DF00;
STICKLINE(CTA76 AND C=O,H,L,0,0),COLORDFDFDF;
STICKLINE(CTA76 AND C=O,C,O,2,0),COLORDFDFDF;
STICKLINE(CTA76 AND C>O,H,L,0,0),COLOR0000FF;
STICKLINE(CTA76 AND C>O,C,O,2,1),COLOR0000FF;
STICKLINE(CTA20=1,H,L,0,0),COLOR00FFFF;
STICKLINE(CTA20=1 AND C<=O,C,O,2,0),COLOR00FFFF;
STICKLINE(CTA20=1 AND C>=O,C,O,2,1),COLOR00FFFF;
未来函数检测结果如下:
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
CTA1赋值:1日前的C
CTA2赋值:IF(CODELIKE('68'),1,0)
CTA3赋值:IF(CODELIKE('83'),1,0)+IF(CODELIKE('87'),1,0)
CTA4赋值:IF(CODELIKE('30'),1,0)*IF(DATETODAY(DATE)-DATETODAY(1200824)>=0,1,0)
CTA5赋值:IF(上次(C=H AND C=ZTPRICE(CTA1,0.05距今天数) OR (C=L AND C=DTPRICE(CTA1,0.05)))ZTPRICE(CTA1,0.05) OR L
CTA6赋值:IF(CTA3>0,ZTPRICE(CTA1,0.30),0)
CTA7赋值:IF(CTA2>0 OR CTA4>0,ZTPRICE(CTA1,0.20),0)
CTA8赋值:IF(CTA5>0 AND (CTA7=0 OR CTA7=DRAWNULL),ZTPRICE(CTA1,0.05),0)
CTA9赋值:IF((CTA6=0 OR CTA6=DRAWNULL) AND (CTA7=0 OR CTA7=DRAWNULL) AND (CTA8=0 OR CTA8=DRAWNULL),ZTPRICE(CTA1,0.10),0)
如果CTA8=DRAWNULL返回0否则返回CTA8
CTA11:=AMA((C*3+O+H+L)/6,0.5)
CTA12:=CTA11的5日指数移动平均
CTA13:=CTA12的15日指数移动平均,2)
CTA14:=EMA(MAX(EMA(CTA12,45),EMA(CTA12,50)),5)
CTA15:=EMA(MAX(MAX(EMA(CTA11,100),EMA(CTA11,150)),EMA(CTA11,200)),10)
CTA16:=获利盘为99.5%的成本分布
CTA17:=获利盘为00.5%的成本分布
CTA18:=1
CTA19:=CTA16-CTA17
如果C<=H AND H=CTA10返回1否则返回0
CTA21:=(获利盘为02%的成本分布-COST(01))/CTA19
CTA22:=(获利盘为04%的成本分布-COST(02))/CTA19
CTA23:=(获利盘为06%的成本分布-COST(04))/CTA19
CTA24:=(获利盘为08%的成本分布-COST(06))/CTA19
CTA25:=(获利盘为10%的成本分布-COST(08))/CTA19
CTA26:=(获利盘为12%的成本分布-COST(10))/CTA19
CTA27:=(获利盘为14%的成本分布-COST(12))/CTA19
CTA28:=(获利盘为16%的成本分布-COST(14))/CTA19
CTA29:=(获利盘为18%的成本分布-COST(16))/CTA19
CTA30:=(获利盘为20%的成本分布-COST(18))/CTA19
CTA31:=(获利盘为22%的成本分布-COST(20))/CTA19
CTA32:=(获利盘为24%的成本分布-COST(22))/CTA19
CTA33:=(获利盘为26%的成本分布-COST(24))/CTA19
CTA34:=(获利盘为28%的成本分布-COST(26))/CTA19
CTA35:=(获利盘为30%的成本分布-COST(28))/CTA19
CTA36:=(获利盘为32%的成本分布-COST(30))/CTA19
CTA37:=(获利盘为34%的成本分布-COST(32))/CTA19
CTA38:=(获利盘为36%的成本分布-COST(34))/CTA19
CTA39:=(获利盘为38%的成本分布-COST(36))/CTA19
CTA40:=(获利盘为40%的成本分布-COST(38))/CTA19
CTA41:=(获利盘为42%的成本分布-COST(40))/CTA19
CTA42:=(获利盘为44%的成本分布-COST(42))/CTA19
CTA43:=(获利盘为46%的成本分布-COST(44))/CTA19
CTA44:=(获利盘为48%的成本分布-COST(46))/CTA19
CTA45:=(获利盘为50%的成本分布-COST(48))/CTA19
CTA46:=(获利盘为52%的成本分布-COST(50))/CTA19
CTA47:=(获利盘为54%的成本分布-COST(52))/CTA19
CTA48:=(获利盘为56%的成本分布-COST(54))/CTA19
CTA49:=(获利盘为58%的成本分布-COST(56))/CTA19
CTA50:=(获利盘为60%的成本分布-COST(58))/CTA19
CTA51:=(获利盘为62%的成本分布-COST(60))/CTA19
CTA52:=(获利盘为64%的成本分布-COST(62))/CTA19
CTA53:=(获利盘为66%的成本分布-COST(64))/CTA19
CTA54:=(获利盘为68%的成本分布-COST(66))/CTA19
CTA55:=(获利盘为70%的成本分布-COST(68))/CTA19
CTA56:=(获利盘为72%的成本分布-COST(70))/CTA19
CTA57:=(获利盘为74%的成本分布-COST(72))/CTA19
CTA58:=(获利盘为76%的成本分布-COST(74))/CTA19
CTA59:=(获利盘为78%的成本分布-COST(76))/CTA19
CTA60:=(获利盘为80%的成本分布-COST(78))/CTA19
CTA61:=(获利盘为82%的成本分布-COST(80))/CTA19
CTA62:=(获利盘为84%的成本分布-COST(82))/CTA19
CTA63:=(获利盘为86%的成本分布-COST(84))/CTA19
CTA64:=(获利盘为88%的成本分布-COST(86))/CTA19
CTA65:=(获利盘为90%的成本分布-COST(88))/CTA19
CTA66:=(获利盘为92%的成本分布-COST(90))/CTA19
CTA67:=(获利盘为94%的成本分布-COST(92))/CTA19
CTA68:=(获利盘为96%的成本分布-COST(94))/CTA19
CTA69:=(获利盘为98%的成本分布-COST(96))/CTA19
CTA75:=(获利盘为99%的成本分布-COST(98))/CTA19
CTA76:=H/1日前的C>=1.06
填充背景(H>=L,RGB(0,0,15),RGB(0,0,15),0,0,0)
DRAWBAND(CTA16,RGB(0,0,20),CTA17,RGB(0,0,0))
DRAWBAND(获利盘为99%的成本分布,RGB(3,0,22),COST(01),RGB(0,0,0))
DRAWBAND(获利盘为98%的成本分布,RGB(6,0,24),COST(02),RGB(0,0,0))
DRAWBAND(获利盘为96%的成本分布,RGB(9,0,26),COST(04),RGB(0,0,0))
DRAWBAND(获利盘为94%的成本分布,RGB(12,0,28),COST(06),RGB(0,0,0))
DRAWBAND(获利盘为92%的成本分布,RGB(15,0,30),COST(08),RGB(0,0,0))
如果CTA18返回CTA11否则返回DRAWNULL
如果CTA18返回CTA11否则返回DRAWNULL
当满足条件H>=L时,在CTA16和CTA17之间画柱状线
输出NOTEXTC01:PARTLINE(获利盘为01%的成本分布,IF(BETWEEN(CTA21,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA21,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA21,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA21,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC02:PARTLINE(获利盘为02%的成本分布,IF(BETWEEN(CTA22,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA22,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA22,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA22,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC03:PARTLINE(获利盘为04%的成本分布,IF(BETWEEN(CTA23,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA23,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA23,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA23,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC04:PARTLINE(获利盘为06%的成本分布,IF(BETWEEN(CTA24,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA24,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA24,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA24,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC05:PARTLINE(获利盘为08%的成本分布,IF(BETWEEN(CTA25,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA25,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA25,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA25,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC06:PARTLINE(获利盘为10%的成本分布,IF(BETWEEN(CTA26,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA26,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA26,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA26,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC07:PARTLINE(获利盘为12%的成本分布,IF(BETWEEN(CTA27,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA27,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA27,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA27,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC08:PARTLINE(获利盘为14%的成本分布,IF(BETWEEN(CTA28,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA28,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA28,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA28,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC09:PARTLINE(获利盘为16%的成本分布,IF(BETWEEN(CTA29,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA29,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA29,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA29,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC10:PARTLINE(获利盘为18%的成本分布,IF(BETWEEN(CTA30,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA30,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA30,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA30,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC11:PARTLINE(获利盘为20%的成本分布,IF(BETWEEN(CTA31,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA31,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA31,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA31,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC12:PARTLINE(获利盘为22%的成本分布,IF(BETWEEN(CTA32,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA32,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA32,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA32,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC13:PARTLINE(获利盘为24%的成本分布,IF(BETWEEN(CTA33,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA33,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA33,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA33,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC14:PARTLINE(获利盘为26%的成本分布,IF(BETWEEN(CTA34,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA34,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA34,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA34,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC15:PARTLINE(获利盘为28%的成本分布,IF(BETWEEN(CTA35,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA35,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA35,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA35,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC16:PARTLINE(获利盘为30%的成本分布,IF(BETWEEN(CTA36,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA36,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA36,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA36,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC17:PARTLINE(获利盘为32%的成本分布,IF(BETWEEN(CTA37,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA37,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA37,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA37,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC18:PARTLINE(获利盘为34%的成本分布,IF(BETWEEN(CTA38,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA38,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA38,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA38,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC19:PARTLINE(获利盘为36%的成本分布,IF(BETWEEN(CTA39,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA39,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA39,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA39,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC20:PARTLINE(获利盘为38%的成本分布,IF(BETWEEN(CTA40,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA40,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA40,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA40,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC21:PARTLINE(获利盘为40%的成本分布,IF(BETWEEN(CTA41,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA41,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA41,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA41,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC22:PARTLINE(获利盘为42%的成本分布,IF(BETWEEN(CTA42,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA42,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA42,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA42,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC23:PARTLINE(获利盘为44%的成本分布,IF(BETWEEN(CTA43,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA43,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA43,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA43,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC24:PARTLINE(获利盘为46%的成本分布,IF(BETWEEN(CTA44,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA44,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA44,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA44,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC25:PARTLINE(获利盘为48%的成本分布,IF(BETWEEN(CTA45,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA45,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA45,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA45,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC26:PARTLINE(获利盘为50%的成本分布,IF(BETWEEN(CTA46,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA46,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA46,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA46,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC27:PARTLINE(获利盘为52%的成本分布,IF(BETWEEN(CTA47,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA47,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA47,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA47,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC28:PARTLINE(获利盘为54%的成本分布,IF(BETWEEN(CTA48,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA48,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA48,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA48,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC29:PARTLINE(获利盘为56%的成本分布,IF(BETWEEN(CTA49,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA49,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA49,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA49,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC30:PARTLINE(获利盘为58%的成本分布,IF(BETWEEN(CTA50,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA50,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA50,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA50,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC31:PARTLINE(获利盘为60%的成本分布,IF(BETWEEN(CTA51,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA51,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA51,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA51,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC32:PARTLINE(获利盘为62%的成本分布,IF(BETWEEN(CTA52,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA52,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA52,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA52,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC33:PARTLINE(获利盘为64%的成本分布,IF(BETWEEN(CTA53,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA53,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA53,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA53,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC34:PARTLINE(获利盘为66%的成本分布,IF(BETWEEN(CTA54,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA54,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA54,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA54,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC35:PARTLINE(获利盘为68%的成本分布,IF(BETWEEN(CTA55,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA55,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA55,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA55,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC36:PARTLINE(获利盘为70%的成本分布,IF(BETWEEN(CTA56,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA56,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA56,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA56,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC37:PARTLINE(获利盘为72%的成本分布,IF(BETWEEN(CTA57,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA57,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA57,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA57,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC38:PARTLINE(获利盘为74%的成本分布,IF(BETWEEN(CTA58,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA58,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA58,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA58,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC39:PARTLINE(获利盘为76%的成本分布,IF(BETWEEN(CTA59,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA59,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA59,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA59,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC40:PARTLINE(获利盘为78%的成本分布,IF(BETWEEN(CTA60,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA60,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA60,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA60,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC41:PARTLINE(获利盘为80%的成本分布,IF(BETWEEN(CTA61,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA61,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA61,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA61,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC42:PARTLINE(获利盘为82%的成本分布,IF(BETWEEN(CTA62,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA62,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA62,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA62,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC43:PARTLINE(获利盘为84%的成本分布,IF(BETWEEN(CTA63,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA63,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA63,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA63,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC44:PARTLINE(获利盘为86%的成本分布,IF(BETWEEN(CTA64,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA64,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA64,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA64,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC45:PARTLINE(获利盘为88%的成本分布,IF(BETWEEN(CTA65,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA65,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA65,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA65,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC46:PARTLINE(获利盘为90%的成本分布,IF(BETWEEN(CTA66,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA66,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA66,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA66,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC47:PARTLINE(获利盘为92%的成本分布,IF(BETWEEN(CTA67,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA67,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA67,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA67,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC48:PARTLINE(获利盘为94%的成本分布,IF(BETWEEN(CTA68,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA68,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA68,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA68,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC49:PARTLINE(获利盘为96%的成本分布,IF(BETWEEN(CTA69,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA69,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA69,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA69,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
输出NOTEXTC50:PARTLINE(获利盘为98%的成本分布,IF(BETWEEN(CTA75,1.0000,0.0250),RGB(20,0,40),IF(BETWEEN(CTA75,0.0250,0.0150),RGB(35,0,45),IF(BETWEEN(CTA75,0.0150,0.0100),RGB(50,0,50),IF(BETWEEN(CTA75,0.0100,0.0080),RGB(65,0,55),RGB(80,0,60))))),0),LINETHICK1
当满足条件CTA11>=CTA15 AND CTA18时,在CTA11和CTA15之间画柱状线
当满足条件CTA11<=CTA15 AND CTA18时,在CTA11和CTA15之间画柱状线
当满足条件CTA11>=CTA14 AND CTA18时,在CTA11和CTA14之间画柱状线
当满足条件CTA11<=CTA14 AND CTA18时,在CTA11和CTA14之间画柱状线
如果CTA18返回CTA11否则返回DRAWNULL
如果CTA18返回CTA15否则返回DRAWNULL
如果CTA15>CTA11 AND CTA18返回CTA15否则返回DRAWNULL
如果CTA18返回CTA14否则返回DRAWNULL
如果CTA14>CTA11 AND CTA18返回CTA14否则返回DRAWNULL
当满足条件CTA18 AND CTA11>CTA13时,在CTA11和CTA13之间画柱状线
当满足条件CTA18 AND CTA11如果CTA18返回CTA13否则返回DRAWNULL
如果CTA13>CTA11 AND CTA18返回CTA13否则返回DRAWNULL
当满足条件H>=L时,在H和L之间画柱状线
当满足条件C<=O时,在C和O之间画柱状线
当满足条件C>=O时,在C和O之间画柱状线
当满足条件CTA76 AND C当满足条件CTA76 AND C当满足条件CTA76 AND C=O时,在H和L之间画柱状线
当满足条件CTA76 AND C=O时,在C和O之间画柱状线
当满足条件CTA76 AND C>O时,在H和L之间画柱状线
当满足条件CTA76 AND C>O时,在C和O之间画柱状线
当满足条件CTA20=1时,在H和L之间画柱状线
当满足条件CTA20=1 AND C<=O时,在C和O之间画柱状线
当满足条件CTA20=1 AND C>=O时,在C和O之间画柱状线