用付费软件到 用程序化指标心得
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA40:=MA(C,40);
MA60:=MA(C,60);
STICKLINE(MA5>=MA60
AND MA60>=MA10,MA10,MA60,4,0),colorblue;
STICKLINE(MA5>=MA10 AND
MA5<=MA60,MA10,MA5,4,0),colorblue;
STICKLINE(MA20>=MA60 AND
MA60>=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20>=MA40 AND
MA20<MA60,MA40,MA20,4,0),COLORFF00FF;
STICKLINE(MA5>=MA20 AND
MA20>=MA10,MA10,MA20,4,0),colorwhite;
STICKLINE(MA5>=MA10 AND
MA5<MA20,MA10,MA5,4,0),colorwhite;
M10:=EMA(C,10); FF:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,FF);
高抛:(1+14/100)*DD,DOTLINE,colorgreen;
压力:(1+7/100)*DD,DOTLINE,COLORFFFF00;
支撑:(1-7/100)*DD,DOTLINE,colorblue;
低吸:(1-14/100)*DD,DOTLINE,colorred;
中轨:(压力+支撑)/2,DOTLINE,colormagenta;
VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);
散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,3.15,0),COLOR770077;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,2.45,0),COLOR990099;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.75,0),COLORBB00BB;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.05,0),COLORDD00DD;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,0.35,0),COLORFF00FF;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*0.99,'吸'),COLORFF00FF;
DA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
X2:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210;
X3:=MA(X2,5);
X1:=(C+L+H)/3;
买:=CROSS(X2,X3);
卖:=CROSS(X3,X2);
DRAWICON(买,L*0.95,1);
DRAWICON(CROSS(X2,X3),L*0.97,7);
DRAWICON(卖,H*1.04,2);
DRAWICON(CROSS(X3,X2),H*1.02,8);
STICKLINE(X2>=X3,LOW,HIGH,0,1),colorred;
STICKLINE(X2>=X3,CLOSE,OPEN,3.2,2),colorred;
STICKLINE(X2<X3,LOW,HIGH,0,1),COLOR00FF00;
STICKLINE(X2<X3,CLOSE,OPEN,3.2,2),COLOR00FF00;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLOR00FF00;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),colorred;
DRAWTEXT_FIX(1,0,0.05,0,'白色梯【说明底部正在形成趋势-买股】'),COLORFFFFFF;
DRAWTEXT_FIX(1,0,0.1,0,'蓝色梯【说明上升趋势形成-持股】'),COLORFF0000;
DRAWTEXT_FIX(1,0,0.15,0,'粉色梯【说明即将拉升趋势-适合做高抛低吸】'),colormagenta;
DRAWTEXT_FIX(1,0,0.2,0,'BUY买股【出现 B 且K线是 红色 买股信号】'),COLOR0000FF;
DRAWTEXT_FIX(1,0,0.25,0,'SELL卖股【出现S 且K线是 绿色 卖股信号】'),COLOR00FF00;
DRAWTEXT_FIX(1,0,0.3,0,'友情提醒【更多指标关注微信公众号:程序化指标】'),COLOR00FFFF;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA40:=MA(C,40);
MA60:=MA(C,60);
STICKLINE(MA5>=MA60
AND MA60>=MA10,MA10,MA60,4,0),colorblue;
STICKLINE(MA5>=MA10 AND
MA5<=MA60,MA10,MA5,4,0),colorblue;
STICKLINE(MA20>=MA60 AND
MA60>=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20>=MA40 AND
MA20<MA60,MA40,MA20,4,0),COLORFF00FF;
STICKLINE(MA5>=MA20 AND
MA20>=MA10,MA10,MA20,4,0),colorwhite;
STICKLINE(MA5>=MA10 AND
MA5<MA20,MA10,MA5,4,0),colorwhite;
M10:=EMA(C,10); FF:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,FF);
高抛:(1+14/100)*DD,DOTLINE,colorgreen;
压力:(1+7/100)*DD,DOTLINE,COLORFFFF00;
支撑:(1-7/100)*DD,DOTLINE,colorblue;
低吸:(1-14/100)*DD,DOTLINE,colorred;
中轨:(压力+支撑)/2,DOTLINE,colormagenta;
VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);
散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,3.15,0),COLOR770077;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,2.45,0),COLOR990099;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.75,0),COLORBB00BB;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.05,0),COLORDD00DD;
STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,0.35,0),COLORFF00FF;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*0.99,'吸'),COLORFF00FF;
DA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
X2:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210;
X3:=MA(X2,5);
X1:=(C+L+H)/3;
买:=CROSS(X2,X3);
卖:=CROSS(X3,X2);
DRAWICON(买,L*0.95,1);
DRAWICON(CROSS(X2,X3),L*0.97,7);
DRAWICON(卖,H*1.04,2);
DRAWICON(CROSS(X3,X2),H*1.02,8);
STICKLINE(X2>=X3,LOW,HIGH,0,1),colorred;
STICKLINE(X2>=X3,CLOSE,OPEN,3.2,2),colorred;
STICKLINE(X2<X3,LOW,HIGH,0,1),COLOR00FF00;
STICKLINE(X2<X3,CLOSE,OPEN,3.2,2),COLOR00FF00;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLOR00FF00;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),colorred;
DRAWTEXT_FIX(1,0,0.05,0,'白色梯【说明底部正在形成趋势-买股】'),COLORFFFFFF;
DRAWTEXT_FIX(1,0,0.1,0,'蓝色梯【说明上升趋势形成-持股】'),COLORFF0000;
DRAWTEXT_FIX(1,0,0.15,0,'粉色梯【说明即将拉升趋势-适合做高抛低吸】'),colormagenta;
DRAWTEXT_FIX(1,0,0.2,0,'BUY买股【出现 B 且K线是 红色 买股信号】'),COLOR0000FF;
DRAWTEXT_FIX(1,0,0.25,0,'SELL卖股【出现S 且K线是 绿色 卖股信号】'),COLOR00FF00;
DRAWTEXT_FIX(1,0,0.3,0,'友情提醒【更多指标关注微信公众号:程序化指标】'),COLOR00FFFF;
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。