N:=23;
VAR1:=(100-100/(1+SUM(vol,N)/CAPITAL))*CAPITAL*96/10000;
LNC:=VAR1*CLOSE;
B1:=REF(LNC,1);B2:=REF(LNC,2);
SS:=IF(LNC>REF(LNC,1) AND REF(LNC,1)>=REF(LNC,2),1,IF(LNC<REF(LNC,1) AND REF(LNC,1)<=REF(LNC,2),-1,IF(LNC>REF(LNC,2) AND REF(LNC,2)>REF(LNC,1),2,IF(LNC<REF(LNC,2) AND REF(LNC,2)<REF(LNC,1),-2,0))));
{ _最新股票指标公式}
SM:=IF(REF(SS,1)>0,REF(SS,1),IF(REF(SS,2)>0,REF(SS,2),IF(REF(SS,3)>0,REF(SS,3),IF(REF(SS,4)>0,REF(SS,4),IF(REF(SS,5)>0,REF(SS,5),IF(REF(SS,6)>0,REF(SS,6),IF(REF(SS,7)>0,REF(SS,7),0)))))));
MC:=IF(REF(SS,1)>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
SS1:=IF(LNC>REF(LNC,1) AND REF(LNC,1)>=REF(LNC,2),1,IF(LNC<REF(LNC,1) AND REF(LNC,1)<=REF(LNC,2),-1,IF(LNC>REF(LNC,2) AND REF(LNC,2)>REF(LNC,1),2,IF(LNC<REF(LNC,2) AND REF(LNC,2)<REF(LNC,1),-2,0))));
SM1:=IF(REF(SS,1)<0,REF(SS,1),IF(REF(SS,2)<0,REF(SS,2),IF(REF(SS,3)<0,REF(SS,3),IF(REF(SS,4)<0,REF(SS,4),IF(REF(SS,5)<0,REF(SS,5),IF(REF(SS,6)<0,REF(SS,6),IF(REF(SS,7)<0,REF(SS,7),0)))))));
MC1:=IF(REF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
A:MA(SQRT(MC),1),COLORFF9933,LINETHICK2;
IF(A>=REF(A,1),A,DRAWNULL),COLORRED,LINETHICK4;
IF(A<REF(A,1),A,DRAWNULL),COLORFF9933,LINETHICK2;
A1:MA(SQRT(MC1),5),COLOR33FF33,LINETHICK2;
IF(A1>=REF(A1,1),A1,DRAWNULL),COLORFF00FF,LINETHICK3;
IF(A1<REF(A1,1),A1,DRAWNULL),COLOR33FF33,LINETHICK2;
IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00FFFF,POINTDOT,LINETHICK5;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)