1、【通达信 】赛狮(压力、支撑)-指标公式源码VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力:= REF(HIGH,BARSLAST(VAR2222);STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)*1.0005,REF(HIGH,BARSLAST(VAR2222)*0.9995,2,0),COLOREA91B5,LIN
2、ETHICK3;支撑:= REF(LOW,BARSLAST(VAR4444);STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)*1.0005,REF(LOW,BARSLAST(VAR4444)*0.9995,2,0),COLOR00B4FF,LINETHICK3;GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L),LINETHICK0;明日支撑:=L+(C-GJ),LINETHICK0;今日阻力:REF(明日阻力 , 1),LINETHICK0;今日支撑:REF(明日支撑 , 1),LINETHICK0;STICKLINE(ISLASTB
3、AR AND C=今日阻力,今日阻力*1.001,今日阻力*0.999,10,0),LINETHICK2,COLOR0000FF;STICKLINE(ISLASTBAR AND C=今日支撑,今日支撑*1.001,今日支撑*0.999,10,0),LINETHICK2,COLORFF00FF;STICKLINE(ISLASTBAR AND C=参考价,参考价,参考价*0.98 ), CIRCLEDOT,COLOR0000FF;AA:=IF(C=REF(C,3),1,0);BB:=IF(C=REF(C,5),1,0);CC:=IF(C=REF(C,7),1,0);DD:=IF(C=REF(C,8
4、),1,0);EE:=IF(C=REF(C,13),1,0);FF:=IF(C=REF(C,21),1,0);GZ2:=AA+BB+CC+DD+EE+FF;KK:=0;KK1:=KK+REF(GZ2,1)+REF(GZ2,2)+REF(GZ2,3)+REF(GZ2,4);KKK:=KK1/4;DRAWICON(KKK=6 AND GZ20 AND CREF(C,1),L*0.99,1);VARA:=(AMOUNT)/(VOL)/(100);VARB:=(3)*(HIGH)+LOW+OPEN+(2)*(CLOSE)/(7);VARC:=(SUM(AMOUNT,7)/(VARA)/(100);VA
5、RD:=DMA(VARB,(VOL)/(VARC);VARE:=(CLOSE-VARD)/(VARD)*(100);VARF:=(CLOSE-LLV(LOW,34)/(HHV(HIGH,34)-LLV(LOW,34)*(100);VARJ:=MA(VARE,20)+STD(VARE,20);BIAS18:=(CLOSE-MA(CLOSE,18)/(MA(CLOSE,18)*(100);AA1:=SMA(VARF,3,1);SS:=(REF(BIAS18,1)=5) AND CROSS(VARJ,VARE) AND (AA179);DRAWICON(REF(BIAS18,1)=5) AND CROSS(VARJ,VARE) AND (AASS),H*1.02,2),LINETHICK7,COLORGREEN;【通达信 】赛狮(压力、支撑)-指标公式效果图(文档来源:若水财经社区)