智能辅助线的用法:
1.股价持续在生命线(红色)上方的,持股;
2.股价持续在生命线(绿色)下方的,持币;
3.围绕生命线上下震荡的,注意观望。
这3类股票,生命线可以理解为股价的中期线,可以按红绿色的生命线进行操作,也可以利用提示买卖。
指标源码 JRH:=HHV(C,2); JRL:=LLV(C,2); MA3:=MA(CLOSE,3); YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6; VR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VR2:=(REF(VR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR3:=(REF(VR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR4:=(REF(VR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR5:=(REF(VR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR6:=(REF(VR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR7:=(REF(VR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR8:=(REF(VR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR9:=(REF(VR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VRA:=(REF(VR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VRB:=(REF(VRA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VRC:=(REF(VRB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VRD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); VRE:=(REF(VRD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VRF:=(REF(VRE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR10:=(REF(VRF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR11:=(REF(VR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR12:=(REF(VR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR13:=(REF(VR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR14:=(REF(VR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR15:=(REF(VR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR16:=(REF(VR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR17:=(REF(VR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VR18:=(REF(VR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VR19:=((REF(VRD OR VRE OR VRF OR VR10 OR VR11 OR VR12 OR VR13 OR VR14 OR VR15 OR VR16 OR VR17 OR VR18,1)) AND VR1); VR1A:=((REF(VR1 OR VR2 OR VR3 OR VR4 OR VR5 OR VR6 OR VR7 OR VR8 OR VR9 OR VRA OR VRB OR VRC,1)) AND VRD); 红色持股:=VR1 OR VR2 OR VR3 OR VR4 OR VR5 OR VR6 OR VR7 OR VR8 OR VR9 OR VRA OR VRB OR VRC,COLOR0000FF,NODRAW; 离场:=IF(红色持股,JRL,DRAWNULL); 明离场价:=离场,COLORFF99FF,NODRAW; 今离场价:REF(离场,1)COLORGREEN,NODRAW; 青色观望:=VRD OR VRE OR VRF OR VR10 OR VR11 OR VR12 OR VR13 OR VR14 OR VR15 OR VR16 OR VR17 OR VR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,JRH,DRAWNULL); 明进场价:=进,COLOR33AACC,NODRAW; 今进场价:REF(明进场价,1),COLORRED,NODRAW; 短买:VR19,COLORLIRED,NODRAW; STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;{买卖线} STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00; ZNA:=(3*CLOSE+OPEN+LOW+HIGH)/6; 生命线20*ZNA+19*REF(ZNA,1)+18*REF(ZNA,2)+17*REF(ZNA,3)+16*REF(ZNA,4)+15*REF(ZNA,5) +14*REF(ZNA,6)+13*REF(ZNA,7)+12*REF(ZNA,8)+11*REF(ZNA,9)+10*REF(ZNA,10)+9*REF(ZNA,11) +8*REF(ZNA,12)+7*REF(ZNA,13)+6*REF(ZNA,14)+5*REF(ZNA,15)+4*REF(ZNA,16)+3*REF(ZNA,17) +2*REF(ZNA,18)+REF(ZNA,20))/210,COLORLIRED; 辅助线:MA(生命线,5),COLORCYAN; IF(生命线>REF(生命线,1),生命线,DRAWNULL),LINETHICK3,COLORRED; IF(生命线<REF(生命线,1),生命线,DRAWNULL),LINETHICK3,COLORGREEN; DRAWICON(CROSS(生命线,辅助线),L*0.95,7); DRAWICON(CROSS(辅助线,生命线),H*1.05,8);
|