九毛八公式指标
AL:=(C+L+H)/3; AO:=SMA(AL,5,1)-SMA(AL,13,1); BBD:(AO-SMA(AO, 3,1))*100,COLORFFCCFF,NODRAW; {动能线定义} 动能线:AO*10,COLORRED; 动能辅线:EMA(AO,5)*10,COLOR00FF00; {动能线强弱分界带} DRAWBAND(动能辅线,RGB(115,95,95),0,RGB(95,95,115)); {动能彩带} DRAWBAND(动能线,RGB(175,0,55),动能辅线,RGB(55,175,0)); {BBD支撑线定义} BBD支撑线:SMA(BBD,5,2),COLOR0033FF,LINETHICK2; RSV1:=BBD; RSV2:=BBD支撑线; 弱:IF(RSV2=REF(BBD,1),BBD,DRAWNULL); BBD2:=IF(BBDCLOSE AND RSV1>REF(RSV1,SV1+1) AND CROSS(RSV1,RSV2); B底背:IF(SV1A,RSV2,DRAWNULL),COLOR3366FF; DRAWTEXT(SV1A,RSV2,'─B底背'),COLOR0033FF; SV2:=BARSLAST(REF(CROSS(RSV2,RSV1),1)); SV2A:=REF(CLOSE,SV2+1)
公式模块:
AL:=(C+L+H)/3;
ao:=SMA(AL,5,1)-SMA(AL,13,1); bbd:=(AO-SMA(AO, 3,1))*100; BBD支撑线:=SMA(BBD,5,2); crOSS(BBD,BBD支撑线);