提款机
不知道这个“提款机”大家见过没有
//不知道这个“提款机”大家见过没有
N:=5;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),EMA((2*CLOSE+HIGH+LOW)/4,5)),colorFF;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),EMA((2*CLOSE+HIGH+LOW)/4,5)),colorFF00;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),EMA((2*CLOSE+HIGH+LOW)/4,13)),LINETHICK2,colorFF;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,8)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),EMA((2*CLOSE+HIGH+LOW)/4,13)),LINETHICK2,colorFF00;
PARTLINE(EMA((LOW+CLOSE+OPEN)/3,26)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),REF(EMA((LOW+CLOSE+OPEN)/3,28),1)),LINETHICK3,colorFF;
PARTLINE(EMA((LOW+CLOSE+OPEN)/3,26)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),REF(EMA((LOW+CLOSE+OPEN)/3,28),1)),LINETHICK3,colorFF00;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2),POINTDOT,colorFF;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2),POINTDOT,colorFF00;
A:=HHV(MA((LOW+HIGH+CLOSE)/3,3),3);
B:=LLV(MA((LOW+HIGH+CLOSE)/3,3),5);
DRAWTEXT(CLOSE>=A AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*1.019,'K线说话:短线→继续持股!'),SHIFT1,colorFFFF;
DRAWTEXT(REF(CLOSE,1)<REF(A,1) AND CLOSE>=A AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*0.99,'▲K线说话:短线→进场!'),SHIFT1,colorFF;
DRAWTEXT(REF(CLOSE,1)>REF(A,1) AND CLOSE<A AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*1.011,'K线说话:短线→减仓!'),SHIFT1,colorFFFF;
DRAWTEXT(REF(CLOSE,1)>REF(B,1) AND CLOSE<B AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*0.99,'▼K线说话:短线→持币'),SHIFT1,colorFF00;
趋势线:=ZIG(3,20);
DRAWTEXT(CROSS(REF(ZIG(3,20),1),ZIG(3,20)),HIGH*1.03,'均线说话:【一线绿/减1/3仓、二线绿/减1/2仓,三线绿/空仓】!'),ALIGN0,PXUP4,colorFF00;
DRAWTEXT(CROSS(ZIG(3,20),TROUGHBARS(3,20,1)),LOW,''),ALIGN0,PXUP4,colorFF00FF;
G:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
X:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
DRAWTEXT(G,LOW*1,''),ALIGN1,colorFF00FF;
DRAWTEXT(G,LOW,'均线说话:【一线红/建1/3仓、二线红/建1/2仓,三线红/满仓】!'),ALIGN1,colorFF00;
DRAWTEXT(X,HIGH*1.001,'▲【箱底】说话:线变红买!'),ALIGN1,colorFF00;
DRAWTEXT(X,HIGH,'均线说话:【一线红/建1/3仓、二线红/建1/2仓,三线红/满仓】!'),ALIGN1,colorFFFF;
ED:=BARSLAST(G);
EF:=BARSLAST(X);
买入到卖出天数:ED,LINETHICK0,colorFFFFFF;
卖出到买入天数:EF,LINETHICK0,colorFFFFFF;
换手:VOL/CAPITAL*100,LINETHICK0,colorFFFFFF;
QQ:=换手;
DRAWTEXT(BARPOS=SYSPARAM(2),CLOSE,' ̄'+NUMTOSTR(ED,0)+'▼【箱顶】说话:线变绿卖!'+'买入到到当前周期:'+NUMTOSTR(EF,0)+'▼【箱顶】说话:线变绿卖!'+'天'+NUMTOSTR(QQ,2)+'★卖出到当前周期:'),ALIGN5,colorFFFF00;
FF:=EMA(CLOSE,2);
MA15:=EMA(CLOSE,4);
波段拐点趋势图:MA(CLOSE,99999997952);
DRAWTEXT(DATE<11050516 AND CROSS(FF,MA15),LOW,'★换手率:'),colorFF;
DRAWTEXT(DATE<11050516 AND CROSS(MA15,FF),HIGH,'%'),colorFF00;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,45);
DRAWTEXT(DATE<11050516 AND CROSS(FF,MA15),LOW,'▲小户:红买!'),colorFF;
DRAWTEXT(DATE<11050516 AND CROSS(MA15,FF),HIGH,'▼小户:绿卖!'),colorFF00;
Y0:=LINEVALUE(SUM(REFX(ISLASTBAR,0),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y:=LINEVALUE(SUM(REFX(ISLASTBAR,1),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y02:=LINEVALUE(SUM(REFX(ISLASTBAR,2),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y1:=LINEVALUE(SUM(REFX(ISLASTBAR,3),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y2:=LINEVALUE(SUM(REFX(ISLASTBAR,5),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y3:=LINEVALUE(SUM(REFX(ISLASTBAR,7),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y4:=LINEVALUE(SUM(REFX(ISLASTBAR,9),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y5:=LINEVALUE(SUM(REFX(ISLASTBAR,11),0)=0,HIGH,ISLASTBAR,HIGH,0,1);
Y60:=LINEVALUE(S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HICK0;
DRAWTEXT(ISLASTBAR,HIGH*(IF(XDD=-20,1.14,1.02)),'▲波段说话:【三线红】大户→进场!'+NUMTOSTR(QS,0)),ALIGN1,SHIFT2,colorFF00;
DRAWTEXT(ISLASTBAR AND QS<=-5,HIGH*(IF(XDD=-20,1.14,1.05)),'▼波段说话:【三线绿】大户→退场!'+' '+' \n'),ALIGN1,SHIFT2,colorFF00;
DRAWTEXT(ISLASTBAR AND QS=-20,HIGH*(IF(XDD=-20,1.14,1.05)),'▼波段说话:【三线绿】大户→退场!'+'▼波段说话:【三线绿】大户→退场!'+'▼波段说话:【三线绿】大户→退场!'+'趋势:中线趋势向下有反弹\n'),ALIGN1,SHIFT2,colorFF00;
DRAWTEXT(ISLASTBAR AND BETWEEN(QS,-5,7),HIGH,'▼波段说话:【三线绿】大户→退场!'+'说话:短线按 K线指令执行!'+' 即时说话:短线按K线指令执行!'),ALIGN1,SHIFT3,colorFFFF;
DRAWTEXT(ISLASTBAR AND BETWEEN(QS,7,20),HIGH,'▼波段说话:【三线绿】大户→退场!'+'趋势:中线趋势→疲软时\n'+'说话:短线按K线指令执行! '),ALIGN1,SHIFT3,colorFF00FF;
DRAWTEXT(ISLASTBAR AND QS=20,HIGH,'▼波段说话:【三线绿】大户→退场!'+'趋势:中线趋势向上有调整\n'+'说话:短线按K线指令执行!'),SHIFT2,colorFF00FF;
【箱顶】说话:可能形成头部小心!:PEAK(CLOSE,N,1)*0.998;
【箱底】说话:可能形成底部关注!:TROUGH(CLOSE,N,1)*1.003;
BJ:=CLOSE/INDEXC*1000;
QS:BJ>REF(BJ,1),LINETHICK0;
RS:=BJ<=REF(BJ,1);
EXPLAIN(QS,' 趋势:中线趋势→健康时\n'),colorFF;
EXPLAIN(RS,' 说话:短线按K线指令执行!'),colorFF00;
HSL:=VOL/CAPITAL*100;
量能:=SUM(HSL,N);
涨幅1:=100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N);
流通市值:=CAPITAL*CLOSE;
AH:=HHV(流通市值,N);
AL:=LLV(流通市值,N);
EXPLAIN(CLOSE,'解盘:个股走势:强于大盘'),colorFF;
EXPLAIN(HSL<=2,'解盘:个股走势:弱于大盘');
EXPLAIN(HSL>2 AND HSL<3,' 〓【换手率解盘】〓');
EXPLAIN(HSL>3 AND HSL<5,'该股票少人关注,属于【冷门股】。');
EXPLAIN(HSL>5 AND HSL<8,'该股票成交温和,属于【备份股】。');
EXPLAIN(HSL>8 AND HSL<15,'该股票的交投越来越活跃,人们购买该股票的意愿高,属于【热门股】。');
EXPLAIN(HSL>15 AND HSL<25,'该股票【带量】!');
EXPLAIN(HSL>=25,'该股票【放量】!');
EXPLAIN(量能>3*N AND 涨幅1>3*N,'该股票【巨量】!');
EXPLAIN(量能<0.5*N AND 涨幅1<N,'该股票成交【怪异】!');
EXPLAIN(量能<0.5*N AND 涨幅1>-N AND 涨幅1>0,'继续【大涨】!');
EXPLAIN(量能>3*N AND 涨幅1<-3*N,'继续【小涨】!');
EXPLAIN(量能>3*N AND 涨幅1<N OR 量能<0.5*N AND 涨幅1>3*N OR 量能>3*N AND 涨幅1>-N AND 涨幅1<0 OR 量能&l |