【通达信】变色赚钱通道(红持股、绿买)-指标公式源码VAR1:=1;VAR2:=REF(CLOSE-OPEN,2);VAR3:=REF(CLOSE,1);VAR4:=REF(CLOSE,2);VAR5:=REF(CLOSE,3);VAR6:=REF(CLOSE,4);VAR7:=MAX(MAX(MAX(CLOSE,VAR3),VAR4),VAR5);VAR8:=MIN(MIN(MIN(CLOSE,VAR3),VAR4),VAR5);{红持股:STICKLINE(CLOSE=VAR7AND(VAR3>=VAR4ORVAR3>=VAR5)ORVAR3=VAR7AND(VAR4=VAR8ORVAR5=VAR8)ANDCLOSE>=VAR4ORVAR4=VAR7ANDVAR5=VAR8ANDCLOSE>=VAR3ORVAR5=VAR7ANDCLOSE>=VAR3ANDCLOSE>=VAR4,VAR3,CLOSE,5,1),COLORRED;}{品红变盘:STICKLINE(CLOSE=VAR7ANDVAR3=VAR8,VAR4,CLOSE,5,1),COLORMAGENTA;}{黄下跌:STICKLINE(CLOSE=VAR8AND(VAR3<VAR4ORVAR3<VAR5)ORVAR3=VAR8AND(VAR4=VAR7ORVAR5=VAR7)ANDCLOSE<VAR4ORVAR4=VAR8ANDVAR5=VAR7ANDCLOSE<VAR3ORVAR5=VAR8ANDCLOSE<VAR3ANDCLOSE<VAR4,VAR3,CLOSE,5,0),COLORYELLOW;}{绿买:STICKLINE(VAR3=VAR7ANDCLOSE=VAR8,VAR4,CLOSE,5,0),REEN;}{STICKLINE(VAR3=VAR8ANDCLOSE>=VAR4OR(VAR4=VAR8ANDVAR3<=VAR5ORVAR5=VAR8ANDVAR3<=VAR4)ANDVAR4<VAR6ANDCLOSE>=VAR3,VAR3,VAR4,5,0),REEN;}蓝卖:STICKLINE(VAR3=VAR7ANDCLOSE<VAR4OR(VAR4=VAR7ANDVAR3>VAR5ORVAR5=VAR7ANDVAR3>VAR4)ANDVAR4>=VAR6ANDCLOSE<VAR3,VAR3,VAR4,5,1),COLORBLUE;VAR9:=SAR(5,1,5);VAR10:=EMA(CLOSE,30);VAR11:=IF(CLOSE>450,8,IF(CLOSE>=20ANDCLOSE<150,,IF(CLOSE<20ANDCLOSE>=10,,IF(CLOSE<10,,))));{变色龙:STICKLINE(CLOSE>VAR9,VAR10,VAR10+VAR11,6,0),COLORMAGENTA;}STICKLINE(CLOSE<VAR9,VAR10,VAR10-VAR11,6,0),COLORCYAN;STICKLINE(CROSS(CLOSE,VAR9),VAR10,VAR10-VAR11,6,0);STICKLINE(CROSS(VAR9,CLOSE),VAR10,VAR10+VAR11,6,0),COLORFF0066;
【股票指标公式下载】-【通达信】变色赚钱通道(红持股、绿买) 来自淘豆网m.daumloan.com转载请标明出处.