趋势指标改为大智慧副图指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

CC1:=(2*CLOSE+HIGH+LOW+OPEN)/5;CC2:=(2*INDEXC+INDEXH+INDEXL+INDEXO)/5;C1:=CC1/CC2;O1:=(C)/(INDEXC);O2:=(O)/(INDEXO);ZLDX:MA(C1,5)COLORRED,LINETHICK2;IF((ZLDX>REF(ZLDX,1))-1,ZLDX,DRAWNULL),COLORGREEN,LINETHICK2;STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,2,0),COLORRED;STICKLINE(C1>=O2 AND C1>ZLDX,C1,ZLDX,2,1),COLORFF00FF;STICKLINE(C1

解答:

 CC1:=(2*CLOSE+HIGH+LOW+OPEN)/5;

CC2:=(2*INDEXC+INDEXH+INDEXL+INDEXO)/5;
C1:=CC1/CC2;
O1:=(C)/(INDEXC);
O2:=(O)/(INDEXO);
ZLDX:MA(C1,5),COLORRED,LINETHICK2;
PARTLINE(ZLDX,(ZLDX>REF(ZLDX,1))-1,RGB(0,250,0)),LINETHICK2;
STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,8,0),COLORRED;
STICKLINE(C1>=O2 AND C1>ZLDX,C1,ZLDX,8,1),COLORFF00FF;
STICKLINE(C1<O1 AND C1<=ZLDX ,ZLDX,C1,8,0),COLORCYAN;
STICKLINE(C1<O2 AND C1<=ZLDX ,ZLDX,C1,8,1),COLOR00FFFF;
 

选股票看什么指标最好 >股票指标网