股票技术指标
股票技术指标
在这里陆续添加一些关于股票的一些技术指标,谁想用,就复制那些代码,然后到大智慧里,选择自选股,添加技术指标那里粘贴就行了。希望大家喜欢!
由秋宏于周三 五月 06 2009, 15:56进行了最后一次编辑,总共编辑了2次
双龙出海指标
wu1:smA(CLOSE,10,5),linethick2;
wu2:sma(CLOSE,20,5),linethick2;
wu3:smA(CLOSE,30,5);
wu4:smA(CLOSE,40,5);
wu5:smA(CLOSE,60,5);
wu6:smA(CLOSE,90,5);
wu7:smA(CLOSE,120,5);
峰回路转:smA(CLOSE,360,5),colorgreen,linethick3;
红金龙:2*峰回路转-wu1,COLORRED,linethick5;
黄金龙:2*wu7-wu2,coloryellow,linethick5;
红龙:2*峰回路转-wu1,CIRCLEDOT,colorgreen,linethick2;
黄龙:2*wu7-wu2,CIRCLEDOT,COLORRED,linethick2;
wu2:sma(CLOSE,20,5),linethick2;
wu3:smA(CLOSE,30,5);
wu4:smA(CLOSE,40,5);
wu5:smA(CLOSE,60,5);
wu6:smA(CLOSE,90,5);
wu7:smA(CLOSE,120,5);
峰回路转:smA(CLOSE,360,5),colorgreen,linethick3;
红金龙:2*峰回路转-wu1,COLORRED,linethick5;
黄金龙:2*wu7-wu2,coloryellow,linethick5;
红龙:2*峰回路转-wu1,CIRCLEDOT,colorgreen,linethick2;
黄龙:2*wu7-wu2,CIRCLEDOT,COLORRED,linethick2;
由秋宏于周三 五月 06 2009, 15:37进行了最后一次编辑,总共编辑了2次
天地在我心
STICKLINE(((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1)))),LOW,HIGH,0.1,0),COLORRED;
STICKLINE(((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1)))),OPEN,CLOSE,4,0),COLORRED;
STICKLINE(((CLOSE < OPEN) OR ((CLOSE = OPEN) AND (CLOSE < REF(CLOSE,1)))),LOW,HIGH,0.1,0),COLORGREEN;
STICKLINE(((CLOSE < OPEN) OR ((CLOSE = OPEN) AND (CLOSE < REF(CLOSE,1)))),OPEN,CLOSE,4,0),COLORGREEN;
LC:=REF(CLOSE,1);
MA20:=MA(CLOSE,20);
MA5:=MA(CLOSE,5);
RSI:=((smA(MAX((CLOSE - LC),0),6,1) / smA(ABS((CLOSE - LC)),6,1)) * 100);
RSI12:=((smA(MAX((CLOSE - LC),0),12,1) / smA(ABS((CLOSE - LC)),12,1)) * 100);
RSI24:=((smA(MAX((CLOSE - LC),0),24,1) / smA(ABS((CLOSE - LC)),24,1)) * 100);
支撑位:=IF(CROSS(RSI,RSI24),LOW,REF(LOW,BARSLAST(CROSS(RSI,RSI24))));
压力位:=IF(CROSS(RSI24,RSI),HIGH,REF(HIGH,BARSLAST(CROSS(RSI24,RSI))));
U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);
L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);
RH1:=IF(((RSI < U2L) AND (REF(RSI,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((RSI >= U2L) AND (REF(RSI,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((RSI >= U2L) AND (REF(RSI,1) < U2L))) - 1)),BARSLAST(((RSI < U2L) AND REF(RSI,1)))));
RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1))));
RH42:=IF((HIGH > RH1),RSI,REF(RSI,BARSLAST((HIGH > RH1))));
RH5:=IF((((HIGH > RH4) AND (RSI < RH42)) AND (RSI < RSI24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (RSI < RH42)) AND (RSI < RSI24)))));
RL1:=IF(((RSI > L2L) AND (REF(RSI,1) <= L2L)),LLV(REF(LOW,1),(BARSLAST(((RSI <= L2L) AND (REF(RSI,1) > L2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((RSI <= L2L) AND (REF(RSI,1) > L2L))) - 1)),BARSLAST(((RSI > L2L) AND REF(RSI,1)))));
RL4:=IF((LOW < RL1),HIGH,REF(HIGH,BARSLAST((LOW < RL1))));
RL42:=IF((LOW < RL1),RSI,REF(RSI,BARSLAST((LOW < RL1))));
RL5:=IF((((LOW < RL4) AND (RSI > RL42)) AND (RSI > RSI24)),LOW,REF(LOW,BARSLAST((((LOW < RL4) AND (RSI > RL42)) AND (RSI > RSI24)))));
地:RL5,POINTDOT,LINETHICK2,colorFF00CC;
天:RH5,POINTDOT,LINETHICK2,colorFF0000;
分水岭:MA20,LINETHICK1,color808080;
STICKLINE(((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1)))),OPEN,CLOSE,4,0),COLORRED;
STICKLINE(((CLOSE < OPEN) OR ((CLOSE = OPEN) AND (CLOSE < REF(CLOSE,1)))),LOW,HIGH,0.1,0),COLORGREEN;
STICKLINE(((CLOSE < OPEN) OR ((CLOSE = OPEN) AND (CLOSE < REF(CLOSE,1)))),OPEN,CLOSE,4,0),COLORGREEN;
LC:=REF(CLOSE,1);
MA20:=MA(CLOSE,20);
MA5:=MA(CLOSE,5);
RSI:=((smA(MAX((CLOSE - LC),0),6,1) / smA(ABS((CLOSE - LC)),6,1)) * 100);
RSI12:=((smA(MAX((CLOSE - LC),0),12,1) / smA(ABS((CLOSE - LC)),12,1)) * 100);
RSI24:=((smA(MAX((CLOSE - LC),0),24,1) / smA(ABS((CLOSE - LC)),24,1)) * 100);
支撑位:=IF(CROSS(RSI,RSI24),LOW,REF(LOW,BARSLAST(CROSS(RSI,RSI24))));
压力位:=IF(CROSS(RSI24,RSI),HIGH,REF(HIGH,BARSLAST(CROSS(RSI24,RSI))));
U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);
L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);
RH1:=IF(((RSI < U2L) AND (REF(RSI,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((RSI >= U2L) AND (REF(RSI,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((RSI >= U2L) AND (REF(RSI,1) < U2L))) - 1)),BARSLAST(((RSI < U2L) AND REF(RSI,1)))));
RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1))));
RH42:=IF((HIGH > RH1),RSI,REF(RSI,BARSLAST((HIGH > RH1))));
RH5:=IF((((HIGH > RH4) AND (RSI < RH42)) AND (RSI < RSI24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (RSI < RH42)) AND (RSI < RSI24)))));
RL1:=IF(((RSI > L2L) AND (REF(RSI,1) <= L2L)),LLV(REF(LOW,1),(BARSLAST(((RSI <= L2L) AND (REF(RSI,1) > L2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((RSI <= L2L) AND (REF(RSI,1) > L2L))) - 1)),BARSLAST(((RSI > L2L) AND REF(RSI,1)))));
RL4:=IF((LOW < RL1),HIGH,REF(HIGH,BARSLAST((LOW < RL1))));
RL42:=IF((LOW < RL1),RSI,REF(RSI,BARSLAST((LOW < RL1))));
RL5:=IF((((LOW < RL4) AND (RSI > RL42)) AND (RSI > RSI24)),LOW,REF(LOW,BARSLAST((((LOW < RL4) AND (RSI > RL42)) AND (RSI > RSI24)))));
地:RL5,POINTDOT,LINETHICK2,colorFF00CC;
天:RH5,POINTDOT,LINETHICK2,colorFF0000;
分水岭:MA20,LINETHICK1,color808080;
由秋宏于周三 五月 06 2009, 15:42进行了最后一次编辑,总共编辑了1次
庄家指标
Var1:=1/WINNER(CLOSE);
Var2:=MA(CLOSE,13);
Var3:=100-ABS((CLOSE-Var2)/Var2*100);
Var4:=LLV(LOW,75);
Var5:=HHV(HIGH,75);
Var6:=(Var5-Var4)/100;
Var7:=smA((CLOSE-Var4)/Var6,20,1);
Var8:=smA((OPEN-Var4)/Var6,20,1);
Var9:=3*Var7-2*smA(Var7,15,1);
VarA:=3*Var8-2*smA(Var8,15,1);
VarB:=100-VarA;
VarC:=IF(900101 <DATE AND DATE<99991230,1,0);
Var2:=MA(CLOSE,13);
Var3:=100-ABS((CLOSE-Var2)/Var2*100);
Var4:=LLV(LOW,75);
Var5:=HHV(HIGH,75);
Var6:=(Var5-Var4)/100;
Var7:=smA((CLOSE-Var4)/Var6,20,1);
Var8:=smA((OPEN-Var4)/Var6,20,1);
Var9:=3*Var7-2*smA(Var7,15,1);
VarA:=3*Var8-2*smA(Var8,15,1);
VarB:=100-VarA;
VarC:=IF(900101 <DATE AND DATE<99991230,1,0);
由秋宏于周三 五月 06 2009, 16:08进行了最后一次编辑,总共编辑了1次
庄家指标(和上面是连着一起的)
看(我)实力: (100-Var9)*VarC, , {000B0001};
散户区: MA(WINNER(CLOSE*0.95)*100,3)*VarC, , COLORYELLOW;
新庄区: (100-IF(Var1>5,IF(Var1<100,Var1,Var3-10),0))*VarC, , COLORGREEN;
VarD:=散户区>Var3;
VarE:=REF(LOW,1)*0.9;
VarF:=LOW*0.9;
Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
Var11:=EMA(Var10,30);
Var12:=CLOSE-REF(CLOSE,1);
Var13:=MAX(Var12,0);
Var14:=ABS(Var12);
Var15:=smA(Var13,7,1)/smA(Var14,7,1)*100;
Var16:=smA(Var13,13,1)/smA(Var14,13,1)*100;
Var17:=BARSCOUNT(CLOSE);
Var18:=smA(MAX(Var12,0),6,1)/smA(ABS(Var12),6,1)*100;
Var19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
Var1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1B:=smA((smA(Var1A,4,1)-50)*2,3,1);
Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var1D:=smA(Var1C,4,1);
Var1E:=smA(Var1D,3,1);
Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
Var20:=Var18<=25 AND Var19<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var11-CLOSE>=-0.25 AND Var15<22 AND Var16<28 AND Var17>50;
Var21:=(HIGH+LOW+CLOSE)/3;
Var22:=(Var21-MA(Var21,14))/(0.015*avEDEV(Var21,14));
Var23:=(Var21-MA(Var21,70))/(0.015*avEDEV(Var21,70));
Var24:=IF(Var22>=150 AND Var22<200 AND Var23>=150 AND Var23<200,10,0);
Var25:=IF(Var22<=-150 AND Var22>-200 AND Var23<=-150 AND Var23>-200,-10,Var24);
Var26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
Var27:=REVERSE(Var26);
Var28:=smA(Var26,3,1);
散户: smA(Var28,3,1)*VarC, , ;
新庄: smA(散户,3,1)*VarC, , COLORYELLOW;
地狱: IF(CROSS(散户,新庄) AND 散户<30,新庄,0)*VarC, , COLORRED;
天堂: IF(CROSS(新庄,散户) AND 新庄>75,新庄,100)*VarC, , COLORGREEN;
DRAWTEXT(CROSS(散户,新庄) AND 散户<30,新庄,'逢低吸呐 !'), ,COLORWHITE;
DRAWTEXT(CROSS(新庄,散户) AND 新庄>75,新庄,'逢高减磅!'), , COLORGREEN;
小心断裂: (IF(Var23>=200 AND Var22>=150,15,IF(Var23<=-200 AND Var22<=-150,-15,Var25))+50)*VarC, , {00050006};
DRAWTEXT(CROSS(Var20,0.5) AND COUNT(Var20=1,10)=1,35,'抄底'), , COLORYELLOW;
DRAWTEXT(CROSS(VarD,0.5) AND COUNT(VarD=1,10)=1,65,'逃顶'), , ;
STICKLINE(VarD,100,25,1,0), , ;
STICKLINE(1,散户区,0,1,0), , COLORYELLOW;
STICKLINE(1,新庄区,100,1,0), , {00010001};
STICKLINE(Var20,0,80,1,0), , COLORRED;
散户区: MA(WINNER(CLOSE*0.95)*100,3)*VarC, , COLORYELLOW;
新庄区: (100-IF(Var1>5,IF(Var1<100,Var1,Var3-10),0))*VarC, , COLORGREEN;
VarD:=散户区>Var3;
VarE:=REF(LOW,1)*0.9;
VarF:=LOW*0.9;
Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
Var11:=EMA(Var10,30);
Var12:=CLOSE-REF(CLOSE,1);
Var13:=MAX(Var12,0);
Var14:=ABS(Var12);
Var15:=smA(Var13,7,1)/smA(Var14,7,1)*100;
Var16:=smA(Var13,13,1)/smA(Var14,13,1)*100;
Var17:=BARSCOUNT(CLOSE);
Var18:=smA(MAX(Var12,0),6,1)/smA(ABS(Var12),6,1)*100;
Var19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
Var1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1B:=smA((smA(Var1A,4,1)-50)*2,3,1);
Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var1D:=smA(Var1C,4,1);
Var1E:=smA(Var1D,3,1);
Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
Var20:=Var18<=25 AND Var19<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var11-CLOSE>=-0.25 AND Var15<22 AND Var16<28 AND Var17>50;
Var21:=(HIGH+LOW+CLOSE)/3;
Var22:=(Var21-MA(Var21,14))/(0.015*avEDEV(Var21,14));
Var23:=(Var21-MA(Var21,70))/(0.015*avEDEV(Var21,70));
Var24:=IF(Var22>=150 AND Var22<200 AND Var23>=150 AND Var23<200,10,0);
Var25:=IF(Var22<=-150 AND Var22>-200 AND Var23<=-150 AND Var23>-200,-10,Var24);
Var26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
Var27:=REVERSE(Var26);
Var28:=smA(Var26,3,1);
散户: smA(Var28,3,1)*VarC, , ;
新庄: smA(散户,3,1)*VarC, , COLORYELLOW;
地狱: IF(CROSS(散户,新庄) AND 散户<30,新庄,0)*VarC, , COLORRED;
天堂: IF(CROSS(新庄,散户) AND 新庄>75,新庄,100)*VarC, , COLORGREEN;
DRAWTEXT(CROSS(散户,新庄) AND 散户<30,新庄,'逢低吸呐 !'), ,COLORWHITE;
DRAWTEXT(CROSS(新庄,散户) AND 新庄>75,新庄,'逢高减磅!'), , COLORGREEN;
小心断裂: (IF(Var23>=200 AND Var22>=150,15,IF(Var23<=-200 AND Var22<=-150,-15,Var25))+50)*VarC, , {00050006};
DRAWTEXT(CROSS(Var20,0.5) AND COUNT(Var20=1,10)=1,35,'抄底'), , COLORYELLOW;
DRAWTEXT(CROSS(VarD,0.5) AND COUNT(VarD=1,10)=1,65,'逃顶'), , ;
STICKLINE(VarD,100,25,1,0), , ;
STICKLINE(1,散户区,0,1,0), , COLORYELLOW;
STICKLINE(1,新庄区,100,1,0), , {00010001};
STICKLINE(Var20,0,80,1,0), , COLORRED;
底部买入时机
par4:=(2*CLOSE+LOW+HIGH)/4;
低吸: EMA(par4,40)*0.85,linethick3, COLORGREEN;
铁底: EMA(par4,88)*0.7, , COLORRED;
满仓: EMA(par4,95)*0.6, ,linethick2, COLOR8888ff;
低吸: EMA(par4,40)*0.85,linethick3, COLORGREEN;
铁底: EMA(par4,88)*0.7, , COLORRED;
满仓: EMA(par4,95)*0.6, ,linethick2, COLOR8888ff;
您在这个论坛的权限:
您不能在这个论坛回复主题