经典高抛低吸 双色均线持股【指标公式】(含选股)
第一部分 副图公式 手机/电脑P1:=10;P2:=20;
R1:=MA(CLOSE,P1);
C1:=C>=R1;C2:=C
CHA:=C1>=C2;CHB:=C2>C1;
STICKLINE(CHA,C,O,3,0),COLORRED;
STICKLINE(CHA,H,L,0,0),COLORRED;
STICKLINE(CHB,C,O,3,0),COLOR00FF00;
STICKLINE(CHB,H,L,0,0),COLOR00FF00;
STICKLINE(CHA,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CHA,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CHA,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CHA,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(CHB,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(CHB,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(CHB,CLOSE,OPEN,1.5,0),COLORFFBB00 ;
STICKLINE(CHB,CLOSE,OPEN,0.5,0),COLORCYAN;
CAMA:R1,COLOR00FF00,LINETHICK2;
IF(CAMA>=REF(CAMA,1),CAMA,DRAWNULL),COLORRED,,LINETHICK2;
IF(CAMA
CAMB:MA(CLOSE,P2),COLOR00FF00,LINETHICK2;
IF(CAMB>=REF(CAMB,1),CAMB,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(CAMB
DRAWICON(CAMA>=REF(CAMA,1) AND CROSS(CAMA,CAMB),CAMA*0.98,1);
DRAWICON(CROSS(CAMB,CAMA),CAMB*1.02,2);
CAIH2:=(2*CLOSE+HIGH+LOW)/4;
CAIH3:=IF(YEAR>=2099 AND MONTH>2,0,1);
CAIH4:=LLV(LOW,5);
CAIH5:=HHV(HIGH,4);
CAIH6:=EMA((CAIH2-CAIH4)/(CAIH5-CAIH4)*100,4)*CAIH3;
CAIH7:=EMA(0.667*REF(CAIH6,1)+0.333* CAIH6,2)*CAIH3;
DRAWTEXT(CROSS(CAIH6, CAIH7) AND CAIH670,H+0.05,'←高抛'),COLOR00FFFF;
DRAWICON(CROSS(CAIH6, CAIH7) AND CAIH670,H+0.05,27);
CHAA:= CAMA>=REF(CAMA,1);{C>=CAMA;}
CHBB:= CAMA
CADD:=CAMB>=REF(CAMB,1);
CAEE:=CAMB
CATT:=IF(ISLASTBAR,240/FROMOPEN,1);
CANN:=120;
HH:=HHV(V*CATT,CANN);
LL:=LLV(V,CANN);
高:=CONST(HH);
低:=CONST(LL);
高2:=CONST(HHV(H,CANN));
低2:=CONST(LLV(L,CANN));
PP:=IF((高2*0.9-(高2-低2)*0.5)>CONST(LLV(L,20)),0.9,IF((高2*0.9-(高2-低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW;
RCC1:=高2*0.9-(高2-低2)*PP;
低3:=MIN(RCC1,低2);
CHA1:=低3;
STICKLINE(CHAA,CHA1-0.000*CHA1,CHA1-0.040*CHA1,4,0),COLOR0000FF;
STICKLINE(CHBB,CHA1-0.000*CHA1,CHA1-0.040*CHA1,4,1),COLOR686868;
STICKLINE(CADD,CHA1-0.050*CHA1,CHA1-0.090*CHA1,4,0),COLORFF00FF;
STICKLINE(CAEE,CHA1-0.050*CHA1,CHA1-0.090*CHA1,4,1),COLOR686868;
DRAWTEXT_FIX(1,0.1,0.84,0,'★★ 红色--均线A持股★★粉色--均线B持股★★'),COLORCYAN;
第二部分 选股公式
{选股公式一:低吸}
P1:=10;P2:=20;
R1:=MA(CLOSE,P1);
C1:=C>=R1;C2:=C
CHA:=C1>=C2;CHB:=C2>C1;
CAMA:=R1,COLOR00FF00,LINETHICK2;
CAMB:=MA(CLOSE,P2),COLOR00FF00,LINETHICK2;
CAIH2:=(2*CLOSE+HIGH+LOW)/4;
CAIH3:=IF(YEAR>=2099 AND MONTH>2,0,1);
CAIH4:=LLV(LOW,5);
CAIH5:=HHV(HIGH,4);
CAIH6:=EMA((CAIH2-CAIH4)/(CAIH5-CAIH4)*100,4)*CAIH3;
CAIH7:=EMA(0.667*REF(CAIH6,1)+0.333* CAIH6,2)*CAIH3;
低吸:CROSS(CAIH6, CAIH7) AND CAIH6=R1;C2:=C
CHA:=C1>=C2;CHB:=C2>C1;
CAMA:=R1,COLOR00FF00,LINETHICK2;
CAMB:=MA(CLOSE,P2),COLOR00FF00,LINETHICK2;
CHAA:= CAMA>=REF(CAMA,1);
CHBB:= CAMA
CADD:=CAMB>=REF(CAMB,1);
红箭头图标:CAMA>=REF(CAMA,1) AND CROSS(CAMA,CAMB);
太棒了吧,真的很好 厉害了! 不容易啊!好东西!
页:
[1]