原理解析:
N赋值:20
N1赋值:7
N2赋值:69
T1赋值:如果(日期VAR4)时,在VAR3和VAR4位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR00FFFF
当满足条件(VAR30.6)AND(成交量(手)>=(1.5)*(成交量(手)的5日简单移动平均))ANDCOUNT((VARE>=VARF),3)AND(1日前的最低价=120日内最低价的最低值),返回1,否则返回0时,在最低价位置书写文字,COLORFF00FF
当满足条件如果((统计13日中满足(收盘价0.6)ANDCOUNT((VARE>VARF),6)AND(5日前的最低价=120日内最低价的最低值)ANDREF((收盘价>=开盘价),4)ANDREF((收阳线),3)ANDREF((收盘价>OPE,返回?,否则返回?时,在),2)ANDREF((收阴线),1)AND(开盘价>1日前的收盘价),1,0)位置书写文字,COLOR00FFFF
VAR10赋值:(收盘价的80日简单移动平均-(收盘价的10日简单移动平均)/(3))*(T1)
当满足条件如果(收盘价(成交量(手)的5日简单移动平均)/(240))AND(收盘价>(1日前的收盘价)*(1.08))AND(收盘价VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR30.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSEO,0.01,0.9,0,' WWW. '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'交易策略'),COLORRED;