【變色模板所用得量個指標】 一,五線變色指標公式 MA5:MA(CLOSE,5),DOTLINE; IF(MA5>=REF(MA5,1),MA5,DRAWNULL),LINETHICK3,COLORWHITE; MA10:MA(CLOSE,10),DOTLINE; IF(MA10>=REF(MA10,1),MA10,DRAWNULL),LINETHICK2,COLORFFFF00; MA20:MA(CLOSE,20),DOTLINE; IF(MA20>=REF(MA20,1),MA20,DRAWNULL),LINETHICK2,COLORMAGENTA; MA40:MA(CLOSE,40),DOTLINE; IF(MA40>=REF(MA40,1),MA40,DRAWNULL),LINETHICK2,COLORBLUE; MA60:MA(CLOSE,60),DOTLINE; IF(MA60>=REF(MA60,1),MA60,DRAWNULL),LINETHICK2,COLORRED; DRAWTEXT_FIX(C>O,0.05,0.05,0,' 菲爾泰勒金融工作室'),COLORRED; 二ASI改良指標 LC:=REF(CLOSE,1); AA:=ABS(HIGH-LC); BB:=ABS(LOW-LC); CC:=ABS(HIGH-REF(LOW,1)); DD:=ABS(LC-REF(OPEN,1)); R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4)); X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1)); SI:=8*X/R*MAX(AA,BB); ASI:SUM(SI,0),COLORRED,LINETHICK1; 黃線上漲:IF(ASI>REF(ASI,1),ASI,DRAWNULL),LINETHICK3,COLORYELLOW; 綠線下跌:IF(ASI<=REF(ASI,1),ASI,DRAWNULL),LINETHICK1,COLORGREEN,DOTLINE; MASI:MA(ASI,34),COLORWHITE,LINETHICK1; 紅線上漲1:IF(MASI>REF(MASI,1),MASI,DRAWNULL),LINETHICK3,COLORRED; 綠線下跌1:IF(MASI<=REF(MASI,1),MASI,DRAWNULL),LINETHICK1,COLORGREEN,DOTLINE; N:=60; 左峰高:=REF(HHV(ASI,N),1); 突破:=REF(COUNT(ASI<左峰高,2)=2,1) AND ASI>左峰高; FF:=DRAWTEXT(突破,ASI*1.01,'突破'),COLORWHITE; DRAWTEXT(CROSS(ASI,MASI) AND C/REF(C,1)>1.04,ASI,'黃金叉'),COLORYELLOW; P:=1; AA1:=REF(ASI,P)=HHV(ASI,2*P+1); BB1:=FILTER(AA1,P); CC1:=BACKSET(BB1,P+1); DD1:=FILTER(CC1,P);{高點} AA2:=REF(ASI,P)=LLV(ASI,2*P+1); BB2:=FILTER(AA2,P); CC2:=BACKSET(BB2,P+1); DD2:=FILTER(CC2,P);{低點} 前期高點:REF(ASI,BARSLAST(DD1)),COLORFF00FF,NODRAW; 前期低點:REF(ASI,BARSLAST(DD2)),COLOR00FF00,NODRAW; STICKLINE(C>0,前期低點,前期低點,6,0),COLOR00FF00; STICKLINE(C>0,前期高點,前期高點,6,0),COLORFF00FF; EE:=DRAWTEXT(CROSS(ASI,前期高點),前期高點*1.01,'突破一'),COLORFF33FF; DRAWICON(CROSS(ASI,MASI),MASI,4); DRAWICON(CROSS(MASI,ASI),ASI,5); DRAWTEXT_FIX(C>O,0.05,0.05,0,' 菲爾泰勒金融工作室'),COLORRED; |
|