更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
请老师帮忙将(低位公式)用‘绿色箭头’加入第二个公式的下面,谢谢!!!!!! (低位公式):公式Y1:=C/REF(C,1)>0.905 AND C/REF(C,1)<1.05;VAR2:=IF(EMA(C,10)/EMA(EMA(C,30),16)<0.85 AND Y1 AND V/CAPITAL*100<5,50,0);VAR3:=(-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))+100;VAR4:=(-100)*(HHV(H,50)-C)/(HHV(H,50)-LLV(L,50))+100;VAR5:=(-100)*(HHV(H,70)-C)/(HHV(H,70)-LLV(L,70))+100;VAR6:=((C-MA(C,34))/MA(C,34)*100+10)*5;VAR7:=((C-MA(C,50))/MA(C,50)*100+10)*5;VAR8:=((C-MA(C,70))/MA(C,70)*100+10)*5;VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;VARC:=(VAR9+ABS(VAR6-VAR8))/2;VARD:=(-1)*(EMA(100*(1-WINNER(C)),1)-50)+50;VARF:=IF(VAR2>0 AND VARD+VARC<0,1,0);反弹:VARF*200; 第二个公式:VAR1:=(C+H+O+L)/4; 卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2; 买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA, LINETHICK2; 幅度:100*(卖出-买入)/买入,NODRAW; MA1:=MA(VAR1,3); STICKLINE(卖出>LOW AND 卖出
解答:
N:=10;P1:=5;M:=3;P2:=3;
Y1:=C/REF(C,1)>0.905 AND C/REF(C,1)<1.05;
VAR2:=IF(EMA(C,10)/EMA(EMA(C,30),16)<0.85 AND Y1 AND V/CAPITAL*100<5,50,0);
VAR3:=(-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))+100;
VAR4:=(-100)*(HHV(H,50)-C)/(HHV(H,50)-LLV(L,50))+100;
VAR5:=(-100)*(HHV(H,70)-C)/(HHV(H,70)-LLV(L,70))+100;
VAR6:=((C-MA(C,34))/MA(C,34)*100+10)*5;
VAR7:=((C-MA(C,50))/MA(C,50)*100+10)*5;
VAR8:=((C-MA(C,70))/MA(C,70)*100+10)*5;
VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;
VARC:=(VAR9+ABS(VAR6-VAR8))/2;
VARD:=(-1)*(EMA(100*(1-WINNER(C)),1)-50)+50;
VARF:=IF(VAR2>0 AND VARD+VARC<0,1,0);
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA, LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN; STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN; STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN; STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN; STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA; STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA; STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA; STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA; DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'卖'),COLORGREEN;
DRAWICON(VARF,买入*0.998,1);
选股票看什么指标最好 >股票指标网
精彩评论