主图指标公式 买卖提示

合集下载

通达信K线买卖主图指标公式

通达信K线买卖主图指标公式

通达信K线买卖主图指标公式M5:MA(CLOSE,5);M10:MA(CLOSE,10);M20:MA(CLOSE,20);M30:MA(CLOSE,30);M60:MA(CLOSE,60);M120:MA(CLOSE,120);M250:MA(CLOSE,250);中线【买入】:=COUNT(CLOSE<M20,5)=4 AND CLOSE/M20>1.004 AND CROSS(CLOSE,M20) AND M20>=REF(M20,1),LINETHICK,COLORRED; DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;VL:=REF(LOW,1);VAR112:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-V L,0),13,1))*100;VAR114:=MA(VAR112,13);VAR115:=LLV(LOW,34);VAR118:=EMA(IF(LOW<=VAR115,VAR114,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH, 54)-LLV(LOW,54))*100,7,1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-L LV(LOW,54))*100,7,1)*16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 ANDVAR118>REF(VAR118,1),VAR118*8,0),20); DRAWTEXT(T,LOW-0.5,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.3,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LO W,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20; DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.5,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.3,'|'),COLORR ED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80; DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.5,'←逃'),COLORGREEN;JG:=CROSS(M5,M10);VOLUME:=VOL,VOLSTICK;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,10);NL:=CROSS(MAVOL1,MAVOL2);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;NA:=CROSS(DIF,DEA);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)) *100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;KD:=CROSS(K,D) AND CROSS(J,D);一招定乾坤:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR(JG AND NA AND KD) OR (NL AND NA ANDKD),L*0.95,'←一招定乾坤'),COLORYELLOW;X:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X ANDJ<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X ANDJ<20,LOW*0.98,'←短进'),COLORLIMAGENTA;空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);DRAWTEXT(VAR5,L*0.98,'←追涨'),COLORRED; PT:=EMA(H,20);PAN:=EMA(CLOSE,7);RUO:=MEMA(CLOSE,3);DRAWICON(LONGCROSS(PAN,RUO,0.25) ANDPT>H ,L*0.98,1);VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF( C,1)),6,1)*100;DRAWTEXT(CROSS(84,VARC),H*1.01,'逃'),COLORYELLOW ;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进场'),COLORYELLOW;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5, 1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) /SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出局'),COLORGREEN;{股旁网-股票公式网站}VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,3 4)-LLV(LOW,34)),5)-20;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR1 2,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR1 2,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 ANDVAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 ANDVAR19<100;DRAWTEXT(VAR1C ANDCOUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0; DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A75:=(CLOSE > M5);A76:=(M5 > M10);A77:=(CLOSE > M10);A78:=(M5 > M20);A79:=(CLOSE > M20);A710:=REF(M20,1);A711:=(M20 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) +IF(A77,10,(0 - 10)))+ IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) +IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1>= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX>= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX>= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND(REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0)); DRAWTEXT(T1=1 ANDCURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右。

通达信“买卖提示”分时主图指标公式

通达信“买卖提示”分时主图指标公式

通达信“买卖提示”分时主图指标公式炒股的人都知道,大家都存在一个缺点,就是不团结,每个人都有自己的操作思路,但又不坚持自己的思路,容易见风使舵,更可气的是将自己的命运交到别人手中,别人说什么就是什么,没有一点自己的主观意思。

不过散户也存在一个优势,资金量比较小,操作上比大资金操作起来灵活,如果主力要在底部吸筹的话,大资金的主力最少都要个把月左右,小点资金的主力也差不多要10天左右,而获利出货也得3-5天的时间,就算要出局,也得使劲办法迷惑散户,生怕被发现,给散户出货的机会,把自己给套死。

对比散户起来,那就不用顾虑那么多了,只要没有满仓,想怎么操作就怎么操作,说到底还是A股的T+1制度的原因,要不然主力也不会这么嚣张跋扈了!目前指数分时图小回落,不过没放啥大量,所以也不好跌,午后估计还会反弹,但是现在的市场量能反弹估计也不会走出什么效果出来,所以指数还是继续走弱势窄幅震荡走势。

指数在临近午盘收盘的时候来了一小波小急速下跌,午后要看下分时图的量能运行情况,如果指数分时图每一波杀跌放大量的话可能还会继续杀跌,如果指数分时图杀跌没什么放量也跌不大动,总体还是继续走弱势窄幅震荡的走势。

创业板的部分指标股出现护盘迹象,中青宝、掌趣科技、暴风集团、出现不同程度的拉升,不过要扭转这盘面单靠指标股是不行的,其他的个股也要起来。

指数分时图反弹也没啥量能,要上也上不去,所以还是继续我们说的弱势震荡的走势,刚创业板指标股有小引领一波,可惜其他的小盘个股都没怎么跟风。

指数下跌没量,上涨也没量,还是走的很胶着,不过我们还是认清好盘面氛围就行,大家仓位规划管控好就行,今天小使者就给大家分享一个分时做T的买卖参考指标,非常适合做高抛低吸!使用方法:1、绿色线是压力线;2、紫色线是支撑线;3、黄色箭头是买入信号;4、黄色线柱是加强买入信号;5、绿色箭头是高抛信号。

中字头出现护盘,刚在直播说过,指数这波分时图杀跌是否放量,如果不放量的话日内估计也跌不下去了,继续走胶着的走势,这状态今天指数k线估计收个振幅比较大的十字星。

通达信多种买入卖出信号提示主图指标公式

通达信多种买入卖出信号提示主图指标公式

MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:=MA(CLOSE,120);MA250:=MA(CLOSE,250);中期临界点: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90), VOL),LINETHICK2,COLORRED;{涨跌家数}涨:INDEXADV,NODRAW,COLORLIMAGENTA ;跌:INDEXDEC,NODRAW,COLORGREEN;▼天顶:=HHV(HIGH,35),COLORGREEN, LINETHICK1.8;▲地底:=LLV(LOW,55),COLORRED,LINETHICK1.8;无间道:=(▼天顶+▲地底)/2,COLORRED,CIRCLEDOT,LINETHICK;DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.98,1);{DRAWTEXT(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.96,' 波段 低吸');}DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,2);{DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,'波段高抛');}{财务数据}DRAWTEXT_FIX(ISLASTBAR,0.18,0.01,1,'上市日期:'),COLOR00FF00;DRAWNUMBER_FIX(ISLASTBAR,0.18,0.01,0,FINANCE(42)),COLOR00FF00;DRAWTEXT_FIX(1,0.01,0.13,0,EXTERNSTR(0,1)),COLORRED;DRAWTEXT_FIX(1,0.26,0.01,0,EXTERNSTR(0,2)),COLORDD00DD;DRAWTEXT_FIX(1,0.01,0.066,0,EXTERNSTR(0,3)),COLOR00DD00;DRAWTEXT_FIX(ISLASTBAR ,0.06,0.01,1,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量 柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) ORREF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3); 黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051), BT2052),BT2053);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)) ,0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DA Y1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1 )),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,D AY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRA WNULL,REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRA WNULL,REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRA WNULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLOR YELLOW,NODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0))); 立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;{DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;}DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;{STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;}{DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;}{DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;}{STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;};{ 涨停 标注}STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;{涨停天数}VARZT:=BARSLAST(C/REF(C,1)>1.094);DRAWTEXT(VARZT=2,L*0.95,'3T'),COLORYELLOW;DRAWTEXT(VARZT=4,H*1.06,'5T'),COLORYELLOW;DRAWTEXT(VARZT=7,L*0.95,'8T'),COLORYELLOW;DRAWTEXT(VARZT=12,H*1.06,'13T'),COLORYELLOW;DRAWTEXT(VARZT=20,L*0.95,'21T'),COLORYELLOW;DRAWTEXT(VARZT=33,H*1.06,'34T'),COLORYELLOW;DRAWTEXT(VARZT=54,L*0.95,'55T'),COLORYELLOW;DRAWTEXT(VARZT=88,H*1.06,'89T'),COLORYELLOW;DRAWTEXT(VARZT=143,L*0.95,'144T'),COLORYELLOW;DRAWTEXT(VARZT=232,H*1.06,'233T'),COLORYELLOW;DRAWTEXT(VARZT=376,L*0.95,'377T'),COLORYELLOW;Z:=ISLASTBAR;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)>REF(O,1)&&C>O&&Z,0.98,0.2, 1,'①乾:阳极,防变'),COLORFF00FF;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98,0.2 ,1,'②兑:阳减,调整'),COLORFFFF00;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)<=REF(O,1)&&C>O&&Z,0.98,0.2 ,1,'③离:阳光,关注'),COLOR00FFFF;DRAWTEXT_FIX(REF(C,2)>REF(O,2)&&REF(C,1)<=REF(O,1)&&C<=O&&Z,0.98,0. 2,1,'④震:继阴, 空仓 '),COLORFF0000;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)>REF(O,1)&&C>O&&Z,0.98,0.2 ,1,'⑤巽:继阳, 持股 '),COLORFF00FF;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98,0. 2,1,'⑥坎:阴风,看跌'),COLORFF0000;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)<=REF(O,1)&&C>O&&Z,0.98,0. 2,1,'⑦艮:阴减, 反弹 '),COLOR00FFFF;DRAWTEXT_FIX(REF(C,2)<=REF(O,2)&&REF(C,1)<=REF(O,1)&&C<=O&&Z,0.98, 0.2,1,'⑧坤:阴极,待转'),COLORFF0000;{暴跌 买入 }TJ1:=EMA((C-L),20)/EMA((H-L),20)*100;TJ2:=(L-ABS(MIN(C,O)))/L<=1;TJ3:=ABS((L-MA(C,5)))/L*100>10;TJ4:=TJ1 AND TJ2 AND TJ3;DRAWTEXT(TJ4 AND TJ1>REF(TJ1,1),LOW*0.95,'BD'),COLORRED; DRAWICON(TJ4 AND TJ1>REF(TJ1,1),L*0.95,1);{暴涨}DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;DRAWTEXT(起爆,L*0.99,'↖暴涨'),COLORYELLOW,LINETHICK2;。

【经传-BS买卖点】主图BS买卖点提示信号指标

【经传-BS买卖点】主图BS买卖点提示信号指标

【经传-BS买卖点】主图BS买卖点提示信号指标今天要给大家分享的是经传主图BS买卖点指标,应该很多人在很多地方看到过这个主图的图片,今天给大家分享出源码。

先看几张图,源码在后面,后面提供下载地址。

BS买卖点指标源码:(主图指标){BS买卖点}N:=80; M:=3;VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;STICKLINE(VAR2 < MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;STICKLINE(VAR2 > MA(VAR3,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(VAR2<MA(VAR3,6))),(CLOS E-0.03),OPEN,3.05,0),COLORLIBLUE;STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE, OPEN,3.05,1),COLORLIBLUE;STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN, (CLOSE-0.03),3.05,0),COLORRED;STICKLINE(((OPEN<CLOSE)AND(VAR2>MA(VAR3,6))),OPEN, CLOSE,3.05,1),COLORRED;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)), 8);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;MM:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;{完}。

通达信公式主图bs智能提示买卖(主图 指标)

通达信公式主图bs智能提示买卖(主图 指标)

通达信公式主图bs智能提示买卖(主图指标)VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) -LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;STICKLINE(VAR2STICKLINE(VAR2 >MA(VAR3,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN> CLOSE)AND(VAR2STICKLINE(((OPEN{ 股票指标超市}STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OP EN,(CLOSE-0.03),3.05,0),COLORRED;STICKLINE(((OPENMA(VAR3,6))),OP EN,CLOSE,3.05,1),COLORRED;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW -(LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIG H+(HIGH*0.02)),8);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+ PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;M:=IF(AL撑:IF(NL底:IF(ALK版1:=EMA(C,3),COLORWHITE;K版2:=EMA(C,5),COLORYELLOW;K版3:=EMA(C,7),COLORBROWN;K版4:=EMA(C,12),COLORLIGREEN;K版5:=EMA(C,20),COLORRED;SS:=CROSS(K版1,K版2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(K 版1,K版4) AND C>O AND C>REF(C,1) ANDC/REF(C,1)>=1.018OR CROSS(K版2,K版3) AND C>O ANDC>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(K版1,K版3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(K版1,K版4);DRAWICON(SS,L-0.04,5);DD:=CROSS(K版2,K版3) AND C>O ANDC>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(K版2,K版5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018ORCROSS(K版3,K版4) AND C>O AND C>REF(C,1) ANDC/REF(C,1)>=1.018OR CROSS(K版2,K版4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(K版1,K版5);。

通达信分时买卖点主图指标公式

通达信分时买卖点主图指标公式

通达信分时买卖点主图指标公式{分时买卖点}AA1:=(vol/CLOSE)/3;AA2:=SUM((IF(((AA1>40) AND (CLOSE>(REF(CLOSE,1)))),AA1,0)),0);AA3:=SUM((IF(((AA1>40) AND (CLOSE<(REF(CLOSE,1)))),AA1,0)),0);AA4:=SUM((IF(((AA1<40) AND (CLOSE>(REF(CLOSE,1)))),AA1,0)),0);AA5:=SUM((IF(((AA1<40) AND (CLOSE<(REF(CLOSE,1)))),AA1,0)),0);AA6:=((AA2+AA3)+AA4)+AA5;AA7:=IF((BARstATUS=2),((100*AA2)/AA6),0);AA8:=((IF((BARSTATUS=2),((100*AA3)/AA6),0)));AA9:=((IF((BARSTATUS=2),((100*AA4)/AA6),0)));AA10:=((IF((BARSTATUS=2),((100*AA5)/AA6),0)));机买:=(AA2),LINETHICK0;机卖:=(AA3),LINETHICK0;散买:=(AA4);散卖:=(AA5);总买:=AA2+AA4;总卖:=AA3+AA5;机构买比:=机买/总买*0.1,LINETHICK0;机构卖比:=机卖/总卖*0.1,LINETHICK0;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;TT:=BARSCOUNT(C);前高:=REF(HHV(H,TT),1);突破:=crOSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0} AND C/均价<1.09 AND TT>1 AND TT<240;DRAWTEXT(CROSS(C,REF(HHV(H,TT),1)) AND {HHVBARS(VOL,TT)=0 AND} C/均价<1.09 AND TT>=1 AND TT<240 ,前高, '←突'),COLORRED;主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0};DRAWTEXT(主力扫盘,前高, '←扫盘'),COLORYELLOW;{已主力扫盘:=BArslAST(主力扫盘)<13;DRAWTEXT(BARSLAST(主力扫盘)<8,(DYNAINFO(3))*9.5/10 , '↖已扫'),COLORGREEN;}全仓买进:=CROSS(C,REF(HHV(H,TT),1)) AND HHVBARS(VOL,TT)=0 AND C/均价<1.09 AND TT>1 AND TT<240 AND BARSLAST(主力扫盘)>=21;DRAWTEXT(全仓买进 ,前高, '←全仓'),COLORCYAN;VAR1:=Ema(EMA(C,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(C,S)-EMA(C,P))*10;空头:=EMA(能量,M1);BTJ11:=(C-JJ)/JJ<-0.03;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ3:=CROSS(能量,空头) AND 能量<-0.3;BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);有庄:=BTJ811;DRAWTEXT(BTJ811,C*0.999,'←有庄'),COLORRED;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLORGREEN,LINETHICK1;支撑:L1+P1*0.5/8,COLORYELLOW,LINETHICK1;{DRAWICON(LONGCROSS(支撑,C,2),C,25);DRAWICON(LONGCROSS(C,阻力,2),C,27);}{资金流入:=SUM(IF(C>REF(C,1),C*V,0),FROMOPEN);资金流出:=-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN);净资金:=(资金流入+资金流出)/10000;{DRAWTEXT_FIX(1,0.700,1-0.15,0,STRCAT(STRCAT('【净买】',CON2STR(净资金,1)),'万')),COLORRED;}KP:=DYNAINFO(4);ZX:=DYNAINFO(7);{分时量}{分时K}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*1200;CL:=500-(ZX/ZS-1)*1200;HI:=500-(ZG/ZS-1)*1200;LO:=500-(ZD/ZS-1)*1200;{N1:=IF(TIME2<125959,750,260);{360,860}N1:=IF(FROMOPEN>=120,250,750);Z1:=IF(ZX>=KP,255,0);Z2:=IF(ZX>=KP,0,255);Z3:=IF(ZX>=KP,0,255);XA_1:=MAX(DYNAINFO(3),DYNAINFO(5));XA_2:=MIN(DYNAINFO(3),DYNAINFO(6));XA_3:=XA_1-XA_2;XA_4:=XA_2+XA_3*7/8;XA_5:=XA_2+XA_3*0.5/8;DRAWTEXT(LONGCROSS(XA_5,CLOSE,2),CLOSE,'★买入'),COLORMAGENTA;DRAWICON(LONGCROSS(XA_5,CLOSE,2),CLOSE,25);DRAWTEXT(LONGCROSS(CLOSE,XA_4,2),CLOSE,'★卖出'),COLORFFCC00;DRAWICON(LONGCROSS(CLOSE,XA_4,2),CLOSE,24);XA_6:=DYNAINFO(4);XA_7:=DYNAINFO(5);XA_8:=DYNAINFO(6);XA_9:=DYNAINFO(11);XA_10:=CLOSE;XA_11:=BARSCOUNT(XA_10);XA_12:=SUM(VOL*CLOSE,0)/SUM(VOL,0);XA_13:=MA(XA_10,XA_11);XA_14:=XA_13+2*STD(XA_10,3);XA_15:=XA_13-2*STD(XA_10,3);DRAWICON(CROSS(XA_12,XA_13),XA_12,38);XA_16:=TIME>93000;XA_17:=XA_10/REF(CLOSE,1)>1.02;XA_18:=XA_10/REF(CLOSE,1)<0.98;XA_19:=(HHV(XA_10,XA_11)-LLV(XA_10,XA_11))/XA_10<0.05;XA_20:=SMA(VOL,30,1);XA_21:=(XA_20-LLV(LLV(XA_20,1),30))/(HHV(HHV(XA_20,1),30)-LLV(LLV(XA_20,1),30))>0.95;XA_22:=XA_17 OR XA_18;XA_23:=XA_22=0 AND XA_19 AND XA_21 AND CROSS(XA_12,XA_13);DRAWTEXT(FILTER(XA_23,10),XA_12,506),COLORYELLOW;XA_24:=XA_22=0 AND XA_19 AND XA_21 ANDCROSS(CLOSE,XA_12) AND CROSS(CLOSE,XA_13);DRAWTEXT(FILTER(XA_24,10),XA_12*0.99,507),COLORRED;MA5:MA.MA1#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.20,0,STRCAT(STRCAT('MA5:??',CON2STR(MA5,2)),'')),COLORW HITE;MA10:MA.MA2#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.15,0,STRCAT(STRCAT('MA10:',CON2STR(MA10,2)),'')),COLORYE LLOW;MA20:MA.MA3#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.10,0,STRCAT(STRCAT('MA20:',CON2STR(MA20,2)),'')),COLORM AGENTA;MA60:MA.MA4#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.05,0,STRCAT(STRCAT('MA60:',CON2STR(MA60,2)),'')),COLORGR EEN;攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FRO MOPEN)/FROMOPEN;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;攻击流量:=攻击量A+攻击量B,COLORSTICK;攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-Abs((攻击比-50)));资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;资金出入:=资金流入+资金流出,COLORSTICK;资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));DRAWTEXT_FIX(1,0.200,0.87,0,STRCAT(STRCAT('资金流量比',CON2STR(资金流量比,2)),'%买')),COLORCYAN;DRAWTEXT_FIX(1,0.000,0.87,0,STRCAT(STRCAT('资金攻击度',CON2STR(资金攻击度,2)),' %买')),COLORCYAN;A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLO SE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0);成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR),((100*A2)/A6),0);A8:=IF((ISLASTBAR),((100*A3)/A6),0);A9:=IF((ISLASTBAR),((100*A4)/A6),0);A10:=IF((ISLASTBAR),((100*A5)/A6),0);DD1:=1;AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');AAA0:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');AAA3:=STRCAT(STRCAT('散户买入',CON2STR((100*A4)/A6,0)),'%');AAA4:=STRCAT(STRCAT('散户卖出',CON2STR((100*A5)/A6,0)),'%');AAA5:=STRCAT(STRCAT('散户总买入',CON2STR((100*(A4-A5))/A6,0)),'%');DRAWTEXT_FIX(DD1=1,0.000,1.00,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0.150,1.00,0,AAA2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.300,1.00,0,AAA3),COLORRED;DRAWTEXT_FIX(DD1=1,0.450,1.00,0,AAA4),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.600,1.00,0,AAA0),LINETHICK5,COL ORYELLOW;DRAWTEXT_FIX(DD1=1,0.750,1.00,0,AAA5),LINETHICK5,COL ORCYAN;。

精品主图 精准K线买卖点提示通达信指标公式源码

精品主图 精准K线买卖点提示通达信指标公式源码

此主图能比较好地提示K线买卖点,每条K线通过用颜色来反映当天K线的情况,对新手来说,是一个很好的主图,高手飘过。

指标只是辅助,具体交易要结合大盘和个股情况来看。

黄线1:EMA((O+C)/2,10),COLORGREEN,LINETHICK2;黄线2:EMA((O+C)/2,8.5),POINTDOT,COLORGREEN,LINETHICK3;黄线3:EMA((O+C)/2,6),POINTDOT,COLORGREEN,LINETHICK3;黄线4:EMA((O+C)/2,4.5),POINTDOT,COLORGREEN,LINETHICK3;黄线5:EMA((L+H)/2,3),COLORGREEN;IF(黄线1>=REF(黄线1,0),黄线1,DRAWNULL),COLORRED,LINETHICK2;IF(黄线1<=REF(黄线1,1),黄线1,DRAWNULL),COLORGREEN,LINETHICK2;IF(黄线2>=REF(黄线2,1),黄线2,DRAWNULL),POINTDOT,COLORRED,LINETHICK1;IF(黄线2<=REF(黄线2,1),黄线2,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK1; IF(黄线3>=REF(黄线3,1),黄线3,DRAWNULL),POINTDOT,COLORRED,LINETHICK1;IF(黄线3<=REF(黄线3,1),黄线3,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK1; IF(黄线4>=REF(黄线4,1),黄线4,DRAWNULL),POINTDOT,COLORRED,LINETHICK1;IF(黄线4<=REF(黄线4,1),黄线4,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK1; IF(黄线5>=REF(黄线5,1),黄线5,DRAWNULL),COLORRED,LINETHICK1;IF(黄线5<=REF(黄线5,1),黄线5,DRAWNULL),COLORGREEN,LINETHICK1;强势区:=IF((EVERY(黄线1>=REF(黄线1,1),1)),5,0)COLOR0000FF,LINETHICK3;买进价:=((C-REF(黄线5,1))/8+黄线5)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);白K买进:IF(买进条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买进条件,O,C,2,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(黄线1,1))/20+黄线1)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,2,1),COLORYELLOW,LINETHICK2;KPD1:=EMA(EMA(CLOSE,9),9);KPD2:=100*WINNER(CLOSE*0.95);L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2));L4:=REF(L3,L3+1);L5:=L2;ROC:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC:=MA(CLOSE,22);UPPERC:=MIDC+2*STD(C,22);LOWERC:=MIDC-2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));控盘:=(KPD1-REF(KPD1,1))/REF(KPD1,1)*1000;启动:STICKLINE(IF(CROSS(控盘,0),10,0),O,C,0.5,0),COLOR00FFFF;拐点:STICKLINE(FILTER(CROSS(ROC,0),6),O,C,0.5,0),COLORFF8080;变盘:STICKLINE(CROSS(L1,L2) AND L5,O,C,0.5,0),COLOR0080FF;DRAWTEXT_FIX(1,0.0,0,0,'细K线颜色提示:黄-启动桔黄-变盘紫兰-拐点红-买点// 粗K线颜色提示:橙黄-买入品红-卖出//白K买进,黄K加码//∠45升次日高开抱,低开出'),COLOR00FFFF;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR111:=EMA(CLOSE,4)-EMA(CLOSE,13);AA222:=VAR111>=REF(VAR111,1);BB222:=VAR111<REF(VAR111,1);买入:DRAWICON(CROSS(AA222,BB222),L*0.994,38);卖出:DRAWICON(CROSS(BB222,AA222),H*1.004,39);JRH:=HHV(C,2);JRL:=LLV(C,2);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;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);{好}短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,0.1,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'★∠45升'),COLORLIBLUE;XXS:=MA(LOW,5)*(1-5/100);XXS1:=MA(HIGH,5)*(1+5/100);DRAWTEXT(CROSS(XXS1,C),L*0.98,'←开逃'),COLORWHITE;DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,L*0.98,'←明走'),COLORYELLOW;。

通达信主力资金买卖点分时主图指标公式

通达信主力资金买卖点分时主图指标公式

通达信主力资金买卖点分时主图指标公式攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FRO MOPEN)/FROMOPEN;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;攻击流量:=攻击量A+攻击量B,COLORSTICK;攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;资金出入:=资金流入+资金流出,COLORSTICK;资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));DRAWTEXT_FIX(1,0.250,0.88,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORCYAN;DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORCYAN;XG:HHV(H,480),DOTLINE,COLORRED;STICKLINE(FILTER(CROSS(C,REF(XG,1)),10) AND C>REF(XG,1),C*0.99,C,8,0),COLORGREEN;DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10) ANDC>REF(XG,1),C*0.99,'突破'),COLORYELLOW;RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;MA1:=REF(C,JY);MA2:=REF(MA1,JY);MA3:=REF(MA2,JY);MA4:=REF(MA3,JY);MA5:=REF(MA4,JY);MA6:=REF(MA5,JY);MA7:=REF(MA6,JY);MA8:=REF(MA7,JY);MA9:=REF(MA8,JY);CK:REFDATE((C+MA1+MA2+MA3+MA4+MA5+MA6+MA7 +MA8+MA9)/10,DATE),COLORAC59FF,CIRCLEDOT;DRAWTEXT(ISLASTBAR,CK,' 参考线'),COLOR0000FF;DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);DEA:=EMA(DIF,9);MACD1:=10*(DIF-DEA);MACD2:=EMA(MACD1,2);STICKLINE(MACD1>=MACD2 AND MACD1>=0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR00 00B4;STICKLINE(MACD1<MACD2 AND MACD1>0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR00B 400;STICKLINE(MACD1>=MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR5151A2;STICKLINE(MACD1<MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR887 43A;XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARS COUNT(CLOSE));主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);底:=1;1.02,NODRAW;高:=1.03;DRAWTEXT(CROSS(主力,1.02),C*0.999,'-拉升'),COLORCYAN;DRAWICON(CROSS(主力,1.04),C,24);DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORLIMAGENTA;A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));机构买盘:=(A2),LINETHICK2;机构卖盘:=(A3),LINETHICK2;散户买盘:=(A4);散户卖盘:=(A5);DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORMAGENTA;DRAWTEXT(LONGCROSS(支撑,C,2),C,'买'),COLORYELLOW;DRAWTEXT(LONGCROSS(C,阻力,2),C,'卖'),COLORGREEN;量价:=(VOL/CLOSE)/3;B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);B3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);B6:=B2+B3;DD1:=1;比:=B2/B3;BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%');BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%');BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(B2-B3))/B6,0)),'%');DRAWTEXT_FIX(DD1=1,0,0.70,0,BBB1),COLORRED;DRAWTEXT_FIX(DD1=1,0,0.75,0,BBB2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0,0.80,0,BBB3),COLOR00FFFF;。

简述“BS主图指标”买卖点分析(附源码)

简述“BS主图指标”买卖点分析(附源码)

简述“ BSfe 图指标”买卖点分析(附源码)BS 指标是一种买卖点指标,其中最主要的功能就是买卖点交易决策以及短线机会点的提示,投资者需要注意 的是 B 是买入信号, S 是卖出信号,具体的操作技巧通过股 票公式进行详细的讲解说明:BS 主图指标】Bs 指标的买卖点交易决策是,在出现黄色 K 线是买入大涨行情,具体的源码公式如下:JJ:=(CLOSE+HIGH+LOW)/3; E:=EMA(JJ,5); D:=REF(E,1); AA1:=AMOUNT/V; BB1:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L EE1:=VFF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,(L0W* 0.97),'・老鼠仓 '),COLOR4080FF;号, 信号, 侧重于抓取大波段的走势,投资者要注意把握其中的DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH* 1.03,' J顶COLORYELLOW;DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),LOW,'J底),COLORYELLOW;猎手之路:IF(MA(C,5)>REF(MA(C,5),1),MA(C,5),DRAWNULL)CO LORYELLOW,LINETHICK3;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:=O-B2;预测高一:=O+B2;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4O8OFF,NODRAW;开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:= 最高价2;BB:= 最低价2;CC:= 开盘价2;DD:= 收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;跌支撑价:=CCC;跌反转价:=DDD;EEE:=(EE+ 升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+ 开盘价1)/2;GGG:=( 预测低一+FFF)/2;预测低二:=GGG;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1)DRAWTEXT_FIX(1,0.04,0.15,0,' 预测低:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.10,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,' 元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.04,0.20,0,' 预测高:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.10,0.20,0,CONST( 预测高)),COLORFFFFFF;DRAWTEXT_FIX(1,0.15,0.20,0,''),COLORFFFFFF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.15,0,' 预测低二:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.29,0.15,0,' 元 DRAWTEXT_FIX(1,0.29,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.20,0,' 预测高二:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.24,0.20,0,CONST( 预测高 )),COLORFFFFFF;DRAWTEXT_FIX(1,0.29,0.20,0,' '),COLORFFFFFF,LINETHICK1;买回价 :=预测低二 *1.015; 卖出价 :=买回价 *(1.03);DRAWTEXT_FIX(1,0.04,0.10,0,'价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST( 卖出价)),COLOR8080FF;DRAWTEXT_FIX(1,0.15,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.10,0,' 买回价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.24,0.10,0,CONST( 买回价)),COLOR8080FF;卖出DRAWTEXT_FIX(1,0.01,0.02,0,' ★★ '),COLO RRED;DRAWTEXT_FIX(1,O.12,O.O5,O,'T+O 参考操作'),COLORFFFFFF;DRAWTEXT_FIX(1,0.01,0.08,0,' '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.12,0,' 思'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.16,0,' 后'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.20,0,' 行'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.08,0,' 谨'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.12,0,' 慎'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.16,0,' 操'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.20,0,' 作'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.24,0,'★'),COLORRED;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNTTOO;流入 :=AMOUNT* 买%/10000000000; DRAWTEXT_FIX (1,0.71,0.10,0,' 净流(亿):'),COLOR8080FF,COLORWHITE;流出:=AMOUNT/100000000-流入; 净流:=(流入-流出); 总额 3:=SUM (AMOUNT,3); 流入 3:=SUM ( 流入,3); 流出 3:=SUM ( 流出 ,3); 净流 3:=SUM ( 流入-流出,3); 总额 5:=SUM (AMOUNT,5); 流入 5:=SUM ( 流入,5); 流出 5:=SUM ( 流出 ,5); 净流 5:=SUM ( 流入-流出,5);画:=CONST (FINDHIGH ( 总额 10,0,190,1)); 换手率 1:=VOL/CAPITAL*100;换手率 3:=SUM (VOL/CAPITAL*100,3); 换手率 5:=SUM (VOL/CAPITAL*100,5); 换手率 10:=SUM (VOL/CAPITAL*100,10);总额 10:=SUM (AMOUNT,10); 流入 10:=SUM ( 流入,10); 流出 10:=SUM ( 流出 ,10);净流 10:=SUM ( 流入-流出,10);DRAWTEXT_FIX(1,0.71,0.15,0,' 换手率(%):'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.78,0.05,0,'1'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.83,0.05,0,'3'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.88,0.05,0,'5'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.93,0.05,0,'10'),COLOR8080FF,COLORWHITE;DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((流))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.10,0,CONST(( 净流3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.10,0,CONST(( 净流5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.10,0,CONST(( 净流10))),COLORYELLOW;DRAWNUMBER_FIX(1,0.78,0.15,0,CONST(( 换手率1))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.15,0,CONST(( 换手率3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.15,0,CONST(( 换手率CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1)); 5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.15,0,CONST(( 10))),COLORYELLOW;JB1:=REF(C,2)/REF(C,3)>1.095 ANDREF(C,2)=REF(H,2) AND REF(C,2)/REF(O,2)>1.03;JB2:=REF(C,1)/REF(C,2)REF(O,2); JB3:=C/REF(C,1)>1.05 AND O JBX:=JB1 AND JB2 AND JB3; DRAWTEXT(JBX,(LOW* 0.97),' '),COLORYELLOW;{MACD}MA5:MA(C,5),COLORFFFFFF;MAPJ:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+M A(CLOSE,24))/4,COLORFFFF00;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( V3:=(1+7/100)*(DMA(CLOSE,V1));换手率启动V5:=MA((LOW+HIGH+CLOSE)/3,5);撑:REFDATE(V2,DATE),D0TLINE,LINETHICK1,C0L0RL IRED;力:REFDATE(V3,DATE),D0TLINE,LINETHICK1,C0L0R GREEN;DRAWTEXT(ISLASTBAR, 阻力,'阻力'),COLORGREEN;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLORLIRED;顶点:IF(CURRBARSCOUNT低点:IF(CURRBARSCOUNTDRAWTEXT(ISLASTBAR, 顶点,'顶点'),COLORYELLOW;DRAWTEXT(ISLASTBAR, 低点,'底点'),COLORMAGENTA;VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) ANDCLOSE=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSEVAR4:=(REF(VAR3,1) ANDCLOSE=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR6:=(REF(VAR5,1) ANDCLOSE=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR8:=(REF(VAR7,1) ANDCLOSE=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARA:=(REF(VAR9,1) ANDCLOSE=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARC:=(REF(VARB,1) ANDCLOSE=REF(CLOSE,2));VARD:=(CLOSEVARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARF:=(REF(VARE,1) ANDCLOSE=REF(CLOSE,2));VAR10:=(REF(VARF,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR11:=(REF(VAR10,1) ANDCLOSE=REF(CLOSE,2));VAR12:=(REF(VAR11,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR13:=(REF(VAR12,1) ANDCLOSE=REF(CLOSE,2));VAR14:=(REF(VAR13,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR15:=(REF(VAR14,1) ANDCLOSE=REF(CLOSE,2));VAR16:=(REF(VAR15,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR17:=(REF(VAR16,1) ANDCLOSE=REF(CLOSE,2));VAR18:=(REF(VAR17,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR19:=((REF(VARD OR VARE OR VARF ORVAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 ORVAR15 OR VAR16 OR VAR17 OR VAR18,1)) ANDVAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 ORVARA OR VARB OR VARC,1)) AND VARD);DRAWICON(VAR1A,H,2);DRAWICON(VAR19,L,1);LOWER:MA(CLOSE,20)-1.2*STD(CLOSE,20),COLORRED,LINETHICK2;具体的走势形态,如图国农科技在日线中的走势形态,通过bs 指标的源码公式可以预测出当天的最高价以及最低价格,做买卖操作的参考点位,同时可以在标注的买卖点位进行分析。

好用的主图买卖指标公式有哪些?

好用的主图买卖指标公式有哪些?

好用的主图买卖指标公式有哪些?好用的主图买卖指标公式有哪些?现在投资股票的人很多,很多人买股票都是看这个股的走势如何,但是走势仅仅是一种外在的体现,所以我们要了解股票的买卖公式。

下面小编就给大家介绍一下有哪些主图买卖指标公式。

1、神秘主图买卖指标公式:EMA((2*CLOSE+HIGH+LOW)/4,5)COLORGREEN;IF(>=REF(,1),EMA((2*CLOSE+HIGH+LOW)/4,5),DRAWNULL), LINETHICK1,COLORRED;EMA((2*CLOSE+HIGH+LOW)/4,13)COLORGREEN,LINETHICK 2;REF(EMA((LOW+CLOSE+OPEN)3,25),1)LINETHICK3,COLORG REEN;IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE +OPEN)/3,28),1),REF(EMA((LOW+CLOSE+OPEN)/3,25),1),DRAWNULL),LINET HICK3,COLORRED;IF((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,DRAWNULL), POINTDOT,COLORRED;(((CLOSE+LOW)/2,125))/2),POINTDOT,COLORFF;PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2DRAWTEXT(BARPOS=SYSPARAM(2),SYSPARAM(4),STKNAM E+' '+STKLABEL+'\所属板块:'+BLKNAME),COLORFFFFFF;};2、买卖均线指标公式和大机构k线图指标公式一样:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),,DRAWNULL),COLO R0000FF;A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),C OLOR0000FF;A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/23、实用均线指标公式C1:=EMA(C,5);C2:=EMA(C,8);C3:=EMA(C,10);C4:=EMA(C,15);C5:=EMA(C,20);RSV:=C1NOTEXTA:C1,LINETHICK3,COLORRED;NOTEXTB:IF(RSV,C1,DRAWNULL),LINETHICK3,COLORBLUE;4、均线K线主图指标公式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) ANDCLOSE>=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);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;{红1}X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+1 5*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF (X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK2;{用法:黄托底买进,蓝压顶卖出。

主图底分型买卖点指标公式

主图底分型买卖点指标公式

主图底分型买卖点指标公式重心线:(H+L+O+C*3)/6;NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*NX+19*REF(NX,1)+18*REF(NX,2)+17*REF(NX,3)+16*REF (NX,4)+15*REF(NX,5)+14*REF(NX,6)+13*REF(NX,7)+12*REF(NX,8)+11*REF(NX,9)+10*REF(NX,10)+9*REF(NX,11)+8*REF(NX,12)+7*REF(NX,13)+6*REF(NX,14)+5*REF(NX,15)+4*REF(NX,16)+3*REF(NX,17)+2*REF(NX,18)+REF(NX,20))/210;牛熊线:MA(牛线,6),COLORGREEN,LINETHICK2;顶:=BB1+3*STD(BB1,13),COLORO04AFF;底:=BB1-3*STD(BB1,13),COLOR67FF00;KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF(LOW=LLV (LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1ANDREF(KU1,1)=0 AND KU1=0)));DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1AND REF(KD1,1)=0 ANDKD1=0)));HV:=H>UL AND H>REF(H,1);LV:=L<DL AND L<REF(L,1);GP:=BARSLAST(HV);DP:=BARSLAST (LV);IP:=IF(GP=0,DP,GP)>3;HHV1:=HV AND IP AND H>=HHV (H,BARSLAST(LV));LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));V00:=HIGH<REF(HIGH,1)AND LOW<REF(LOW,1);V01:=HIGH<REF (HIGH,1)AND LOW>REF(LOW,1);V03:=HIGH>REF(HIGH,1)ANDLOW>REF(LOW,1);V04:=REF(HIGH,2)<HIGH AND REF(LOW,2)<LOW AND REF(HIGH,2)>REF(HIGH,1)AND REF(LOW,2)<REF(LOW,1);V1:=COUNT(V00,6)>=3 AND COUNT(VO1 OR VO2,5)=0 ANDLLVBARS(LOW,6)=1 AND HHVBARS(HIGH,6)>=5 AND V03; V2:=COUNT(V00,7)>=3 AND COUNT(VO1 OR VO2,6)=1 AND LLVBARS(LOW,7)=2AND HHVBARS(HIGH,7)>=6 AND VO4; V3:=COUNT(V00,7)>=3 AND COUNT(VO1 OR VO2,6)=1 AND LLVBARS(LOW,7)=1AND HHVBARS(HIGH,7)>=6 AND VO3; V4:=COUNT(V00,8)>=3 AND COUNT(VO1 OR VO2,7)<=2 AND LLVBARS(LOW,8)=2 AND HHVBARS(HIGH,8)>=7 AND VO4; V5:=COUNT(V00,8)>=3 AND COUNT(V01 OR VO2,7)<=2 AND LLVBARS(LOW,8)=1 AND HHVBARS(HIGH,8)>=7 AND VO3; V6:=COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9)=2 AND HHVBARS(HIGH,9)>=8 AND VO4; V7:=COUNT(V00,9)>=3 AND COUNT(VO1 OR VO2,8)<=3 AND LLVBARS(LOW,9)=1 AND HHVBARS(HIGH,9)>=8 AND VO3; V8:=COUNT(V00,10)>=3 AND COUNT(VO1 OR VO2,9)<=4 AND LLVBARS(LOW,10)=2 AND HHVBARS(HIGH,10)>=9 AND VO4; V9:=COUNT(V00,10)>=3 AND COUNT(VO1 OR VO2,9)<=4 AND LLVBARS(LOW,10)=1 ANDHHVBARS(HIGH,10)>=9 AND VO3; V10:=COUNT(V00,11)>=3 AND COUNT(VO1 OR VO2,10)<=5 AND LLVBARS(LO W,11)=2 AND HHVBARS(HIGH,11)>=10 AND VO4; XG:=V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10; HV00:=HIGH>REF(HIGH,1)ANDLOW>REF(LOW,1);HV01:=HIGH<REF(HIGH,1)ANDLOW>REF(LOW,1);HVO2:=HIGH>REF(HIGH,1)AND LOW<REF(LOW,1);HVO3:=HIGH<REF(HIGH,1)AND LOW<REF(LOW,1);HVO4:=REF(HIGH,2)>HIGH AND REF(LOW,2)>LOW ANDREF(HIGH,2)>REF(HIG H,1)AND REF(LOW,2)<REF(LOW,1);HV1:=COUNT(HV00,6)>=3 AND COUNT(HVO1 OR HVO2,5)=0 AND HHVBARS(HI GH,6)=1AND LLVBARS(LOW,6)>=5 AND HV03;HV2:=COUNT(HV00,7)>=3 AND COUNT(HVO1 OR HVO2,6)=1 AND HHVBARS(HI GH,7)=2 AND LLVBARS(LOW,7)>=6 AND HV04;HV3:=COUNT(HV00,7)>=3 AND COUNT(HVO1 OR HVO2,6)=1 AND HHVBARS(HI GH,7)=1AND LLVBARS(LOW,7)>=6 AND HVO3;HV4:=COUNT(HV00,8)>=3 AND COUNT(HVO1 OR HVO2,7)<=2 AND HHVBARS(H IGH,8)=2 AND LLVBARS(LOW,8)>=7 AND HVO4;HV5:=COUNT(HV00,8)>=3 AND COUNT(HVO1 OR HVO2,7)<=2 ANDHHVBARS(H IGH,8)=1 AND LLVBARS(LOW,8)>=7 AND HV03;HV6:=COUNT(HV00,9)>=3 AND COUNT(HVO1 OR HVO2,8)<=3 AND HHVBARS(H IGH,9)=2 AND LLVBARS(LOW,9)>=8 AND HV04;HV7:=COUNT(HV00,9)>=3 AND COUNT(HVO1 OR HVO2,8)<=3 AND HHVBARS(H IGH,9)=1 AND LLVBARS(LOW,9)>=8 AND HVO3;HV8:=COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)<=4 AND HHVBARS(HIGH,10)=2 AND LLVBARS(LOW,10)>=9 AND HV04;HV9:=COUNT(HV00,10)>=3 AND COUNT(HVO1 OR HVO2,9)<=4 AND HHVBARS(HIGH,10)=1 AND LLVBARS(LOW,10)>=9 AND HV03;HV10:=COUNT(HV00,11)>=3 AND COUNT(HVO1 OR HVO2,10)<=5 AND HHVBAR S(HIGH,11)=2 AND LLVBARS(LOW,11)>=10 AND HVO4;HXG:=HV1 OR HV2 OR HV3 OR HV4 OR HV5 OR HV6 OR HV7 OR HV8 OR HV9OR HV10;底分型:FILTER(XG=1,5)AND重心线<10.5AND牛线<12AND牛熊线<10.2,COLOR YELLOW,NODRAW;顶分型:FILTER(HXG=1,3),NODRAW;DRAWBAND(BBI,RGB(97,95,00),顶,RGB(97,95,00));DRAWBAND (BBI,RGB(25,75,150),底,RGB(25,75,250));DRAWTEXT_FIX (1,0.02,0,0,'*微信公众号:(程序化指标源码)*”),COLORRED;{用DRAWLINE函数(属于未来函数)绘制直线段,不喜欢的可以删除下面两句公式}DRAWLINE(LV1,LOW,HHV1,HIGH,0),COLORYELLOW,LINETHICK2;DRAWLINE(HHV1,HIGH,LV1,LOW,O),COLORMAGENTA,LINETHICK2;STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR000055;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000077;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORO000FF;STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR990000;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCCOO;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN;DRAWTEXT(FILTER(XG=1,5)AND 重心线<10.5AND牛线<12AND牛熊线<10.2,L*0.97,底分型),COLORYELLOW;DRAWTEXT(FILTER(HXG=1,3),H*1.02,顶分型);。

简述“BS主图指标”买卖点分析(附源码)

简述“BS主图指标”买卖点分析(附源码)

简述“ BSfe 图指标”买卖点分析(附源码)BS 指标是一种买卖点指标,其中最主要的功能就是买卖点交易决策以及短线机会点的提示,投资者需要注意 的是 B 是买入信号, S 是卖出信号,具体的操作技巧通过股 票公式进行详细的讲解说明:BS 主图指标】Bs 指标的买卖点交易决策是,在出现黄色 K 线是买入大涨行情,具体的源码公式如下:JJ:=(CLOSE+HIGH+LOW)/3; E:=EMA(JJ,5); D:=REF(E,1); AA1:=AMOUNT/V; BB1:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L EE1:=VFF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,(L0W* 0.97),'・老鼠仓 '),COLOR4080FF;号, 信号, 侧重于抓取大波段的走势,投资者要注意把握其中的DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH* 1.03,' J顶COLORYELLOW;DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),LOW,'J底),COLORYELLOW;猎手之路:IF(MA(C,5)>REF(MA(C,5),1),MA(C,5),DRAWNULL)CO LORYELLOW,LINETHICK3;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:=O-B2;预测高一:=O+B2;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4O8OFF,NODRAW;开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:= 最高价2;BB:= 最低价2;CC:= 开盘价2;DD:= 收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;跌支撑价:=CCC;跌反转价:=DDD;EEE:=(EE+ 升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+ 开盘价1)/2;GGG:=( 预测低一+FFF)/2;预测低二:=GGG;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1)DRAWTEXT_FIX(1,0.04,0.15,0,' 预测低:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.10,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,' 元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.04,0.20,0,' 预测高:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.10,0.20,0,CONST( 预测高)),COLORFFFFFF;DRAWTEXT_FIX(1,0.15,0.20,0,''),COLORFFFFFF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.15,0,' 预测低二:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.29,0.15,0,' 元 DRAWTEXT_FIX(1,0.29,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.20,0,' 预测高二:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.24,0.20,0,CONST( 预测高 )),COLORFFFFFF;DRAWTEXT_FIX(1,0.29,0.20,0,' '),COLORFFFFFF,LINETHICK1;买回价 :=预测低二 *1.015; 卖出价 :=买回价 *(1.03);DRAWTEXT_FIX(1,0.04,0.10,0,'价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST( 卖出价)),COLOR8080FF;DRAWTEXT_FIX(1,0.15,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.10,0,' 买回价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.24,0.10,0,CONST( 买回价)),COLOR8080FF;卖出DRAWTEXT_FIX(1,0.01,0.02,0,' ★★ '),COLO RRED;DRAWTEXT_FIX(1,O.12,O.O5,O,'T+O 参考操作'),COLORFFFFFF;DRAWTEXT_FIX(1,0.01,0.08,0,' '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.12,0,' 思'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.16,0,' 后'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.20,0,' 行'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.08,0,' 谨'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.12,0,' 慎'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.16,0,' 操'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.20,0,' 作'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.24,0,'★'),COLORRED;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNTTOO;流入 :=AMOUNT* 买%/10000000000; DRAWTEXT_FIX (1,0.71,0.10,0,' 净流(亿):'),COLOR8080FF,COLORWHITE;流出:=AMOUNT/100000000-流入; 净流:=(流入-流出); 总额 3:=SUM (AMOUNT,3); 流入 3:=SUM ( 流入,3); 流出 3:=SUM ( 流出 ,3); 净流 3:=SUM ( 流入-流出,3); 总额 5:=SUM (AMOUNT,5); 流入 5:=SUM ( 流入,5); 流出 5:=SUM ( 流出 ,5); 净流 5:=SUM ( 流入-流出,5);画:=CONST (FINDHIGH ( 总额 10,0,190,1)); 换手率 1:=VOL/CAPITAL*100;换手率 3:=SUM (VOL/CAPITAL*100,3); 换手率 5:=SUM (VOL/CAPITAL*100,5); 换手率 10:=SUM (VOL/CAPITAL*100,10);总额 10:=SUM (AMOUNT,10); 流入 10:=SUM ( 流入,10); 流出 10:=SUM ( 流出 ,10);净流 10:=SUM ( 流入-流出,10);DRAWTEXT_FIX(1,0.71,0.15,0,' 换手率(%):'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.78,0.05,0,'1'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.83,0.05,0,'3'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.88,0.05,0,'5'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.93,0.05,0,'10'),COLOR8080FF,COLORWHITE;DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((流))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.10,0,CONST(( 净流3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.10,0,CONST(( 净流5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.10,0,CONST(( 净流10))),COLORYELLOW;DRAWNUMBER_FIX(1,0.78,0.15,0,CONST(( 换手率1))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.15,0,CONST(( 换手率3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.15,0,CONST(( 换手率CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1)); 5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.15,0,CONST(( 10))),COLORYELLOW;JB1:=REF(C,2)/REF(C,3)>1.095 ANDREF(C,2)=REF(H,2) AND REF(C,2)/REF(O,2)>1.03;JB2:=REF(C,1)/REF(C,2)REF(O,2); JB3:=C/REF(C,1)>1.05 AND O JBX:=JB1 AND JB2 AND JB3; DRAWTEXT(JBX,(LOW* 0.97),' '),COLORYELLOW;{MACD}MA5:MA(C,5),COLORFFFFFF;MAPJ:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+M A(CLOSE,24))/4,COLORFFFF00;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( V3:=(1+7/100)*(DMA(CLOSE,V1));换手率启动V5:=MA((LOW+HIGH+CLOSE)/3,5);撑:REFDATE(V2,DATE),D0TLINE,LINETHICK1,C0L0RL IRED;力:REFDATE(V3,DATE),D0TLINE,LINETHICK1,C0L0R GREEN;DRAWTEXT(ISLASTBAR, 阻力,'阻力'),COLORGREEN;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLORLIRED;顶点:IF(CURRBARSCOUNT低点:IF(CURRBARSCOUNTDRAWTEXT(ISLASTBAR, 顶点,'顶点'),COLORYELLOW;DRAWTEXT(ISLASTBAR, 低点,'底点'),COLORMAGENTA;VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) ANDCLOSE=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSEVAR4:=(REF(VAR3,1) ANDCLOSE=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR6:=(REF(VAR5,1) ANDCLOSE=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR8:=(REF(VAR7,1) ANDCLOSE=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARA:=(REF(VAR9,1) ANDCLOSE=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARC:=(REF(VARB,1) ANDCLOSE=REF(CLOSE,2));VARD:=(CLOSEVARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARF:=(REF(VARE,1) ANDCLOSE=REF(CLOSE,2));VAR10:=(REF(VARF,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR11:=(REF(VAR10,1) ANDCLOSE=REF(CLOSE,2));VAR12:=(REF(VAR11,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR13:=(REF(VAR12,1) ANDCLOSE=REF(CLOSE,2));VAR14:=(REF(VAR13,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR15:=(REF(VAR14,1) ANDCLOSE=REF(CLOSE,2));VAR16:=(REF(VAR15,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR17:=(REF(VAR16,1) ANDCLOSE=REF(CLOSE,2));VAR18:=(REF(VAR17,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR19:=((REF(VARD OR VARE OR VARF ORVAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 ORVAR15 OR VAR16 OR VAR17 OR VAR18,1)) ANDVAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 ORVARA OR VARB OR VARC,1)) AND VARD);DRAWICON(VAR1A,H,2);DRAWICON(VAR19,L,1);LOWER:MA(CLOSE,20)-1.2*STD(CLOSE,20),COLORRED,LINETHICK2;具体的走势形态,如图国农科技在日线中的走势形态,通过bs 指标的源码公式可以预测出当天的最高价以及最低价格,做买卖操作的参考点位,同时可以在标注的买卖点位进行分析。

通达信超准买进卖出主图指标公式

通达信超准买进卖出主图指标公式

通达信超准买进卖出主图指标公式O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINET HICK0;O2:EMA(O1,3),COLORFF00FF,LINETHICK0;O3:EMA(O2,3),COLOR00FF00,LINETHICK0;MMM:=MA(CLOSE,20);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 ORVAR14 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 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORF F3300;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORF F5500;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORF F7700;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORF F9900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORF FBB00;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORF FDD00;DRAWTEXT(FILTER(VAR19=1,5),LOW,' 买进'),COLORFF00FF;DRAWICON(FILTER(VAR19=1,5),LOW,9);DRAWTEXT(FILTER(VAR1A=1,5),HIGH,' 逃顶'),COLOR00FF00;。

主图指标公式买卖提示

主图指标公式买卖提示

主图指标公式买卖提⽰主图指标公式买卖提⽰1.博弈均线A1:=DATE <= 13181231;⼯作线:(EMA(C,14)) * A1,POINTDOT,LINETHICK4,COLORYELLOW;AA05:MA(C,5),LINETHICK3,COLOR0099CC;五⽇乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND AA05>REF(AA05,1), AA05,DRAWNULL),LINETHICK2,COLORRED;AA10:MA(C,10), LINETHICK0;AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND AA05<REF(AA05,1), AA05,DRAWNULL),LINETHICK2,COLORFFFF00;AA30:MA(C,30), LINETHICK0;三拾⽇乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾⽇乖离率>REF(三拾⽇乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND AA05<REF(AA05,1) AND 三拾⽇乖离率<REF(三拾⽇乖离率,1) AND AA10<REF(AA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←-----加仓'),COLORYELLOW;JC:=CROSS(0,五⽇乖离率) AND 三拾⽇乖离率<REF(三拾⽇乖离率,1) AND AA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五⽇乖离率,0),3)>=1 AND 三拾⽇乖离率>REF(三拾⽇乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买⼊:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN;DRAWTEXT(买⼊,LOW*0.98,'←买⼊'),COLORYELLOW;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));VAR5:=CROSS(CCI,-100);VAR6:=CCI>=200;DRAWTEXT(VAR6,HIGH*1.02,'←----⼩⼼'),COLORYELLOW;SJ:=VAR5;STICKLINE(SJ,H,L,0.6,0),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(84,RSI) , HIGH,'←-----逃'),COLORGREEN;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'←---⼤胆搏 '),COLORYELLOW;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;⽣命线:EMA(X,13),LINETHICK2,COLORMAGENTA;2.天机均线指标公式2.天机均线指标公式EMA250:MA(C,250),COLORRED;EMA6:MA(C,6),COLORRED LINETHICK2;EMA18:MA(C,18),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;EMA144:MA(C,144),COLORGREEN;EMA288:MA(C,288),COLORBLUE;中线【买⼊】:=COUNT(CLOSE<EMA18,5)=4 ANDCLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=REF(EMA18,1),LINETHICK,COLORRED;DRAWTEXT(中线【买⼊】,LOW*0.95,' 中线【买⼊】'),COLORRED;VL:=REF(LOW,1);VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14:=MA(VAR12,13);VAR15:=LLV(LOW,34);VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE;3.通达信上出下买+三背离主图指标公式A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分⽔岭:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK2;操作线:分⽔岭-(EMA(C,3)-分⽔岭),COLOR00FFFF,LINETHICK2;PM:MA(C,5),COLORWHITE,LINETHICK2;IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK2;S:=(PM>操作线);DD:=分⽔岭<REF(分⽔岭,1);IF(DD,分⽔岭,DRAWNULL),COLOR00FF00,LINETHICK2;IF(S,分⽔岭,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK4;DRAWICON(CROSS(分⽔岭,操作线),分⽔岭-0.1,1);{买⼊红箭头}A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA"); DRAWTEXT(B1>0,L-0.02,4),COLOR00FFFF;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");DRAWTEXT(B2,L-0.10,5),COLORFF00FF;{KDJ底背离}A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2"); DRAWTEXT(B3>0,L-0.18,6),COLOR0000FF;{RSI底背离}C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF"); DRAWTEXT(D1>0,H+0.16,4),COLOR00FF00;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");DRAWTEXT(D2>0,H+0.08,5),COLORFFFFCC;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1"); DRAWTEXT(D3>0,H+0.04,6),COLORFF9900;{RSI顶背离};STICKLINE(C>REF(C,1),H,L,0,1),COLOR0000FF;STICKLINE(C>REF(C,1),O,C,3.2,0),COLOR000055;STICKLINE(C>REF(C,1),O,C,2.7,0),COLOR000077;STICKLINE(C>REF(C,1),O,C,2.1,0),COLOR000099;STICKLINE(C>REF(C,1),O,C,1.5,0),COLOR0000BB;STICKLINE(C>REF(C,1),O,C,0.9,0),COLOR0000DD;STICKLINE(C<REF(C,1),O,C,0.3,0),COLOR0000FF;STICKLINE(C<REF(C,1),H,L,0,1),COLORFFFF00;STICKLINE(C<REF(C,1),O,C,3.2,0),COLOR990000;STICKLINE(C<REF(C,1),O,C,2.7,0),COLORCC0000;STICKLINE(C<REF(C,1),O,C,2.1,0),COLORFF4400;STICKLINE(C<REF(C,1),O,C,1.5,0),COLORFF8800;STICKLINE(C<REF(C,1),O,C,0.9,0),COLORFFCC00;STICKLINE(C<REF(C,1),O,C,0.3,0),COLORFFFF00;STICKLINE(C=REF(C,1),H,L,0,1),COLORFFFFFF;STICKLINE(C=REF(C,1),O,C,3.2,0),COLOR555555;STICKLINE(C=REF(C,1),O,C,2.7,0),COLOR777777;STICKLINE(C=REF(C,1),O,C,2.1,0),COLOR999999;STICKLINE(C=REF(C,1),O,C,1.5,0),COLORBBBBBB;STICKLINE(C=REF(C,1),O,C,0.9,0),COLORDDDDDD;STICKLINE(C=REF(C,1),O,C,0.3,0),COLORFFFFFF;4.通达信均线买卖主图指标公式MA1:MA(C,2)COLORWHITE,LINETHICK2;MA2:MA(C,8)COLORYELLOW,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);Y:=VOL<MA(VOL,5);买:=CROSS(MA1,MA2);价买:=C>MA1;⼩⼈:DRAWICON((K<40 AND 价买 AND CROSS(MA1,MA2) AND Y),L-0.06,15);B买:DRAWICON((CROSS(C,MA(C,3)) AND C<MA(C,20) AND CLOSE>OPEN AND Y),L-0.15,1);⾦叉:DRAWICON((CROSS(MA1,MA2) AND CLOSE>OPEN),L-0.25,25);卖:=CROSS(MA2,MA1);价卖:=C<MA1;S卖:DRAWICON((CROSS(MA(C,3),C) AND C<MA(C,4) AND CLOSE<OPEN),L+0.7,2);5.买卖趋势VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;买⼊:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;幅度:100*(卖出-买⼊)/买⼊,NODRAW;MA1:=MA(VAR1,3);STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN; STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN; STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;STICKLINE(买⼊>LOW AND 买⼊<HIGH,买⼊,MIN(MIN(OPEN,CLOSE),买⼊),3,0),COLORMAGENTA; STICKLINE(买⼊>MIN(C,O) AND 买⼊<MAX(C,O),买⼊,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(买⼊>LOW AND 买⼊<HIGH,买⼊,LOW,0,0),COLORMAGENTA;STICKLINE(买⼊>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;STICKLINE(买⼊>HIGH,HIGH,LOW,0,0),COLORMAGENTA;DRAWTEXT(CROSS(LOW,买⼊),LOW*0.95,'买'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'卖'),COLORGREEN;6.买卖区间买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050; STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR404050; DRAWKLINE(H,O,L,C);指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);界:=MA(CLOSE,27);B买:IF(CROSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;S卖:IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;DRAWICON(CROSS(买线,卖线),L,1);DRAWICON(CROSS(卖线,买线),H,2);DRAWICON(CROSS(卖线,买线),H,2);7.不吃头不吃尾的公式就是好JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);VAR3:=IF(C<200 ,MA(COST(80),3),2500),NODRAW;VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR6:=(VAR5 + ((VAR5 * 6) / 100));春买:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;阴观望:=RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,NODRAW,COLOR999999;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRAW;离场:=IF(红持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;进:=IF(阴观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLOR00FF00,NODRAW;STICKLINE(ISLASTBAR AND (红持股 OR REF(红持股,1)=1),今离场价,今离场价,20,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (阴观望 OR REF(阴观望,1)=1),今进场价,今进场价,20,1),COLOR00FF00;XX2:EMA(EMA((CLOSE+LOW+HIGH)/3,3),23),COLORGREEN, LINETHICK2;XX3:=REF(XX2,1);IF(XX2>XX3,XX2,DRAWNULL),COLORRED, LINETHICK2;B11:=MA(CLOSE,1);B22:=SMA(SMA(SMA(B11,2,1),2,1),2,1) ;SMA2:=MA(B22,3) ;DRAWBAND(B22,RGB(255,0,0),SMA2,RGB(0,255,0));下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压⼒2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;压⼒位:=IF(ISLASTBAR,压⼒2,DRAWNULL),NODRAW;底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;STICKLINE(ISLASTBAR ,压⼒位,压⼒位,40,0),COLORFF00FF,LINETHICK2;STICKLINE(ISLASTBAR ,底部位,底部位,35,0),COLOR00FFFF,LINETHICK2;B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND (B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);STICKLINE(持股,B1,CLOSE,3,0),COLOR000099;变盘:=CLOSE=CMAX AND B1=CMIN;STICKLINE(变盘,B2,CLOSE,3,0),COLOR0099EF;下跌:=(CLOSE=CMIN AND (B1<B2 OR B1<B3)) OR ((B1=CMIN AND (B2=CMAX OR B3=CMAX)) AND CLOSE<B2) OR(B2=CMIN AND B3=CMAX AND CLOSE<B1) OR (B3=CMIN AND CLOSE<B1 AND CLOSE<B2);STICKLINE(下跌,B1,CLOSE,3,0),COLOR009900;STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,3,0),COLOR009900;买⼊:=(B1=CMIN AND CLOSE>=B2) OR ((B2=CMIN AND B1<=B3) OR(B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1);STICKLINE(买⼊,B1,B2,3,0),COLOR00FFFF;抛售:=(B1=CMAX AND CLOSE<B2) OR ((B2=CMAX AND B1>B3) OR(B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1);STICKLINE(抛售,B1,B2,3,0),COLORFFFFFF;STICKLINE(C>=O,L,H,0,1),COLORRED;STICKLINE(C<O,H,L,0,1),COLORGREEN;STICKLINE(持股 OR 买⼊,O,C,1.5,0),COLORRED;STICKLINE(下跌 OR 抛售,O,C,1.5,0),COLORGREEN;STICKLINE(C>0,O,C,0,0),COLORFFFFFF;MMA:=CONST(HHV(H,90));MMB:=CONST(LLV(L,90));WN:=3;{原码 N:=3;}WA1:=REF(H,WN)=HHV(H,2*WN+1); WB1:=FILTER(WA1,WN); WC1:=BACKSET(WB1,WN+1); WD1:=FILTER(WC1,WN);{⾼点} WA2:=REF(L,WN)=LLV(L,2*WN+1); WB2:=FILTER(WA2,WN); WC2:=BACKSET(WB2,WN+1); WD2:=FILTER(WC2,WN);{低点} WE1:=(REF(LLV(L,2*WN),1)+REF(HHV(H,2*WN),1))/2;WE2:=(H+L)/2;{⾼低点出现在同⼀K线上时可作取舍}WH1:=(WD1 AND NOT(WD2 AND WE1>=WE2)) OR ISLASTBAR OR BARSCOUNT(C)=1;WL1:=(WD2 AND NOT(WD1 AND WE1<WE2)); WH2:=WD1 AND NOT(WD2 AND WE1>=WE2);WX1:=REF(BARSLAST(WH1),1)+1; WF1:=BACKSET(WH1 AND COUNT(WL1,WX1)>0,LLVBARS(IF(WL1,L,10000),WX1)); WG1:=WF1>REF(WF1,1); WI1:=BACKSET(WG1,2); WLD:=WI1>REF(WI1,1);{过滤后低点}WL2:=WLD OR ISLASTBAR OR BARSCOUNT(C)=1;WX2:=REF(BARSLAST(WL2),1)+1; WF2:=BACKSET(WL2 AND COUNT(WH2,WX2)>0,HHVBARS(IF(WH2,H,0),WX2));WG2:=WF2>REF(WF2,1); WI2:=BACKSET(WG2,2); WHD:=WI2>REF(WI2,1);{过滤后⾼点}WR1:=BACKSET(ISLASTBAR,BARSLAST(WHD)+1); WS1:=WR1>REF(WR1,1); {前⼀⾼}WT1:=BACKSET(ISLASTBAR,BARSLAST(WLD)+1); WU1:=WT1>REF(WT1,1); {前⼀低}WR2:=BACKSET(WS1,REF(BARSLAST(WHD),1)+2); WS2:=WR2>REF(WR2,1); {前⼆⾼}WT2:=BACKSET(WU1,REF(BARSLAST(WLD),1)+2); WU2:=WT2>REF(WT2,1); {前⼆低}WT3:=BACKSET(WU2,REF(BARSLAST(WLD),1)+2); WU3:=WT3>REF(WT3,1); {前三低}WT4:=BACKSET(WU3,REF(BARSLAST(WLD),1)+2); WU4:=WT4>REF(WT4,1); {前四低}WR3:=BACKSET(WS2,REF(BARSLAST(WHD),1)+2); WS3:=WR3>REF(WR3,1); {前三⾼}WR4:=BACKSET(WS3,REF(BARSLAST(WHD),1)+2); WS4:=WR4>REF(WR4,1); {前四⾼};压⼒1:=DRAWLINE(WS2,H,WS1,H,1),COLOR008888; {★压⼒1:}⽀撑1:=DRAWLINE(WU2,L,WU1,L,1),COLOR008888;{★⽀撑1:}压⼒2:=DRAWLINE(WS3,H,WS2,H,1),COLOR888000; {★压⼒2:}⽀撑2:=DRAWLINE(WU3,L,WU2,L,1),COLOR888000;{★⽀撑2:}压⼒3:=DRAWLINE(WS4,H,WS3,H,1),COLOR0000CC;{★压⼒3:}⽀撑3:=DRAWLINE(WU4,L,WU3,L,1),COLOR0000CC;{★⽀撑3:};BSC:=CONST(MAX(BARSLAST(WS4),BARSLAST(WU4))*3),NODRAW;IF(BETWEEN(压⼒1,MMA,MMB),压⼒1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(⽀撑1,MMA,MMB),⽀撑1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(压⼒2,MMA,MMB),压⼒2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(⽀撑2,MMA,MMB),⽀撑2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(压⼒3,MMA,MMB),压⼒3,DRAWNULL),COLOR0000CC,LINETHICK1;IF(BETWEEN(⽀撑3,MMA,MMB),⽀撑3,DRAWNULL),COLOR0000CC,LINETHICK1;底:=SUM(MA(CLOSE,10),9)/11.114;DRAWTEXT(CROSS(LOW,底) AND REF(底,1)>REF(HIGH,1) OR CROSS(HIGH,底),L,'---铁底'),COLOR00FF00;X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;DK:=SMA(WZ4,3,1)*1.5;DD:=SMA(DK,3,1);DJ:=3*DK-2*DD;WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);WZ6:=EMA(WZ5,9);WZ7:=2*(WZ5-WZ6);WZ8:=REF(WZ7,1);WZ9:=CROSS(WZ8,WZ7) AND WZ8>0;VAR1T:=EMA(CLOSE,8);VAR2T:=EMA(VAR1T,20);VAR3T:=CROSS(VAR1T,VAR2T);VAR4T:=VAR1T<MA(CLOSE,120);VAR5T:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR6T:=SMA(VAR5T,5,1);VAR7T:=SMA(VAR6T,8,1);VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T<20;VAR9T:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8T;VARA:=IF(CLOSE>1000,VAR8T,VAR9T);起步:=VAR3T AND VAR4T;逃遁:=VARA;XL1:=EMA(CLOSE,10)/100;XL2:=MA((XL1-REF(XL1,10))/REF(XL1,10),3)*100;XL3:=MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2>X3,LOW,'←反弹'),COLOR0000FF;DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(VAR1T,4)-LLV(VAR1T,4))*4*25,87.5) AND VAR1T<40,87,0) AND X2>X3,LOW,'←短买'),COLOR0000AA;DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-(EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2)))*5.8,0.47),LOW,0) AND X2>X DRAWTEXT(CROSS(X4,X5),HIGH+C*0.01,'←减'),COLORB4FF00;DRAWTEXT(FILTER((WZ9 AND DJ>250) OR X9 ,5),HIGH+C*0.02,'←跑'),COLORBCFF8B;STICKLINE(起步>0,HIGH,LOW,0.8,0),COLOR00FFFF;STICKLINE(起步>0,OPEN,CLOSE,5,0),COLOR00FFFF;DRAWTEXT(逃遁>0,HIGH,'●←逃'),COLOR7FFFD6;X1P:=(C+L+H)/3;BB13:=ATAN(EMA(X1P,13)-REF(EMA(X1P,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1P,13)>REF(EMA(X1P,8),1),10),EMA8,'∠45上升'),COLORWHITE;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW),'★⼤胆搏 '),COLOR00FFFF;L23:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;L24:=(HIGH+LOW+CLOSE)/3;L25:=(L24-MA(L24,14))/(0.015*AVEDEV(L24,14));L26:=(L24-MA(L24,70))/(0.015*AVEDEV(L24,70));L27:=IF(L25>=150 AND L25<200 AND L26>=150 AND L26<200,10,0);L28:=IF(L25<=-150 AND L25>-200 AND L26<=-150 AND L26>-200,-10,L27);L29:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);L30:=IF(L29<90,L29,100);L31:=IF(L23>0,L23,0);XL11:=(IF(L28>=200 AND L25>=150,15,IF(L26<=-200 AND L25<=-150,-15,L28)))+60;XL22:=L31>48 AND XL11>60 AND L30<100;DRAWTEXT(XL22 AND COUNT(XL22,30)=1,L,'⼤笔买⼊'),COLORFF00FF;VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'⼤资⾦进场'),COLORFF00FF;12.红星闪耀MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLO DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),C A8:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6);UP1:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(EMA(CLOSE,19),EMA(CLOSE,7)))+1),LLV(L,BARSLAST(CROSS(EMA(CLOSE,19),EMA(CLOSE,7)))+1),H=HHV(H,BARSLAST(CROSS(EMA(CLOSE,7),EMA(C DOWN1:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(EMA(CLOSE,7),EMA(CLOSE,19)))+1),HHV(H,BARSLAST(CROSS(EMA(CLOSE,7),EMA(CLOSE,19)))+1),L=LLV(L,BARSLAST(CROSS(EMA(CLOSE,19),E 买:=IF((LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1),DRAWNULL,100);卖:=IF(DOWN = UP AND DOWN<REF(UP,1) AND CROSS(MA(A8,2),A8), DRAWNULL,100);DRAWTEXT(买=100,L*0.99,'B'),COLORYELLOW;DRAWTEXT(卖=100,H*1.06,'S'),COLOR00FF00;红星闪耀2MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLO DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),C A8:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6);UP1:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(EMA(CLOSE,19),EMA(CLOSE,7)))+1),LLV(L,BARSLAST(CROSS(EMA(CLOSE,19),EMA(CLOSE,7)))+1),H=HHV(H,BARSLAST(CROSS(EMA(CLOSE,7),EMA(C DOWN1:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(EMA(CLOSE,7),EMA(CLOSE,19)))+1),HHV(H,BARSLAST(CROSS(EMA(CLOSE,7),EMA(CLOSE,19)))+1),L=LLV(L,BARSLAST(CROSS(EMA(CLOSE,19),E 买:=IF((LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1),DRAWNULL,100);卖:=IF(DOWN = UP AND DOWN<REF(UP,1) AND CROSS(MA(A8,2),A8), DRAWNULL,100);DRAWTEXT(买=100,L*0.99,'B'),COLORYELLOW;DRAWTEXT(卖=100,H*1.06,'S'),COLOR00FF00;STICKLINE(C>REF(C,1),H,L,0,0),COLOR0000FF;STICKLINE(C>REF(C,1),O,C,3.1,1),COLOR000066;STICKLINE(C>REF(C,1),O,C,2.6,1),COLOR000099;STICKLINE(C>REF(C,1),O,C,2,1),COLOR0000CC;STICKLINE(C>REF(C,1),O,C,1.2,1),COLOR0000FF;STICKLINE(C>REF(C,1),O,C,0.4,1),COLORCC66FF;STICKLINE(C<REF(C,1),H,L,0,0),COLORFF0000;STICKLINE(C<REF(C,1),O,C,3.1,1),COLORCC0000;STICKLINE(C<REF(C,1),O,C,2.6,1),COLORFF4400;STICKLINE(C<REF(C,1),O,C,2,1),COLORFF8800;STICKLINE(C<REF(C,1),O,C,1.2,1),COLORFFCC00;STICKLINE(C<REF(C,1),O,C,0.4,1),COLORFFFF00;STICKLINE(C=REF(C,1),H,L,0,0),COLORFFFFFF;STICKLINE(C=REF(C,1),O,C,3.1,1),COLOR777777;STICKLINE(C=REF(C,1),O,C,2.6,1),COLOR999999;STICKLINE(C=REF(C,1),O,C,2,1),COLORBBBBBB;STICKLINE(C=REF(C,1),O,C,1.2,1),COLORDDDDDD;STICKLINE(C=REF(C,1),O,C,0.4,1),COLORFFFFFF;A0:=(L+H+C*2)/4;⼯作:EMA(A0,14)COLORYELLOW,LINETHICK1;度假:EMA(A0,25)COLORGREEN,LINETHICK2;A1X:=(⼯作-REF(⼯作,1))/REF(⼯作,1)*100;A2X:=(度假-REF(度假,1))/REF(度假,1)*100;G:=BARSLAST(CROSS(A1X,0));买⼊⽌损:REF(A0,G),COLORWHITE,LINETHICK1;A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5<-0.1 AND A5>A6);财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;DRAWICON(CROSS(A2,EMA(A2,5)) AND (A4-EMA(A2,5))>40 AND A7,LLV(L,21)*1.02,1);STICKLINE(C>REF(C,1)*1.09,C,O,3.1,0)COLOR000055;STICKLINE(C>REF(C,1)*1.09,C,O,2.6,0)COLOR000077;STICKLINE(C>REF(C,1)*1.09,C,O,2.1,0)COLOR000099;STICKLINE(C>REF(C,1)*1.09,C,O,1.5,0)COLOR0000BB;STICKLINE(C>REF(C,1)*1.09,C,O,0.9,0)COLOR0000DD;STICKLINE(C>REF(C,1)*1.09,C,O,0.3,0)COLOR0000FF;STICKLINE(C<REF(C,1)*0.901,C,O,3.1,0)COLOR005500;STICKLINE(C<REF(C,1)*0.901,C,O,2.6,0)COLOR007700;STICKLINE(C<REF(C,1)*0.901,C,O,2.1,0)COLOR009900;STICKLINE(C<REF(C,1)*0.901,C,O,1.5,0)COLOR00BB00;STICKLINE(C<REF(C,1)*0.901,C,O,0.9,0)COLOR00DD00;STICKLINE(C<REF(C,1)*0.901,C,O,0.3,0)COLOR00FF00;减:IF(A2X>=0,度假,DRAWNULL),COLORMAGENTA,LINETHICK2;少:IF(A1X>=0,⼯作,DRAWNULL),COLORRED,LINETHICK2;操:IF(A1X>=0,买⼊⽌损,DRAWNULL),LINETHICK2,COLORRED;作:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.1,REF(A0,BARSLAST(CROSS(A1X,0)))*1.1,DRAWNULL),COLORGREEN,POINTDOT;顺:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.2,REF(A0,BARSLAST(CROSS(A1X,0)))*1.2,DRAWNULL),COLORGREEN,POINTDOT;应:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,CIRCLEDOT;趋:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.4,REF(A0,BARSLAST(CROSS(A1X,0)))*1.4,DRAWNULL),COLORGREEN,POINTDOT;势:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.5,REF(A0,BARSLAST(CROSS(A1X,0)))*1.5,DRAWNULL),COLORGREEN,POINTDOT;破:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.6,REF(A0,BARSLAST(CROSS(A1X,0)))*1.6,DRAWNULL),COLORGREEN,POINTDOT;位:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.7,REF(A0,BARSLAST(CROSS(A1X,0)))*1.7,DRAWNULL),COLORGREEN,POINTDOT;出:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.8,REF(A0,BARSLAST(CROSS(A1X,0)))*1.8,DRAWNULL),COLORGREEN,POINTDOT; C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,1.5,0),COLORRED;STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);7.通达信短买画线主图指标公式JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));。

缠论买卖点(主图指标)

缠论买卖点(主图指标)

缠论买卖点(主图指标){注:原转载的这个公式有问题,刚接到一位匿名网友的反映(见下面的评论),本着对博友负责的精神,我重新检查后修改好了,并配了图,请转过的朋友重新再转。

给你带来了不便了,请谅解!(置顶一天)}缠论买卖点(主图指标)作者:彼岸随缘通达信:{N1:1,100,10;N2:1,100,10;DISP:=1,3,2};N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10; P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1&gt;T1 AND P2&gt;T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG&gt;ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&amp;&amp;TJ2&amp;&amp;NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF (ZG,REF(BARSLAST(TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF( ZG,REF(BARSLAST(TJ4),1)));TJ7:=ZG&gt;REF(ZG,REF(BARSLAST(TJ4),1))&amp;&amp; ZD&lt;REF(ZD,REF(BARSLAST(TJ4),1));TJ8:=TJ4&amp;&amp;NOT(TJ5 OR TJ6 ORTJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGE NTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CROSS DOT,COLORLIRED;中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSS DOT,COLORLIGREEN;中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINT DOT,COLORRED;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINT DOT,COLORGREEN;趋势高:PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE; 趋势低:PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)&lt;REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)&gt;REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L&gt;REF(H,1),1,IF(H&lt;REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)&gt;REF(距前低天,1) ANDLLV(L,距前高天+1)&lt;REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)&lt;=REF(距前低天,1)AND (距前高天&gt;=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)&lt;REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) ANDL&lt;REF(H,距前高天+1),-1,0);预判:=IF((距前低天&lt;4 AND HHV(缺口判断,距前低天)!=1)ORREF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)&lt;=REF(距前高天,1) AND预判=1 AND 大值周期&gt;REF(小值周期,距前低天+1) AND 大值周期&gt;REF(小值周期,距前低天) AND大值周期&gt;REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)&gt;REF(距前高天,1) ANDHHV(H,距前低天+1)&gt;REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)&lt;=REF(距前高天,1) ANDREF(低保留S,距前低天)=-1 AND (距前低天&gt;=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H&gt;REF(L,距前低天+1),1,0);预判A:=IF((距前高天&lt;4 AND HHV(缺口判断,距前高天)!=1) ORREF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)&lt;=REF(距前低天,1) AND预判A=1 AND 小值周期&gt;REF(大值周期,距前高天+1) AND小值周期&gt;REF(大值周期,距前高天) AND小值周期&gt;REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)&gt;REF(距前低天,1) ANDLLV(L,距前高天+1)&lt;REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)&lt;=REF(距前低天,1) AND(距前高天&gt;=4 OR LLV(缺口判断,距前高天)=-1 OR判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) ANDL&lt;REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A&lt;4 AND HHV(缺口判断,距前低天A)!=1) ORREF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)&lt;=REF(距前高天A,1) AND预判X=1 AND 大值周期&gt;REF(小值周期,距前低天A+1) AND大值周期&gt;REF(小值周期,距前低天A) AND大值周期&gt;REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)&gt;REF(距前高天A,1)AND HHV(H,距前低天A+1)&gt;REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)&lt;=REF(距前高天A,1)AND REF(低保留,距前低天A)=-1 AND (距前低天A&gt;=4 ORHHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) ANDH&gt;REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A&lt;4 AND HHV(缺口判断,距前高天A)!=1) ORREF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)&lt;=REF(距前低天A,1)AND 预判XA=1 AND 小值周期&gt;REF(大值周期,距前高天A+1) AND小值周期&gt;REF(大值周期,距前高天A) AND小值周期&gt;REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)&gt;REF(距前低天A,1)ANDLLV(L,距前高天A+1)&lt;REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)&lt;=REF(距前低天A,1)AND (距前高天A&gt;=4 OR LLV(缺口判断,距前高天A)=-1 OR判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) ANDL&lt;REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA&lt;4 AND HHV(缺口判断,距前低天YA)!=1) ORREF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)&lt;=REF(距前高天YA,1)AND 预判YX=1 AND 大值周期&gt;REF(小值周期,距前低天YA+1) AND大值周期&gt;REF(小值周期,距前低天YA) AND大值周期&gt;REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)&gt;REF(距前高天YA,1)ANDHHV(H,距前低天YA+1)&gt;REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 ANDREF(距前低天YA,1)&lt;=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1AND (距前低天YA&gt;=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH&gt;REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA&lt;4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 ANDREF(距前高天YA,1)&lt;=REF(距前低天YA,1) AND 预判YXA=1 AND小值周期&gt;REF(大值周期,距前高天YA+1) AND小值周期&gt;REF(大值周期,距前高天YA) AND小值周期&gt;REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 ANDREF(距前高天YA,1)&gt;REF(距前低天YA,1) ANDLLV(L,距前高天YA+1)&lt;REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 ANDREF(距前高天YA,1)&lt;=REF(距前低天YA,1) AND(距前高天YA&gt;=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L&lt;REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 ANDH&gt;REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1AND L&lt;REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOTCOLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED;DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW;DD1:=BARSLAST(ABS(极点保留)!=1);DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN; DRAWTEXT(极点保留=-1,局部极点,'买'),COLORRED;MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;判:IF(MA5&lt;REF(MA5,1),MA5,DRAWNULL),COLORWHI TE,LINETHICK2;大智慧:if DATATYPE&lt;8 thenbeginfx30:="FENXING#min30";fx60:="FENXING#min60";{fxday:="FENXING#day";}drawtext(barstatus=2,fx30,'-----30底分高'+fx30),colorwhite,align2;drawtext(barstatus=2,fx60,'-----60底分高'+fx60),colorgreen,align2;{drawtext(barstatus=2,fxday,'--日线底分高')+fx60,colorgreen,align2;}end;var1:="chzhshch@kxian";{处理K线}var2:="chzhshch@bi";{处理笔关系}drawline(var2=1,h,var2=-1,l,0),pointdot,coloryellow; drawline(var2=-1,l,var2=1,h,0),pointdot,coloryellow; var3:="chzhshch@duan";{处理段关系}drawtext(var3=1,h,''+h),align0,colormagenta; drawtext(var3=1,h,'卖'),align2,colorred;drawtext(var3=-1,l,''+l),colorgreen;drawtext(var3=-1,l,'买'),align2,colorgreen;drawline(var3=1,h,var3=-1,l,0),colorff6600;drawline(var3=-1,l,var3=1,h,0),colorff6600;{高一级别的段var4:="[email=chzhshch@duan2]chzhshch@duan2[/email]"; drawline(var4=1,h,var4=-1,l,0),linethick2,colorred; drawline(var4=-1,l,var4=1,h,0),linethick2,colorred;}h1:=0;X1:=BARSLAST(h1);飞狐:var1:="color=#ff0000]chzhshch@kxian";var2:="chzhshch@bi";{处理笔关系}if DATAPERIOD&lt;=8 then//var2:="[email=chzhshch@duan]chzhshch@duan[/email]";{处理段1分钟的关系}pre:=3; {设置小数点位数}if STKTYPE=0 then pre:=1;if STKTYPE=11 then pre:=3;a1:=barslast(var2&lt;&gt;0);a2:=ref(var2,a1);aa1:=ref(a1+1,1);aa2:=ref(a2,1);aa3:=BARSSINCE(var2&lt;&gt;0);aa4:=ref(aa3+1,1)+4;//历史总周期数(aa2&gt;0,l-ref(h,aa1),h-ref(l,aa1)),linethick0;{计算点位差}drawnumber(var2=1,h,h,pre),pxup20,color3300ff,align1; {显示数字}drawnumber(var2=-1,l,l,pre),pxdn5,colorffff00,align1;//{显示完成笔力度}//drawtext(var2=1,h,'+'),pxup45,colormagenta,align2; drawnumber(var2=1,h,a3,pre),align1,colormagenta,pxup65; drawnumber(var2=-1,l,a3,pre),align1,colormagenta,pxdn50; //显示完成笔周期drawtext(var2=1,h,'卖'),pxup45,colorred,align2;drawtext(var2=1,h,'T:'),pxup45,coloryellow,align2,shift3;drawnumber(var2=1,h,aa1,0),colormagenta,pxup45,align1,shift3 ;//drawnumber(var2=1,h,aa4,0),coloryellow,pxup45,align1,shift6 ;drawtext(var2=-1,l,'买'),pxdn30,colorgreen,align2;drawtext(var2=-1,l,'T:'),pxdn30,coloryellow,align2,shift3;drawnumber(var2=-1,l,aa1,0),colormagenta,pxdn30,align1,shift 3;//drawnumber(var2=-1,l,aa4,0),coloryellow,pxdn30,align1,shift6 ;//显示未完成笔的点位力度ll:=l-ref(h,barslast(var2&lt;&gt;0));hh:=h-ref(l,barslast(var2&lt;&gt;0));a3:= -a3;//显示未完成笔的收盘数据drawtext(islastbar andref(var2,barslast(var2&lt;&gt;0))=-1 andvar2=0,h,numtostr(h,3)),pxup20,color3300ff,align1,shift6;{显示数字}drawtext(islastbar andref(var2,barslast(var2&lt;&gt;0))=1 andvar2=0,l,numtostr(l,3)),pxdn5,colorffff00,align1,shift6;//写在未完成笔低点处的笔的点位力度drawtext(islastbar andref(var2,barslast(var2&lt;&gt;0))=1 andvar2=0,L,numtostr(ll,3)),colorgreen,shift6,pxdn30,align1;//写在未完成笔高点处的笔的点位力度//drawtext(islastbar andref(var2,barslast(var2&lt;&gt;0))=-1 andvar2=0,h,'+' +numtostr(hh,3)),align1,colormagenta,pxup45,shift6;//显示未完成笔的周期,写在低点的drawtext(islastbar andref(var2,barslast(var2&lt;&gt;0))=1 andvar2=0,L,'T:'+ numtostr(aa1,0)),pxdn50,coloryellow,align1,shift6;//显示未完成笔的周期,写在高点的drawtext(islastbar andref(var2,barslast(var2&lt;&gt;0))=-1 andvar2=0,h,'T:'+ numtostr(aa1,0)),pxup65,coloryellow,align1,shift6;end;var1:="[email=chzhshch@kxian]chzhshch@kxian[/email]";{处理K线}var2:="[email=chzhshch@bi]chzhshch@bi[/email]";{处理笔关系}drawline(var2=1,h,var2=-1,l,0),linedot,coloryellow;drawline(var2=-1,l,var2=1,h,0),linedot,coloryellow;var3:="[email=chzhshch@duan]chzhshch@duan[/email]";{处理段关系,处理前调整笔的高低点,处理后不调整}drawnumber(var3=1,h,h,2),pxup20,colormagenta,align2;//drawtext(var3=1,h,'卖'),pxup20,colormagenta,align2;drawnumber(var3=-1,l,l,2),pxdn5,colorgreen;drawline(var3=1,h,var3=-1,l,0),colorFF6600;drawline(var3=-1,l,var3=1,h,0),colorFF6600;var31:=hhvbars(zig(3, 19)&gt;ref(zig(3,19),1)and ref(zig(3,19), 1)&lt;ref(zig(3,19), 2),0); stickline(var31=2,l*0.95,l*0.98,8,0),color0000ff; drawtext(var31=2,l*0.95,'3天'),coloryellow; stickline(var31=4,h*1.05,h*1.02,8,0),color9966ff; drawtext(var31=4,h*1.06,'5天'),coloryellow; stickline(var31=7,l*0.95,l*0.98,8,0),color00ffff; drawtext(var31=7,l*0.95,'8天'),coloryellow;stickline(var31=12,h*1.05,h*1.02,8,0),colorff33ff; drawtext(var31=12,h*1.06,'13天'),coloryellow; stickline(var31=20,l*0.95,l*0.98,8,0),color0066ff; drawtext(var31=20,l*0.95,'21天'),coloryellow; stickline(var31=33,h*1.05,h*1.02,8,0),colorffff00; drawtext(var31=33,h*1.06,'34天'),coloryellow; stickline(var31=54,l*0.95,l*0.98,8,0),color006600;drawtext(var31=54,l*0.95,'55天'),coloryellow; stickline(var31=88,h*1.05,h*1.02,8,0),color00ff00; drawtext(var31=88,h*1.06,'89天'),coloryellow; stickline(var31=143,l*0.95,l*0.98,8,0),colorccffff; drawtext(var31=143,l*0.95,'144天'),coloryellow; stickline(var31=232 ,h*1.05,h*1.02,8,0),colorff0033; drawtext(var31=232,h*1.06,'233天'),coloryellow; stickline(var31=376,l*0.95,l*0.98,8,0),colorff9966;drawtext(var31=376,l*0.95,'377天'),coloryellow;注:有未来函数,下面是本博2011.10.12配得图{转自:好人伟哥}。

通达信大资金活动大笔成交提示主图指标公式

通达信大资金活动大笔成交提示主图指标公式

通达信大资金活动大笔成交提示主图指标公式通达信大资金活动大笔成交提示主图指标源码附图MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,60);VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;DRAWTEXT(VARA=20,LOW*0.95,'底部') COLORYELLOW;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'大资金活动'),LINETHICK1,COLORFF00FF;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大笔成交') COLORWHITE;。

XXX XXX主图声音提示指标 文华财经指标 多空买卖提示公式

XXX XXX主图声音提示指标 文华财经指标 多空买卖提示公式

XXX XXX主图声音提示指标文华财经指标多空买卖提示公式VAR1为1当且仅当日期在到之间,否则为0.如果C大于0,则绘制绿色的GBK1.HH1为前两天的最高值,如果今天的最高值小于前两天的最高值并且昨天的最高值小于前两天的最高值,则为前两天的最高值,否则为0.LL1为前两天的最低值,如果今天的最低值大于前两天的最低值并且昨天的最低值大于前两天的最低值,则为前两天的最低值,否则为0.如果HH1大于0,则HH2为HH1,否则为HH1最后一次大于0的位置的值。

如果LL1大于0,则LL2为LL1,否则为LL1最后一次大于0的位置的值。

如果收盘价大于HH2,则K1为-3,如果收盘价小于LL2,则K1为1,否则为0.如果K1小于0或者大于0,则K2为K1,否则为K1最后一次小于0或者大于0的位置的值。

W1为K2.MA26为26日收盘价的简单移动平均值。

HH11为最近三天的最高值,LL11为最近三天的最低值。

如果HH11大于0,则HH21为HH11,否则为HH11最后一次大于0的位置的值。

如果LL11大于0,则LL21为LL11,否则为LL11最后一次大于0的位置的值。

如果收盘价大于HH21,则K11为-3,如果收盘价小于LL21,则K11为1,否则为0.如果K11小于0或者大于0,则K21为K11,否则为K11最后一次小于0或者大于0的位置的值。

W11为K21.如果0大于W11并且0大于W1或者收盘价大于MA26并且0大于W1或者收盘价大于MA26并且0大于W11,则DK11为真,否则为假。

如果0小于W11并且0小于W1或者收盘价小于MA26并且0小于W1或者收盘价小于MA26并且0小于W11,则KK11为真,否则为假。

DK为DK11,KK为KK11.如果DK为真,则DK1为最后一次DK为真的位置乘以VAR1,否则为0.如果KK为真,则KK1为最后一次KK为真的位置乘以VAR1,否则为0.如果CROSS(KK1,DK1)为真,则HS为真,否则为假。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

主图指标公式买卖提示主图指标公式买卖提示1.博弈均线A1:=DATE &lt;= 13181231;工作线:(EMA(C,14)) *A1,POINTDOT,LINETHICK4,COLORYELLOW;AA05:MA(C,5),LINETHICK3,COLOR0099CC;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100, 3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05&gt;30 AND AA05&gt;REF(AA05,1),AA05,DRAWNULL),LINETHICK2,COLORRED;AA10:MA(C,10), LINETHICK0;AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416; IF(BB05&lt;0 AND AA05&lt;REF(AA05,1),AA05,DRAWNULL),LINETHICK2,COLORFFFF00;AA30:MA(C,30), LINETHICK0;三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)&gt;REF((AA20-AA30),1) ANDAA20&gt;REF(AA20,1) AND AA30&gt;REF(AA30,1); VAR2:=(AA30-AA20)&lt;REF((AA30-AA20),1) ANDAA20&lt;REF(AA20,1) AND AA30&lt;REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416; 强势狙击:=FILTER(BB30&gt;30 AND BB10&gt;45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)&gt;=1 AND AA05&gt;REF(AA05,1) AND 三拾日乖离率&gt;REF(三拾日乖离率,1) AND AA10&gt;REF(AA10,1)AND 加速度5&gt;REF(加速度5,1) AND 速度5&gt;REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)&gt;=1 AND (C&gt;AA30 OR O&gt;AA30) AND AA05&lt;REF(AA05,1) AND 三拾日乖离率&lt;REF(三拾日乖离率,1) ANDAA10&lt;REF(AA10,1),10);DRAWTEXT(加仓,LO W*0.98,'←-----加仓'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率&lt;REF(三拾日乖离率,1) AND AA10&gt;REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)&gt;=1 AND 三拾日乖离率&gt;REF(三拾日乖离率,1) ANDAA05&gt;REF(AA05,1) AND (C/REF(C,1)-1)*100&gt;5 AND REF(C,1)&lt;AA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN; DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW; TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); VAR5:=CROSS(CCI,-100);VAR6:=CCI&gt;=200;DRAWTEXT(VAR6,HIGH*1.02,'←----小心'),COLORYELLOW;SJ:=VAR5;STICKLINE(SJ,H,L,0.6,0),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC ),6,1)*100;DRAWTEXT(CROSS(84,RSI) , HIGH,'←-----逃'),COLORGREEN;VAR3AA:=IF((CLOSE&gt;REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))&gt;1.05) AND ((HIGH)/(CLOSE)&lt;1.01) AND (VAR3AA&gt;0),91,0); DRAWTEXT(FILTER((VAR4AA&gt;90),45),(LOW)*(0.93),'←---大胆搏'),COLORYELLOW;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*R EF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+1 0*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+ 3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;生命线:EMA(X,13),LINETHICK2,COLORMAGENTA;2.天机均线指标公式EMA250:MA(C,250),COLORRED;EMA6:MA(C,6),COLORRED LINETHICK2;EMA18:MA(C,18),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;EMA144:MA(C,144),COLORGREEN;EMA288:MA(C,288),COLORBLUE;中线【买入】:=COUNT(CLOSE&lt;EMA18,5)=4 ANDCLOSE/EMA18&gt;1.004 AND CROSS(CLOSE,EMA18) AND EMA18&gt;=REF(EMA18,1),LINETHICK,COLORRED;DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;VL:=REF(LOW,1);VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL ,0),13,1))*100;VAR14:=MA(VAR12,13);VAR15:=LLV(LOW,34);VAR18:=EMA(IF(LOW&lt;=VAR15,VAR14,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH, 54)-LLV(LOW,54))*100,7,1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-L LV(LOW,54))*100,7,1)*16.18-VAR110*10.9;T:=FILTER(IF(VAR111&lt;=VAR110 ANDVAR18&gt;REF(VAR18,1),VAR18*8,0),20); DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF; DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LO W,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23&lt;20; DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORR ED;VAR29:=CROSS(VAR24,VAR23) AND VAR23&gt;80; DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORB LUE;3.通达信上出下买+三背离主图指标公式A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOS E,17),1));B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17), 1);分水岭:IF(MA(CLOSE,17)&lt;B,B,MA(CLOSE,17)),COLORFF0 0FF,LINETHICK2;操作线:分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK2;PM:MA(C,5),COLORWHITE,LINETHICK2;IF(PM&gt;REF(PM,1),PM,DRAWNULL),COLORRED,LINE THICK2;IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM&lt;REF(PM,1),PM,DRAWNULL),COLORFF9900,LI NETHICK2;S:=(PM&gt;操作线);DD:=分水岭&lt;REF(分水岭,1);IF(DD,分水岭,DRAWNULL),COLOR00FF00,LINETHICK2; IF(S,分水岭,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK 4;DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{买入红箭头}A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA" ),1));B1:=REF(C,A1+1)&gt;C ANDREF("MACD.DIF",A1+1)&lt;"MACD.DIF" ANDCROSS("MACD.DIF","MACD.DEA");DRAWTEXT(B1&gt;0,L-0.02,4),COLOR00FFFF;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)&gt;C ANDREF("KDJ.K",A2+1)&lt;"KDJ.K" ANDCROSS("KDJ.K","KDJ.D");DRAWTEXT(B2,L-0.10,5),COLORFF00FF;{KDJ底背离} A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1)) ;B3:=REF(C,A3+1)&gt;C ANDREF("RSI.RSI1",A3+1)&lt;"RSI.RSI1" ANDCROSS("RSI.RSI1","RSI.RSI2");DRAWTEXT(B3&gt;0,L-0.18,6),COLOR0000FF;{RSI底背离}C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF" ),1));D1:=REF(C,C1+1)&lt;C ANDREF("MACD.DIF",C1+1)&gt;"MACD.DIF" ANDCROSS("MACD.DEA","MACD.DIF");DRAWTEXT(D1&gt;0,H+0.16,4),COLOR00FF00;{MACD 顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)&lt;C ANDREF("KDJ.K",C2+1)&gt;"KDJ.K" ANDCROSS("KDJ.D","KDJ.K");DRAWTEXT(D2&gt;0,H+0.08,5),COLORFFFFCC;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1)) ;D3:=REF(C,C3+1)&lt;C ANDREF("RSI.RSI1",C3+1)&gt;"RSI.RSI1" ANDCROSS("RSI.RSI2","RSI.RSI1");DRAWTEXT(D3&gt;0,H+0.04,6),COLORFF9900;{RSI顶背离};STICKLINE(C&gt;REF(C,1),H,L,0,1),COLOR0000FF; STICKLINE(C&gt;REF(C,1),O,C,3.2,0),COLOR000055; STICKLINE(C&gt;REF(C,1),O,C,2.7,0),COLOR000077; STICKLINE(C&gt;REF(C,1),O,C,2.1,0),COLOR000099; STICKLINE(C&gt;REF(C,1),O,C,1.5,0),COLOR0000BB; STICKLINE(C&gt;REF(C,1),O,C,0.9,0),COLOR0000DD; STICKLINE(C&lt;REF(C,1),O,C,0.3,0),COLOR0000FF; STICKLINE(C&lt;REF(C,1),H,L,0,1),COLORFFFF00; STICKLINE(C&lt;REF(C,1),O,C,3.2,0),COLOR990000; STICKLINE(C&lt;REF(C,1),O,C,2.7,0),COLORCC0000; STICKLINE(C&lt;REF(C,1),O,C,2.1,0),COLORFF4400; STICKLINE(C&lt;REF(C,1),O,C,1.5,0),COLORFF8800;STICKLINE(C&lt;REF(C,1),O,C,0.9,0),COLORFFCC00; STICKLINE(C&lt;REF(C,1),O,C,0.3,0),COLORFFFF00; STICKLINE(C=REF(C,1),H,L,0,1),COLORFFFFFF; STICKLINE(C=REF(C,1),O,C,3.2,0),COLOR555555; STICKLINE(C=REF(C,1),O,C,2.7,0),COLOR777777; STICKLINE(C=REF(C,1),O,C,2.1,0),COLOR999999; STICKLINE(C=REF(C,1),O,C,1.5,0),COLORBBBBBB; STICKLINE(C=REF(C,1),O,C,0.9,0),COLORDDDDDD; STICKLINE(C=REF(C,1),O,C,0.3,0),COLORFFFFFF;4.通达信均线买卖主图指标公式MA1:MA(C,2)COLORWHITE,LINETHICK2;MA2:MA(C,8)COLORYELLOW,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)) *100;K:=SMA(RSV,3,1);Y:=VOL&lt;MA(VOL,5);买:=CROSS(MA1,MA2);价买:=C&gt;MA1;小人:DRAWICON((K&lt;40 AND 价买ANDCROSS(MA1,MA2) AND Y),L-0.06,15);B买:DRAWICON((CROSS(C,MA(C,3)) ANDC&lt;MA(C,20) AND CLOSE&gt;OPEN AND Y),L-0.15,1); 金叉:DRAWICON((CROSS(MA1,MA2) ANDCLOSE&gt;OPEN),L-0.25,25);卖:=CROSS(MA2,MA1);价卖:=C&lt;MA1;S卖:DRAWICON((CROSS(MA(C,3),C) AND C&lt;MA(C,4) AND CLOSE&lt;OPEN),L+0.7,2);5.买卖趋势VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHIC K2;买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINET HICK2;幅度:100*(卖出-买入)/买入,NODRAW;MA1:=MA(VAR1,3);STICKLINE(卖出&gt;LOW AND 卖出&lt;HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN; STICKLINE(卖出&gt;MIN(C,O) AND 卖出&lt;MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;STICKLINE(卖出&gt;LOW AND 卖出&lt;HIGH,卖出,HIGH,0,0),COLORGREEN;STICKLINE(卖出&lt;LOW,OPEN,CLOSE,3,0),COLORGREEN; STICKLINE(卖出&lt;LOW,HIGH,LOW,0,0),COLORGREEN;STICKLINE(买入&gt;LOW AND 买入&lt;HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;STICKLINE(买入&gt;MIN(C,O) AND 买入&lt;MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(买入&gt;LOW AND 买入&lt;HIGH,买入,LOW,0,0),COLORMAGENTA;STICKLINE(买入&gt;HIGH,OPEN,CLOSE,3,0),COLORMAGENTA; STICKLINE(买入&gt;HIGH,HIGH,LOW,0,0),COLORMAGENTA; DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'买'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'卖'),COLORGREEN;6.买卖区间买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线&gt;=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE ),6,0),COLOR001050;STICKLINE(买线&lt;卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE ),6,0),COLOR404050;DRAWKLINE(H,O,L,C);指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE ,12)+EMA(CLOSE,24))/4,2);界:=MA(CLOSE,27);B买:IF(CROSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;持仓:IF(买线&gt;=卖线,C,DRAWNULL),COLORRED,NODRAW;S卖:IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;空仓:IF(买线&lt;卖线,C,DRAWNULL),COLORGREEN,NODRAW; DRAWICON(CROSS(买线,卖线),L,1);DRAWICON(CROSS(卖线,买线),H,2);7.不吃头不吃尾的公式就是好JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE&gt;REF(CLOSE,1) ANDCLOSE&gt;REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R3:=(REF(R2,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R4:=(REF(R3,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R5:=(REF(R4,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R6:=(REF(R5,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R7:=(REF(R6,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R8:=(REF(R7,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R9:=(REF(R8,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));RA:=(REF(R9,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));RB:=(REF(RA,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));RC:=(REF(RB,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));RD:=(CLOSE&lt;REF(CLOSE,1) ANDCLOSE&lt;REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));RF:=(REF(RE,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R10:=(REF(RF,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R11:=(REF(R10,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R12:=(REF(R11,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R13:=(REF(R12,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R14:=(REF(R13,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R15:=(REF(R14,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE&lt;=REF(CLOSE,1) AND CLOSE&gt;=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE&gt;=REF(CLOSE,1) AND CLOSE&lt;=REF(CLOSE,2));R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD); VAR3:=IF(C&lt;200 ,MA(COST(80),3),2500),NODRAW; VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR6:=(VAR5 + ((VAR5 * 6) / 100));春买:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB ORRC,NODRAW,COLOR0000FF;阴观望:=RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 ORR18,NODRAW,COLOR999999;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100&lt;-14, COLORBBBBBB,NODRAW;离场:=IF(红持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;进:=IF(阴观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLOR00FF00,NODRAW; STICKLINE(ISLASTBAR AND (红持股OR REF(红持股,1)=1),今离场价,今离场价,20,1),COLOR0000FF; STICKLINE(ISLASTBAR AND (阴观望OR REF(阴观望,1)=1),今进场价,今进场价,20,1),COLOR00FF00;XX2:EMA(EMA((CLOSE+LOW+HIGH)/3,3),23),COLORG REEN, LINETHICK2;XX3:=REF(XX2,1);IF(XX2&gt;XX3,XX2,DRAWNULL),COLORRED, LINETHICK2;B11:=MA(CLOSE,1);B22:=SMA(SMA(SMA(B11,2,1),2,1),2,1) ;SMA2:=MA(B22,3) ;DRAWBAND(B22,RGB(255,0,0),SMA2,RGB(0,255,0)); 下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAS T(CROSS(D24,DDDDD)))),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;压力位:=IF(ISLASTBAR,压力2,DRAWNULL),NODRAW; 底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;STICKLINE(ISLASTBAR ,压力位,压力位,40,0),COLORFF00FF,LINETHICK2;STICKLINE(ISLASTBAR ,底部位,底部位,35,0),COLOR00FFFF,LINETHICK2;B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);持股:=(CLOSE=CMAX AND (B1&gt;=B2 OR B1&gt;=B3)) OR ((B1=CMAX AND (B2=CMIN OR B3=CMIN)) AND CLOSE&gt;=B2) OR(B2=CMAX AND B3=CMIN AND CLOSE&gt;=B1) OR (B3=CMAX AND CLOSE&gt;=B1 AND CLOSE&gt;=B2); STICKLINE(持股,B1,CLOSE,3,0),COLOR000099;变盘:=CLOSE=CMAX AND B1=CMIN;STICKLINE(变盘,B2,CLOSE,3,0),COLOR0099EF;下跌:=(CLOSE=CMIN AND (B1&lt;B2 OR B1&lt;B3)) OR ((B1=CMIN AND (B2=CMAX OR B3=CMAX)) AND CLOSE&lt;B2) OR(B2=CMIN AND B3=CMAX AND CLOSE&lt;B1) OR(B3=CMIN AND CLOSE&lt;B1 AND CLOSE&lt;B2); STICKLINE(下跌,B1,CLOSE,3,0),COLOR009900; STICKLINE(B1=CMAX ANDCLOSE=CMIN,B2,CLOSE,3,0),COLOR009900;买入:=(B1=CMIN AND CLOSE&gt;=B2) OR ((B2=CMIN AND B1&lt;=B3) OR(B3=CMIN AND B1&lt;=B2) AND B2&lt;B4 AND CLOSE&gt;=B1);STICKLINE(买入,B1,B2,3,0),COLOR00FFFF;抛售:=(B1=CMAX AND CLOSE&lt;B2) OR ((B2=CMAX AND B1&gt;B3) OR(B3=CMAX AND B1&gt;B2) AND B2&gt;=B4 AND CLOSE&lt;B1);STICKLINE(抛售,B1,B2,3,0),COLORFFFFFF; STICKLINE(C&gt;=O,L,H,0,1),COLORRED; STICKLINE(C&lt;O,H,L,0,1),COLORGREEN; STICKLINE(持股OR 买入,O,C,1.5,0),COLORRED; STICKLINE(下跌OR 抛售,O,C,1.5,0),COLORGREEN; STICKLINE(C&gt;0,O,C,0,0),COLORFFFFFF;MMA:=CONST(HHV(H,90));MMB:=CONST(LLV(L,90));WN:=3;{原码N:=3;}WA1:=REF(H,WN)=HHV(H,2*WN+1);WB1:=FILTER(WA1,WN); WC1:=BACKSET(WB1,WN+1); WD1:=FILTER(WC1,WN);{高点}WA2:=REF(L,WN)=LLV(L,2*WN+1);WB2:=FILTER(WA2,WN); WC2:=BACKSET(WB2,WN+1); WD2:=FILTER(WC2,WN);{低点}WE1:=(REF(LLV(L,2*WN),1)+REF(HHV(H,2*WN),1))/2; WE2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}WH1:=(WD1 AND NOT(WD2 AND WE1&gt;=WE2)) OR ISLASTBAR OR BARSCOUNT(C)=1;WL1:=(WD2 AND NOT(WD1 AND WE1&lt;WE2));WH2:=WD1 AND NOT(WD2 AND WE1&gt;=WE2);WX1:=REF(BARSLAST(WH1),1)+1;WF1:=BACKSET(WH1 ANDCOUNT(WL1,WX1)&gt;0,LLVBARS(IF(WL1,L,10000),WX 1));WG1:=WF1&gt;REF(WF1,1); WI1:=BACKSET(WG1,2); WLD:=WI1&gt;REF(WI1,1);{过滤后低点}WL2:=WLD OR ISLASTBAR OR BARSCOUNT(C)=1; WX2:=REF(BARSLAST(WL2),1)+1;WF2:=BACKSET(WL2 ANDCOUNT(WH2,WX2)&gt;0,HHVBARS(IF(WH2,H,0),WX2));WG2:=WF2&gt;REF(WF2,1); WI2:=BACKSET(WG2,2); WHD:=WI2&gt;REF(WI2,1);{过滤后高点}WR1:=BACKSET(ISLASTBAR,BARSLAST(WHD)+1); WS1:=WR1&gt;REF(WR1,1); {前一高}WT1:=BACKSET(ISLASTBAR,BARSLAST(WLD)+1); WU1:=WT1&gt;REF(WT1,1); {前一低}WR2:=BACKSET(WS1,REF(BARSLAST(WHD),1)+2); WS2:=WR2&gt;REF(WR2,1); {前二高}WT2:=BACKSET(WU1,REF(BARSLAST(WLD),1)+2); WU2:=WT2&gt;REF(WT2,1); {前二低}WT3:=BACKSET(WU2,REF(BARSLAST(WLD),1)+2); WU3:=WT3&gt;REF(WT3,1); {前三低}WT4:=BACKSET(WU3,REF(BARSLAST(WLD),1)+2); WU4:=WT4&gt;REF(WT4,1); {前四低}WR3:=BACKSET(WS2,REF(BARSLAST(WHD),1)+2); WS3:=WR3&gt;REF(WR3,1); {前三高}WR4:=BACKSET(WS3,REF(BARSLAST(WHD),1)+2); WS4:=WR4&gt;REF(WR4,1); {前四高};压力1:=DRAWLINE(WS2,H,WS1,H,1),COLOR008888; {★压力1:}支撑1:=DRAWLINE(WU2,L,WU1,L,1),COLOR008888;{★支撑1:}压力2:=DRAWLINE(WS3,H,WS2,H,1),COLOR888000; {★压力2:}支撑2:=DRAWLINE(WU3,L,WU2,L,1),C OLOR888000;{★支撑2:}压力3:=DRAWLINE(WS4,H,WS3,H,1),COLOR0000CC;{★压力3:}支撑3:=DRAWLINE(WU4,L,WU3,L,1),COLOR0000CC;{★支撑3:};BSC:=CONST(MAX(BARSLAST(WS4),BARSLAST(WU4) )*3),NODRAW;IF(BETWEEN(压力1,MMA,MMB),压力1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(支撑1,MMA,MMB),支撑1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(压力2,MMA,MMB),压力2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(支撑2,MMA,MMB),支撑2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(压力3,MMA,MMB),压力3,DRAWNULL),COLOR0000CC,LINETHICK1;IF(BETWEEN(支撑3,MMA,MMB),支撑3,DRAWNULL),COLOR0000CC,LINETHICK1;底:=SUM(MA(CLOSE,10),9)/11.114;DRAWTEXT(CROSS(LOW,底) ANDREF(底,1)&gt;REF(HIGH,1) OR CROSS(HIGH,底),L,'---铁底'),COLOR00FF00;X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X 6),7,1))*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150 +65;DK:=SMA(WZ4,3,1)*1.5;DD:=SMA(DK,3,1);DJ:=3*DK-2*DD;WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);WZ6:=EMA(WZ5,9);WZ7:=2*(WZ5-WZ6);WZ8:=REF(WZ7,1);WZ9:=CROSS(WZ8,WZ7) AND WZ8&gt;0;VAR1T:=EMA(CLOSE,8);VAR2T:=EMA(VAR1T,20);VAR3T:=CROSS(VAR1T,VAR2T);VAR4T:=VAR1T&lt;MA(CLOSE,120);VAR5T:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(L OW,36))*100;VAR6T:=SMA(VAR5T,5,1);VAR7T:=SMA(VAR6T,8,1);VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T&lt;20; VAR9T:=CLOSE&gt;LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8T;VARA:=IF(CLOSE&gt;1000,VAR8T,VAR9T);起步:=VAR3T AND VAR4T;逃遁:=VARA;XL1:=EMA(CLOSE,10)/100;XL2:=MA((XL1-REF(XL1,10))/REF(XL1,10),3)*100;XL3:=MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LO W,9))*100,3,1);DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2&gt;X3,LOW,'←反弹'),COLOR0000FF; DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(V AR1T,4)-LLV(VAR1T,4))*4*25,87.5) ANDVAR1T&lt;40,87,0) AND X2&gt;X3,LOW,'←短买'),COLOR0000AA;DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW) /4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-(EMA(EMA((C LOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW )/4,26),2)))*5.8,0.47),LOW,0) AND X2&gt;X3,LOW,'←加仓'),COLORFF5ED8;DRAWTEXT(CROSS(X4,X5),HIGH+C*0.01,'←减'),COLORB4FF00;DRAWTEXT(FILTER((WZ9 AND DJ&gt;250) ORX9 ,5),HIGH+C*0.02,'←跑'),COLORBCFF8B; STICKLINE(起步&gt;0,HIGH,LOW,0.8,0),COLOR00FFFF; STICKLINE(起步&gt;0,OPEN,CLOSE,5,0),COLOR00FFFF;DRAWTEXT(逃遁&gt;0,HIGH,'●←逃'),COLOR7FFFD6;X1P:=(C+L+H)/3;BB13:=ATAN(EMA(X1P,13)-REF(EMA(X1P,13),1))*3.141 6*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13&gt;1 ANDEMA(X1P,13)&gt;REF(EMA(X1P,8),1),10),EMA8,'∠45上升'),COLORWHITE;VAR3AA:=IF((CLOSE&gt;REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))&gt;1.05) AND ((HIGH)/(CLOSE)&lt;1.01) AND (VAR3AA&gt;0),91,0); DRAWTEXT(FILTER((VAR4AA&gt;90),45),(LOW),'★大胆搏'),COLOR00FFFF;L23:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;L24:=(HIGH+LOW+CLOSE)/3;L25:=(L24-MA(L24,14))/(0.015*AVEDEV(L24,14));L26:=(L24-MA(L24,70))/(0.015*AVEDEV(L24,70));L27:=IF(L25&gt;=150 AND L25&lt;200 AND L26&gt;=150 AND L26&lt;200,10,0);L28:=IF(L25&lt;=-150 AND L25&gt;-200 AND L26&lt;=-150 AND L26&gt;-200,-10,L27);L29:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)* 100);L30:=IF(L29&lt;90,L29,100);L31:=IF(L23&gt;0,L23,0);XL11:=(IF(L28&gt;=200 ANDL25&gt;=150,15,IF(L26&lt;=-200 ANDL25&lt;=-150,-15,L28)))+60;XL22:=L31&gt;48 AND XL11&gt;60 AND L30&lt;100; DRAWTEXT(XL22 AND COUNT(XL22,30)=1,L,'大笔买入'),COLORFF00FF;VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIG H,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((CLOSE-LL V(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15, 1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH ,42)-LLV(LOW,42))*100。

相关文档
最新文档