N:=30;M:=0;
强压力:IF(SUM(C*vol,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/1000))),IF(C*(1+(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1+(N/1000)))),color00ff00,LINETHICK2,layer1;
压力线:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/2000))),IF(C*(1+(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1+(N/2000)))),color00ff00,LINETHICK1,layer1;
{ _大智慧股票指标公式}
平衡线:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,SUM(C*VOL,M)/SUM(VOL,M),C),color00ffff,LINETHICK0;
支撑线:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/2000))),IF(C*(1-(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1-(N/2000)))),colorff00ff,LINETHICK1,layer1;
强支撑:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/1000))),IF(C*(1-(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1-(N/1000)))),colorff00ff,LINETHICK2,layer1;
PARTLINE(CLOSE,CLOSE>支撑线 AND CLOSE<压力线,RGB(255,255,255),CLOSE>=压力线 AND CLOSE<强压力,RGB(255,0,255),CLOSE>=强压力,RGB(255,0,0),CLOSE<=支撑线 AND CLOSE>强支撑,RGB(0,255,255),CLOSE<=强支撑,RGB(0,255,0)),linethick2,LAYER0;