灯塔线+短线主图买卖点(配合expma)

{灯塔线1:设定月份和日期 日期填写实际日期  最高价 H   最低价 L  开盘价 O   收盘价  C  缩写

用在大盘 个股需要来单独填找黄金柱日期 }

月B:=MONTH=8 AND (DAY=2);

月B1:=MONTH=8 AND (DAY=3);

月B2:=MONTH=8 AND (DAY=4);

月B3:=MONTH=8 AND (DAY=5);

B1:=FILTER(月B,0);

C1:=BACKSET(B1,0+1);

D1:=FILTER(C1,0);

E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);

F1:=E1>REF(E1,1);

A线:DRAWLINE(F1,C,月B3,H,1),COLORWHITE;

B线:DRAWLINE(F1,C,月B3,L,1),COLORRED;

C线:DRAWLINE(F1,C,月B2,O,1),COLORYELLOW;

D线:DRAWLINE(F1,C,月B1,O,1),COLORBLUE;

A1线:DRAWLINE(F1,C,月B3,C,1),POINTDOT,LINETHICK3,COLORWHITE;

B1线:DRAWLINE(F1,C,月B3,O,1),POINTDOT,LINETHICK3,COLORRED; {A1 B1为第3根开盘 收盘连线  F1,C表示黄金柱当日的收盘价为起点};

{黄金线1:DRAWLINE(F1,H,月B1,H-23.12,1),LINETHICK3,COLORWHITE;  好像没用}

DRAWTEXT(ISLASTBAR,A线*0.99,'A强升区'),COLORRED;

DRAWTEXT(ISLASTBAR,B线,'B弱升区'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,C线,'C弱降区'),COLORRED;

DRAWTEXT(ISLASTBAR,D线,'D强降区'),COLORWHITE;


主图TD序列+expma+短线买卖+bbi多空线+通道线

{BBI指标}

N1:=3; N2:=6; N3:=12; N4:=24;

BBI:((MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4),

POINTDOT,COLORRED,LINETHICK4;

{神光生命线,跌破清仓}

KS:=(C-MA(C,13))/MA(C,13)*(-100);

RKS:=REF(KS,1);

MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;

超跌:STICKLINE(KS>=8,H,L,0,1),COLORWHITE,LINETHICK2;

反弹:STICKLINE(MLS=1,H,L,0,1),COLORYELLOW,LINETHICK2;

多空生命线:EMA(CLOSE,55),POINTDOT,COLORYELLOW,LINETHICK1;    {圆点线公式CIRCLEDOT;}

A01:=(C-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3));

A11:=SMA(A01,2,1);

A21:=SMA(A11,2,1);

A31:=3*A11-2*A21 ;

A41:=2*A31-0.5;

神光生命线点位:C*(1-(A41-A21)/15),COLORD4FF7F;

VAR61:=DATE<1080818;

股价:=CLOSE*1,COLORYELLOW;

VAR4:=(HIGH+LOW+OPEN+CLOSE)/4*VAR61;

分水岭:=MA(3*VAR4-2*SMA(VAR4,2,1),12)*VAR61;

VAR2:=IF(VAR4<分水岭,VAR4,分水岭)*VAR61;

VAR3:=2*EMA(LLV(VAR4,7),10)-VAR4*VAR61;

{用法注释:

1. 当日收盘在生命线之上,后市看好,当日收盘在生命线之下,后市看淡;

2. 收盘跌破生命线的趋势线或者平均线,应抛出,收盘上涨突破生命线的趋势线或者平均线,应买进;

3. 如果确认未来2-3天的收盘难以在生命线之上,应随时准备抛出,如果确认未来2-3天的收盘难以在生命线之下,应随时准备买进;

4. 在生命线急剧上升到最高点前,一般股票或者指数是要下跌的,在生命线急剧下跌到最低点前,一般股票或者指数是要上涨的。

5. 生命线急剧上升,应在上升到最高点前考虑抛出,生命线急剧下降,应在下降到最低点前考虑买进。

6. 生命线出现转折(从高到低的高点或者从低到高的低点)的位置可以成为阻力或者支撑,并符合阻力或者支撑的所有理论。}

{通道线}

{INPUT:N(20),M(30),P1(80),P2(100);}

N:=20;

M:=30;

P11:=80;

P22:=100;

VAR1:=(C+H+O+L)/4;

卖出:XMA(VAR1,N)*(1+P11/1000),COLORFF00FF,LINETHICK2;

买入:XMA(VAR1,M)*(1-P22/1000),COLOR00FF00,LINETHICK2;

幅度:100*(卖出-买入)/买入,NODRAW;

MA1:=MA(VAR1,3);

STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),0.6,0),COLORGREEN;

STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),1,0),COLORGREEN;

STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;

STICKLINE(卖出<LOW,OPEN,CLOSE,0.8,0),COLORGREEN;

STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;

STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),0.1,0),COLORMAGENTA;

STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),0.8,0),COLORMAGENTA;

STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;

STICKLINE(买入>HIGH,OPEN,CLOSE,0.8,0),COLORMAGENTA;

STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;

DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'←买'),COLORYELLOW,LINETHICK2;

DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'←卖'),COLORGREEN;

DRAWICON(CROSS(HIGH,卖出),HIGH*1.02,12);

{M1  2   500 12   M2  2   500  50}

EXP1:EMA(CLOSE,M1),COLORWHITE;

EXP2:EMA(CLOSE,M2),COLORYELLOW;


{大通道可以叠加通道线使用 主图}

拉升线: EMA(CLOSE,10);

趋势线: (EMA(CLOSE,14)+MA(CLOSE,28)+MA(CLOSE,56))/3;

顶部预警: EMA(拉升线,21)*1.2,POINTDOT,COLOR00FF00,LINETHICK2;

顶部卖出: EMA(拉升线,21)*1.27,POINTDOT,COLORBLUE,LINETHICK2;

底部预警: EMA(拉升线,21)*0.8,POINTDOT,COLORWHITE,LINETHICK2;

底部买入: EMA(拉升线,21)*0.73,POINTDOT,COLORFF00FF,LINETHICK2;

{一般情况下,股价在大通道之中波动,当拉升线和趋势线为多头排列,

股价在拉升线之上时为多头趋势,可以做多或坚定持股;反之为空头趋势,可以空仓。

(二) 当股价拉升至顶部预警线甚至突破顶部卖出线时,股价进入主升浪阶段,

可以参考量价配合考虑逢高出局。}


黄金柱主图

HJZ:=(3*C+H+L+O)/6; HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;

HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;

黄金柱:FILTER(HJZ3,5),

STICK,COLORRED,LINETHICK4,NODRAW;

STICKLINE(黄金柱,O,C,3.3,0),COLORRED;

STICKLINE(黄金柱,H,L,0.1,0),COLORRED;

DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW;

XG:=SUMBARS(FILTER(黄金柱,2),1);

STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;

XG1:=SUMBARS(FILTER(黄金柱,2),1);

STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;

平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;

DRAWTEXT(平量黄金柱,PHD*1.015,'←平量黄金线'),COLORFFCC00 ;

梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;

DRAWTEXT(梯量黄金柱,PHD*1.015,'←梯量黄金线'),COLORCYAN ;

(0)

相关推荐