请高手把这个公式“主力”改为大智慧能用的。谢谢。
Y:=MA(C,40)>=REF(MA(C,40),1);
Z:=MA(C,60)>MA(C,120);
WR:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));
A:=WR-80;
AA:=MAX(A,0);
B:=(C/MA(C,60))-1;
CC:=1-B;
D:=MAX(AA*Z,0);
STICKLINE(D>0.01,0,D,1,0),COLORYELLOW;
E:=MA(C,2)-MA(C,10);
F:=MA(E,2);
STICKLINE(E>F AND Y AND REF(D,1)>=9,0,D+9,1,0),COLORRED;
{STICKLINE(MA(C,40)>=REF(MA(C,40),1),0,1,15,0),COLORLIMAGENTA;
STICKLINE(MA(C,40)<REF(MA(C,40),1),0,1,15,0),COLORGREEN;}
主力防御:IF(E>F AND Y AND REF(D,1)>=9,0,D),NODRAW,COLORYELLOW;
主力出击:IF(E>F AND Y AND REF(D,1)>=9,D+9,0),NODRAW,COLORRED;
战斗阶段:IF(MA(C,40)>=REF(MA(C,40),1),1,0),NODRAW,COLORLIMAGENTA;
休整阶段:IF(MA(C,40)>=REF(MA(C,40),1),0,1),NODRAW,COLORGREEN;
30,COLORBLACK;
SLHY518:非常感谢您的回复。现将图形发上。另外你改好后的代码我复制到大智慧里面也不能用。就是不通过。 展开
改后如下:(大智慧通过,如果对您有帮助,请采纳答案,谢啦)
X:=C>=0.998*MA(C,120) AND MA(C,120)>=REF(MA(C,120),1);
Y:=MA(C,40)>=REF(MA(C,40),1);Z:=MA(C,60)>MA(C,120);
WR:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));
A:=WR-80;
AA:=MAX(A,0);
B:=(C/MA(C,60))-1;
CC:=1-B;
D:=MAX(AA*Z,0);
STICKLINE(D>0.01,0,D,1,0),COLORYELLOW;
E:=MA(C,2)-MA(C,10);
F:=MA(E,2);
STICKLINE(E>F AND Y AND REF(D,1)>=9,0,D+9,1,0),COLORRED;
{STICKLINE(MA(C,40)>=REF(MA(C,40),1),0,1,15,0),COLORLIMAGENTA;STICKLINE(MA(C,40)<REF(MA(C,40),1),0,1,15,0),COLORGREEN;}
主力防御:IF(E>F AND Y AND REF(D,1)>=9,0,D),COLORYELLOW,LINETHICK1;
主力出击:IF(E>F AND Y AND REF(D,1)>=9,D+9,0),COLORRED,LINETHICK2;
战斗阶段:IF(MA(C,40)>=REF(MA(C,40),1),1,0),COLORFF5500,LINETHICK1;
休整阶段:IF(MA(C,40)>=REF(MA(C,40),1),0,1),COLORGREEN,LINETHICK1;
30,COLORBLACK;
(如果不想看到哪根线,把句尾函数 LINETHICK1 的最后数值1改为0即可)
高手,好像不是这个图形。
您认为是(或您想要)什么样子的图形?发一张截图上来,根据您的图来改动。