两个条件同时成立时买入,1-3星期稳赚8%-20%
周线
条件1当趋势线p2线向上同时主图MAA30线也向上(斜度越大越好)
条件2趋势线出现黄色方块
两个条件同时成立时买入,1-3星期稳赚8%-20%
趋势线公式
T1:=REF(C,10)=HHV(C,2*10+1);
T2:=FILTER(T1,10);
T3:=BACKSET(T2,10+1);
HD:=FILTER(T3,10);
T线:REF(C,BARSLAST(HD)),POINTDOT,COLORCYAN;
STICKLINE(C,T线,T线,16,0),COLORCYAN;
高点:REF(H,BARSLAST(HD)),COLORWHITE,POINTDOT;
STICKLINE(C,高点,高点,16,0),COLORWHITE;
M1:=C>REF(C,1) AND C>REF(C,2);
M2:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
M3:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
M4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(M3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;
STICKLINE(M3,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
STICKLINE(M3,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;
STICKLINE(M3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
STICKLINE(M4,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(M4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(M4,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(M4,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
A:=MA(CLOSE,12)+ABS(MA(CLOSE,12)-REF(MA(CLOSE,12),1));
B:=MA(CLOSE,12)+MA(CLOSE,12)-REF(MA(CLOSE,12),1);
分水岭:=IF(MA(CLOSE,12)<B,B,MA(CLOSE,12));
操作线:=分水岭-(EMA(C,3)-分水岭);
AA:=CROSS(分水岭,操作线);
STICKLINE(AA,C,O,3,0),COLOR0000AA;
STICKLINE(AA,C,O,2,0),COLOR0033CC;
STICKLINE(AA,C,O,1,0),COLOR0055EE;
STICKLINE(AA,C,O,0.3,0),COLOR0099FF;
STICKLINE(AA,H,L,0,1),COLOR0099FF;
RR:=CROSS((MA(VOL,5)),(MA(VOL,10))) AND MA(C,2)>=MA(C,4);
P1:MA(C,5),COLOR00CCFF,LINETHICK2;
MA10:=MA(C,10),COLORYELLOW;
P2:EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),COLOR0168FF,LINETHICK2;
决策点:IF(P2<REF(P2,1),MA2,DRAWNULL),COLORFF6128,LINETHICK2;
压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF,DOTLINE;
支撑:MA(REF(LLV(C,30),1),2),COLORABFF46,DOTLINE;
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
顶:REFDATE(高1,DATE),COLORBLACK;
绝顶:=REFDATE(顶,DATE),NODRAW;
跑:=绝顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;
STICKLINE(跑,C,O,3,0),COLOR777777;
STICKLINE(跑,C,O,2,0),COLORAAAAAA;
STICKLINE(跑,C,O,1,0),COLORCCCCCC;
STICKLINE(跑,C,O,0.1,0),COLORFFFFFF;
STICKLINE(跑,L,H,0,0),COLORFFFFFF;
DRAWTEXT(跑,C*1.06,'绝顶')COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,GNBLOCK),COLORRED;
DRAWTEXT_FIX(1,0,0.1,0,'流通股:'),COLORRED;
DRAWTEXT_FIX(1,0,0.2,0,'每股收益:'),COLORRED;
DRAWNUMBER_FIX(1,0.06,0.2,0,FINANCE(33));
DRAWTEXT_FIX(1,0.01,0.32,0,'流通盘(亿):');DRAWNUMBER_FIX(1,0.12,0.32,0,CONST(CAPITAL)/10000/100),COLORWHITE;
DRAWTEXT_FIX(1,0.01,0.32,0,'流通盘(亿):');DRAWNUMBER_FIX(1,0.12,0.32,0,CONST(CAPITAL)/10000/100),COLORWHITE;
{万能买卖}
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,H*1.01,H,4,0),COLORGREEN;
STICKLINE(VAR19,L,L*0.99,4,0),COLORYELLOW;
马年红绿灯公式
底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
底部成本价:=COST(底部),COLORYELLOW,DOTLINE;
顶部:=100-底部;
顶部成本价:=COST(顶部),COLORGREEN,DOTLINE;
均值:=(底部+顶部)/2;
均值成本:=COST(均值),COLORRED,LINETHICK1,DOTLINE;
JJ:=ABS(均值成本/C-1);
DD:=DMA(CLOSE,JJ),LINETHICK2,COLORRED;
JJ1:=ABS(底部成本价/C-1);
DD1:=DMA(CLOSE,JJ1),LINETHICK2,COLORYELLOW;
JJ2:=ABS(顶部成本价/C-1);
DD2:=DMA(CLOSE,JJ2),LINETHICK2,COLORWHITE;
STICKLINE(DD1 >= REF(DD1,1),3,2.1,0,0),COLOR009900;
STICKLINE(DD1 >= REF(DD1,1),3,2.1,3.2,0),COLOR009900;
STICKLINE(DD1 >= REF(DD1,1),3,2.1,2.5,0),COLOR00BB00;
STICKLINE(DD1 >= REF(DD1,1),3,2.1,1.5,0),COLOR00DD00;
STICKLINE(DD1 >= REF(DD1,1),3,2.1,0.5,0),COLOR00FF00;
STICKLINE(DD1 >= REF(DD1,1),3,2.1,0,0),COLORFFFFFF;
STICKLINE(DD >= REF(DD,1),2,1.1,3.2,0),COLOR000066;
STICKLINE(DD >= REF(DD,1),2,1.1,2.0,0),COLOR000077;
STICKLINE(DD >= REF(DD,1),2,1.1,1.5,0),COLOR000099;
STICKLINE(DD >= REF(DD,1),2,1.1,0.9,0),COLOR0000CC;
STICKLINE(DD >= REF(DD,1),2,1.1,0.5,0),COLOR0000FF;
STICKLINE(DD >= REF(DD,1),2,1.1,0,0),COLORFFFFFF;
STICKLINE(DD2 >= REF(DD2,1),1,0,3.2,0),COLORFF77FF;
STICKLINE(DD2 >= REF(DD2,1),1,0,2.7,0),COLORFF33FF;
STICKLINE(DD2 >= REF(DD2,1),1,0,2.1,0),COLORFF55FF;
STICKLINE(DD2 >= REF(DD2,1),1,0,1,6),COLORFF77FF;
STICKLINE(DD2 >= REF(DD2,1),1,0,0.8,0),COLORFF99FF;
STICKLINE(DD2 >= REF(DD2,1),1,0,0.5,0),COLORFFBBFF;
STICKLINE(DD2 >= REF(DD2,1),1,0,0.1,0),COLORFFDDFF;
824200369.jpg
|