通达信金牛趋势副图指标 上升趋势加速小涨 源码
{DRAWGBK(CLOSE>0,RGB(0,10,10),RGB(88,0,0),0,2,0);}
Q0:=1;
{DRAWTEXT_FIX(1,0.00,0.00,0,'
公式简解:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.0,0,'(一)、绿横线出现是股价“下降”趋势出现,绿“加速”是继续下降信号,卖出为主,绿横线下方小绿柱是股价下降过程中的卖出信号。'),COLORGREEN;
DRAWTEXT_FIX(1,0.06,0.20,0,'(二)、红横线出现是股价“上升”趋势出现,红“加速”是继续上升信号,买入为主,红横线下方小红柱是股价上升过程中的买入信号。
'),COLORMAGENTA;}
X_111:=EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,3),10)*100;
X_222:=EMA(EMA(EMA(EMA(X_111,2),2),2),3);
X_333:=(CLOSE-MA(CLOSE,26))/MA(CLOSE,26)*100;
X_444:=1;
A555:=IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_333>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND X_222>REF(X_222,1),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0);
持股线:=(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_333>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND DYNAINFO(17)>0)*A555/3.5,COLORRED;
X_555:=MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100;
X_666:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_777:=X_666+3*STD(X_666,10);
X_888:=MA(CLOSE,26)+2*STD(CLOSE,26);
X_999:=(VOL>0 AND A555>0 AND X_222>REF(X_222,1))*EMA(A555,5);
X_1010:=(VOL>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*EMA(A555,2);
X_1111:=(VOL>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*(-3);
X_1212:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100>64.5 AND EMA(CLOSE,1)>(X_777 OR X_888))*EMA(A555,5)/2.5,COLORCYAN;
负数现—防下跌:=(持股线-X_1212),COLORWHITE;{,NODRAW不画该线};
设置线:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,COLORWHITE,LINETHICK2;
X_4:=(HIGH+LOW+OPEN+CLOSE)/4;
X_5:=EMA(X_4,13)-EMA(X_4,34);
X_6:=EMA(X_5,5);
X_7:=(X_5-X_6)*5;
X_8:=IF(X_7>=1000,1000,IF(X_7<=X_4,X_4,X_7));
X_9:=FORCAST(FORCAST(X_8,32),10);
X_10:=(CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13)*(0-100);
X_11:=EMA(X_10/10+EMA(CLOSE,13),8);
X_12:=EMA(CLOSE,3);
X_13:=EMA(SLOPE(CLOSE,22)*20+CLOSE,45);
X_14:=IF(PERIOD>8 AND PERIOD<11,MA(X_13,1),IF(PERIOD=8,MA(X_13,4),IF(PERIOD=7,MA(X_13,8),IF(PERIOD=6,MA(X_13,16),IF(PERIOD=5,MA(X_13,32),0)))));
X_15:=X_14*0.865;
X_16:=IF(X_12>X_14,X_12,X_15);
买卖线:=REVERSE(X_16)+2*X_9,COLORMAGENTA;
拐点:=IF(EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9)<设置线 AND 设置线>买卖线,EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9),设置线),COLORRED,LINETHICK2;
逢高卖出:=LLV(MA(HIGH,(3)),1),LINETHICK2,COLORYELLOW;
{5138系统}
MA55:=MA(C,55);
EXPA:=EXPMA(C,6)COLORRED,LINETHICK2;
M5:=MA(CLOSE,5)COLORWHITE;
M5138线:=MA(C,5)-MA(C,13)+MA(C,8),DOTLINE,COLORCYAN,LINETHICK1;
M52:=MA(M5138线,2),COLORYELLOW,LINETHICK1;
M53:=(M5138线*1.045),COLORYELLOW,LINETHICK1;
M54:=(M5138线*1.090),COLORYELLOW,LINETHICK1;
M55:=(M5138线*1.135),COLORYELLOW,LINETHICK1;
DIF0:=CROSS(C,M5138线),COLORYELLOW,LINETHICK1;
DI:=CROSS(M5138线,M52);
{调整涨停买卖}
C2:=REF(C,1);
普涨停:=(C2*1.1),COLORYELLOW;
创涨停:=(C2*1.2),COLORYELLOW,NODRAW;
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
停:=(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
ZT:=(H/REF(C,1)-1)*100>=9.97,COLORYELLOW;
选股:=ZT AND C<H,COLORWHITE;
杀:=IF(C>ZT,1,0)COLORCYAN;
ZT2:=(H/REF(C,1)-1)*100>=19.97,COLORYELLOW;
杀2:=IF(ZT2,0,1)COLORWHITE;
杀3:=IF(C<普涨停 AND 普涨停>C,1,0)COLORYELLOW;
杀4:=IF(涨停>0,0,1)COLORYELLOW;
{=============================}
XA_1:=STRCAT(HYBLOCK,3);
XA_2:=STRCAT(XA_1,DYBLOCK);
XA_3:=STRCAT(XA_2,3);
金牛:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25),COLORYELLOW;
金钻趋势:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1,COLORRED,LINETHICK2;
金牛2:=EMA(金钻趋势,25),COLORCYAN,LINETHICK2;
下降趋势:IF(金牛<REF(金牛,1),5,0),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*1.0,'下'),COLORGREEN;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*0.4,'降'),COLORGREEN;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*1.0,' 趋'),COLORGREEN;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*0.4,' 势'),COLORGREEN;
上升趋势:IF(金牛>REF(金牛,1),5,0),COLORMAGENTA,LINETHICK2;
XG47:=IF(金牛2>REF(金牛2,1),2,0),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*1.0,'上'),COLORMAGENTA;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*0.4,'升'),COLORMAGENTA;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*1.0,' 趋'),COLORMAGENTA;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*0.4,' 势'),COLORMAGENTA;
XG:=IF(L<REF(金钻趋势,1) AND C>M5138线 AND 上升趋势>0,1,0) AND 金钻趋势>M5138线 OR IF(L<REF(金牛2,1) AND XG47>0 AND 上升趋势>0,1,0) AND 金钻趋势>M5138线 OR IF(O<REF(金钻趋势,1) AND 逢高卖出>=拐点 AND M5138线>=M52 AND C>M5138线 ,1,0) AND 金钻趋势>M5138线 OR IF(L<REF(金钻趋势,1) AND 逢高卖出>=拐点 AND M5138线>=M52 AND C>M5138线 ,1,0) AND 金钻趋势>M5138线,STICK,COLORRED,LINETHICK2;
X:=IF(金钻趋势>LOW AND 金钻趋势<HIGH,1,0) AND 金钻趋势>M5138线 AND M5138线>=M52,COLORYELLOW;{黄金钻};
X1:=IF(金钻趋势>LOW AND 金钻趋势<HIGH,1,0) AND 金钻趋势>M5138线 AND EXPA>=M5,COLORYELLOW;{黄金钻};
X2:=IF(金钻趋势>LOW AND 金钻趋势<HIGH,1,0) AND 上升趋势>0 AND MA55>L,COLORYELLOW;
X3:=金钻趋势>LOW AND 金钻趋势>M5138线 AND C>M5138线 AND DIF0,COLORYELLOW;
买:IF(XG AND C>M5138线 AND DI OR X3 AND C>M5138线 AND DI OR X AND C>M5138线 AND DI OR X1 AND C>M5138线 AND DI OR X2 AND C>M5138线 AND DI,4,0),STICK,COLORRED,LINETHICK2;
卖涨3:=O>C AND H>金牛 AND 杀4,COLORRED,LINETHICK1;{H>金牛 AND M53>C AND }
卖涨2:=H>金牛 AND M55>H AND M54>C AND 杀4,COLORRED,LINETHICK1;{H>金牛 AND M53>C AND }
卖涨:=H>金牛 AND M53>C AND 杀4,COLORRED,LINETHICK1;{H>金牛 AND M53>C AND }
卖H:=H>金牛 AND M53>C AND H AND 杀4,COLORYELLOW,LINETHICK1;{H>金牛 AND M53>C AND }
卖C:=H>金牛 AND M53>C AND C AND 杀4,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖2:=H>金牛 AND M53>C AND 杀4,COLORYELLOW,LINETHICK2;{ AND 下降趋势>上升趋势}
卖3:=C>金牛 AND M53>H AND 杀4,COLORCYAN,LINETHICK1;
卖:IF(卖涨 AND 卖H AND 卖C OR 卖2 OR 卖3 OR 卖涨2 OR 卖涨3 AND M52>M5138线,4,0),STICK,COLORGREEN,LINETHICK2;{ OR 卖2 OR 卖3}
{卖在创业版妖股涨停板}
ZT88:=C/REF(C,1)>1.197 AND CLOSE=HIGH;
ZT188:=REF(C,1)/REF(C,2)>1.197 AND REF(CLOSE,1)=REF(HIGH,1);
ZT288:=REF(C,2)/REF(C,3)>1.197 AND REF(CLOSE,2)=REF(HIGH,2);
ZT388:=REF(C,3)/REF(C,4)>1.197 AND REF(CLOSE,3)=REF(HIGH,3);
ZT488:=REF(C,4)/REF(C,5)>1.197 AND REF(CLOSE,4)=REF(HIGH,4);
ZT588:=REF(C,5)/REF(C,6)>1.197 AND REF(CLOSE,5)=REF(HIGH,5);
三:=ZT88 AND ZT188{ AND ZT288 AND ZT388 AND ZT488 AND ZT588};
创停:=H>金牛 AND M55>C AND M54<C,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖HH:=H>金牛 AND M55>C AND M54<C AND H,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖CC:=H>金牛 AND M55>C AND M54<C AND C,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖在创涨停:IF(负数现—防下跌<0 AND 三 AND 创停 AND 卖HH AND 卖CC AND C>=创涨停,4,0),STICK,COLORABCDFF,LINETHICK6;{ OR 卖2 OR 卖3}
DIF88:=CROSS(卖在创涨停,1) AND 上升趋势>0,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*1.0,'卖'),COLORABCDFF;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*0.4,'在'),COLORABCDFF;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*1.0,' 创'),COLORABCDFF;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*0.4,' 停'),COLORABCDFF;
{卖在普通版妖股涨停板}
VOLUME:=VOL,VOLSTICK;
放:=VOL>REF(VOL,1)*4;
ZT8:=C/REF(C,1)>1.097 AND CLOSE=HIGH;
ZT18:=REF(C,1)/REF(C,2)>1.097 AND REF(CLOSE,1)=REF(HIGH,1);
ZT28:=REF(C,2)/REF(C,3)>1.097 AND REF(CLOSE,2)=REF(HIGH,2);
ZT38:=REF(C,3)/REF(C,4)>1.097 AND REF(CLOSE,3)=REF(HIGH,3);
ZT48:=REF(C,4)/REF(C,5)>1.097 AND REF(CLOSE,4)=REF(HIGH,4);
ZT58:=REF(C,5)/REF(C,6)>1.097 AND REF(CLOSE,5)=REF(HIGH,5);
六:=ZT8 AND ZT18 AND ZT28 AND ZT38 AND ZT48 AND ZT58;
卖在普涨停:IF(负数现—防下跌<0 AND 放 AND 六 AND M53>C,4,0),STICK,COLORLIBLUE,LINETHICK6;
DIF99:=CROSS(卖在普涨停,1) AND 上升趋势>0,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*1.0,'卖'),COLORLIBLUE;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*0.4,'在'),COLORLIBLUE;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*1.0,' 普'),COLORLIBLUE;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*0.4,' 停'),COLORLIBLUE;
DIF2:=CROSS(金钻趋势,金牛2) AND 上升趋势>0,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*1.0,'加'),COLORMAGENTA;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*0.4,'速'),COLORMAGENTA;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*1.0,' 上'),COLORMAGENTA;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*0.4,' 涨'),COLORMAGENTA;
DIF4:=CROSS(金牛2,金钻趋势) AND 下降趋势>0;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*1.0,'加'),COLORGREEN;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*0.4,'速'),COLORGREEN;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*1.0,' 下'),COLORGREEN;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*0.4,' 跌'),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:XMA
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{ 填充背景(收盘价>0,RGB(0,10,10),RGB(88,0,0),0,2,0)
}
Q0赋值:1
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
DRAWTEXT_FIX(1,0.06,0.0,0,'(一)、绿横线出现是股价“下降”趋势出现,绿“加速”是继续下降信号,卖出为主,绿横线下方小绿柱是股价下降过程中的卖出信号。'),画绿色
DRAWTEXT_FIX(1,0.06,0.20,0,'(二)、红横线出现是股价“上升”趋势出现,红“加速”是继续上升信号,买入为主,红横线下方小红柱是股价上升过程中的买入信号。
'),画洋红色
}
X_111赋值:EMA((收盘价-1日前的收盘价)/3日前的收盘价,10)*100
X_222赋值:X_111的2日指数移动平均,2),2),3)
X_333赋值:(收盘价-收盘价的26日简单移动平均)/收盘价的26日简单移动平均*100
X_444赋值:1
A555赋值:IF(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100>0 AND MA(收盘价,5)>MA(收盘价,10) AND X_333>EMA(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,5) AND X_222>1日前的X_222,MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,0)
持股线赋值:(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100>0 AND MA(收盘价,5)>MA(收盘价,10) AND X_333>EMA(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,5) AND DYNAINFO(17)>0)*A555/3.5,画红色
X_555赋值:MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100
X_666赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
X_777赋值:X_666+3*X_666的10估算标准差
X_888赋值:收盘价的26日简单移动平均+2*收盘价的26估算标准差
X_999赋值:(成交量>0 AND A555>0 AND X_222>1日前的X_222)*A555的5日指数移动平均
X_1010赋值:(成交量>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(收盘价的2日指数移动平均,26日内收盘价的5日指数移动平均最高值))*A555的2日指数移动平均
X_1111赋值:(成交量>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(收盘价的2日指数移动平均,26日内收盘价的5日指数移动平均最高值))*(-3)
X_1212赋值:(成交量>0 AND EMA((收盘价-MA(收盘价,28))/MA(收盘价,28),2)>MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4) AND MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4)>REF(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4),1) AND SMA(MAX(收盘价-REF(收盘价,1),0),14,1)/SMA(收盘价-REF(收盘价,1的绝对值),14,1)*100>64.5 AND EMA(收盘价,1)>(X_777 OR X_888))*EMA(A555,5)/2.5,画青色
负数现—防下跌赋值:(持股线-X_1212),画白色
{,NODRAW不画该线}
设置线赋值:(收盘价的5日指数移动平均*7+收盘价的10日指数移动平均*3)/10,画白色, 线宽为2
X_4赋值:(最高价+最低价+开盘价+收盘价)/4
X_5赋值:X_4的13日指数移动平均-X_4的34日指数移动平均
X_6赋值:X_5的5日指数移动平均
X_7赋值:(X_5-X_6)*5
X_8赋值:IF(X_7>=1000,1000,IF(X_7<=X_4,X_4,X_7))
X_9赋值:FORCAST(FORCAST(X_8,32),10)
X_10赋值:(收盘价-收盘价的13日指数移动平均)/收盘价的13日指数移动平均*(0-100)
X_11赋值:X_10/10+收盘价的13日指数移动平均,8)
X_12赋值:收盘价的3日指数移动平均
X_13赋值:EMA(SLOPE(收盘价,22)*20+收盘价,45)
X_14赋值:IF(PERIOD>8 AND PERIOD<11,X_13的1日简单移动平均,IF(PERIOD=8,X_13的4日简单移动平均,IF(PERIOD=7,X_13的8日简单移动平均,IF(PERIOD=6,X_13的16日简单移动平均,IF(PERIOD=5,X_13的32日简单移动平均,0)))))
X_15赋值:X_14*0.865
如果X_12>X_14返回X_12否则返回X_15
买卖线赋值:X_16的相反数+2*X_9,画洋红色
收盘价的5日[1日权重]移动平均
逢高卖出赋值:LLV(MA(最高价,(3)),1), 线宽为2,画黄色
{5138系统}
MA55赋值:C的55日简单移动平均
EXPA赋值:C的6日指数移动平均画红色, 线宽为2
M5赋值:收盘价的5日简单移动平均画白色
M5138线:=C的5日简单移动平均-C的13日简单移动平均+C的8日简单移动平均,DOTLINE,画青色,LINETHICK1
M52:=M5138线的2日简单移动平均,画黄色,LINETHICK1
M53:=(M5138线*1.045),画黄色,LINETHICK1
M54:=(M5138线*1.090),画黄色,LINETHICK1
M55:=(M5138线*1.135),画黄色,LINETHICK1
DIF0赋值:C上穿M5138线,画黄色,LINETHICK1
DI赋值:M5138线上穿M52
{调整涨停买卖}
C2赋值:1日前的C
普涨停赋值:(C2*1.1),画黄色
创涨停赋值:(C2*1.2),画黄色,NODRAW
涨停赋值:IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0)
停赋值:(涨停,开盘价,收盘价,1,0),画黄色
ZT赋值:(H/1日前的C-1)*100>=9.97,画黄色
选股赋值:ZT AND C如果C>ZT返回1否则返回0
ZT2:=(H/1日前的C-1)*100>=19.97,画黄色
如果ZT2返回0否则返回1
如果C<普涨停 AND 普涨停>C返回1否则返回0
如果涨停>0返回0否则返回1
{=============================}
XA_1赋值:STRCAT(HYBLOCK,3)
XA_2赋值:STRCAT(XA_1,DYBLOCK)
XA_3赋值:STRCAT(XA_2,3)
金牛赋值:(XX最高价的25日简单移动平均,25)-XX最低价的25日简单移动平均,25))*1+XX最高价的25日简单移动平均,25),画黄色
金钻趋势赋值:XX最低价的25日简单移动平均,25)-(XX最高价的25日简单移动平均,25)-XX最低价的25日简单移动平均,25))*1,画红色, 线宽为2
金牛2:=金钻趋势的25日指数移动平均,画青色, 线宽为2
输出下降趋势:IF(金牛<1日前的金牛,5,0),画绿色, 线宽为2
DRAWTEXT(下降趋势上穿0.00001,下降趋势+下降趋势*1.0,'下'),画绿色
DRAWTEXT(下降趋势上穿0.00001,下降趋势+下降趋势*0.4,'降'),画绿色
DRAWTEXT(下降趋势上穿0.00001,下降趋势+下降趋势*1.0,' 趋'),画绿色
DRAWTEXT(下降趋势上穿0.00001,下降趋势+下降趋势*0.4,' 势'),画绿色
输出上升趋势:IF(金牛>1日前的金牛,5,0),画洋红色, 线宽为2
XG47赋值:IF(金牛2>1日前的金牛2,2,0),画洋红色, 线宽为2
DRAWTEXT(上升趋势上穿0.00001,上升趋势+上升趋势*1.0,'上'),画洋红色
DRAWTEXT(上升趋势上穿0.00001,上升趋势+上升趋势*0.4,'升'),画洋红色
DRAWTEXT(上升趋势上穿0.00001,上升趋势+上升趋势*1.0,' 趋'),画洋红色
DRAWTEXT(上升趋势上穿0.00001,上升趋势+上升趋势*0.4,' 势'),画洋红色
XG赋值:IF(L<1日前的金钻趋势 AND C>M5138线 AND 上升趋势>0,1,0) AND 金钻趋势>M5138线 OR IF(L<1日前的金牛2 AND XG47>0 AND 上升趋势>0,1,0) AND 金钻趋势>M5138线 OR IF(O<1日前的金钻趋势 AND 逢高卖出>=拐点 AND M5138线>=M52 AND C>M5138线 ,1,0) AND 金钻趋势>M5138线 OR IF(L<1日前的金钻趋势 AND 逢高卖出>=拐点 AND M5138线>=M52 AND C>M5138线 ,1,0) AND 金钻趋势>M5138线,STICK,画红色, 线宽为2
如果金钻趋势>最低价 AND 金钻趋势<最高价返回1否则返回0
{黄金钻}
如果金钻趋势>最低价 AND 金钻趋势<最高价返回1否则返回0
{黄金钻}
如果金钻趋势>最低价 AND 金钻趋势<最高价返回1否则返回0
X3:=金钻趋势>最低价 AND 金钻趋势>M5138线 AND C>M5138线 AND DIF0,画黄色
如果XG AND C>M5138线 AND DI OR X3 AND C>M5138线 AND DI OR X AND C>M5138线 AND DI OR X1 AND C>M5138线 AND DI OR X2 AND C>M5138线 AND DI返回4否则返回0
卖涨3赋值:O>C AND H>金牛 AND 杀4,画红色,LINETHICK1
{H>金牛 AND M53>C AND }
卖涨2:=H>金牛 AND M55>H AND M54>C AND 杀4,画红色,LINETHICK1
{H>金牛 AND M53>C AND }
卖涨:=H>金牛 AND M53>C AND 杀4,画红色,LINETHICK1
{H>金牛 AND M53>C AND }
卖H:=H>金牛 AND M53>C AND H AND 杀4,画黄色,LINETHICK1
{H>金牛 AND M53>C AND }
卖C:=H>金牛 AND M53>C AND C AND 杀4,画青色,LINETHICK1
{H>金牛 AND M53>C AND }
卖2:=H>金牛 AND M53>C AND 杀4,画黄色, 线宽为2
{ AND 下降趋势>上升趋势}
卖3:=C>金牛 AND M53>H AND 杀4,画青色,LINETHICK1
如果卖涨 AND 卖H AND 卖C OR 卖2 OR 卖3 OR 卖涨2 OR 卖涨3 AND M52>M5138线返回4否则返回0
{ OR 卖2 OR 卖3}
{卖在创业版妖股涨停板}
ZT88:=C/1日前的C>1.197 AND 收盘价=最高价
ZT188:=1日前的C/2日前的C>1.197 AND 1日前的收盘价=1日前的最高价
ZT288:=2日前的C/3日前的C>1.197 AND 2日前的收盘价=2日前的最高价
ZT388:=3日前的C/4日前的C>1.197 AND 3日前的收盘价=3日前的最高价
ZT488:=4日前的C/5日前的C>1.197 AND 4日前的收盘价=4日前的最高价
ZT588:=5日前的C/6日前的C>1.197 AND 5日前的收盘价=5日前的最高价
三赋值:ZT88 AND ZT188{ AND ZT288 AND ZT388 AND ZT488 AND ZT588}
创停赋值:H>金牛 AND M55>C AND M54{H>金牛 AND M53>C AND }
卖HH:=H>金牛 AND M55>C AND M54{H>金牛 AND M53>C AND }
卖CC:=H>金牛 AND M55>C AND M54如果负数现—防下跌<0 AND 三 AND 创停 AND 卖HH AND 卖CC AND C>=创涨停返回4否则返回0
{ OR 卖2 OR 卖3}
DIF88:=卖在创涨停上穿1 AND 上升趋势>0,画洋红色,LINETHICK1
DRAWTEXT(DIF88上穿0.00001,上升趋势+上升趋势*1.0,'卖'),COLORABCDFF
DRAWTEXT(DIF88上穿0.00001,上升趋势+上升趋势*0.4,'在'),COLORABCDFF
DRAWTEXT(DIF88上穿0.00001,上升趋势+上升趋势*1.0,' 创'),COLORABCDFF
DRAWTEXT(DIF88上穿0.00001,上升趋势+上升趋势*0.4,' 停'),COLORABCDFF
{卖在普通版妖股涨停板}
成交量UME:=成交量,成交量STICK
放赋值:成交量>1日前的成交量*4
ZT8:=C/1日前的C>1.097 AND 收盘价=最高价
ZT18:=1日前的C/2日前的C>1.097 AND 1日前的收盘价=1日前的最高价
ZT28:=2日前的C/3日前的C>1.097 AND 2日前的收盘价=2日前的最高价
ZT38:=3日前的C/4日前的C>1.097 AND 3日前的收盘价=3日前的最高价
ZT48:=4日前的C/5日前的C>1.097 AND 4日前的收盘价=4日前的最高价
ZT58:=5日前的C/6日前的C>1.097 AND 5日前的收盘价=5日前的最高价
六赋值:ZT8 AND ZT18 AND ZT28 AND ZT38 AND ZT48 AND ZT58
如果负数现—防下跌<0 AND 放 AND 六 AND M53>C返回4否则返回0
DIF99:=卖在普涨停上穿1 AND 上升趋势>0,画洋红色,LINETHICK1
DRAWTEXT(DIF99上穿0.00001,上升趋势+上升趋势*1.0,'卖'),COLORLIBLUE
DRAWTEXT(DIF99上穿0.00001,上升趋势+上升趋势*0.4,'在'),COLORLIBLUE
DRAWTEXT(DIF99上穿0.00001,上升趋势+上升趋势*1.0,' 普'),COLORLIBLUE
DRAWTEXT(DIF99上穿0.00001,上升趋势+上升趋势*0.4,' 停'),COLORLIBLUE
DIF2:=金钻趋势上穿金牛2 AND 上升趋势>0,画洋红色,LINETHICK1
DRAWTEXT(DIF2上穿0.00001,上升趋势+上升趋势*1.0,'加'),画洋红色
DRAWTEXT(DIF2上穿0.00001,上升趋势+上升趋势*0.4,'速'),画洋红色
DRAWTEXT(DIF2上穿0.00001,上升趋势+上升趋势*1.0,' 上'),画洋红色
DRAWTEXT(DIF2上穿0.00001,上升趋势+上升趋势*0.4,' 涨'),画洋红色
DIF4:=金牛2上穿金钻趋势 AND 下降趋势>0
DRAWTEXT(DIF4上穿0.00001,下降趋势+下降趋势*1.0,'加'),画绿色
DRAWTEXT(DIF4上穿0.00001,下降趋势+下降趋势*0.4,'速'),画绿色
DRAWTEXT(DIF4上穿0.00001,下降趋势+下降趋势*1.0,' 下'),画绿色
DRAWTEXT(DIF4上穿0.00001,下降趋势+下降趋势*0.4,' 跌'),画绿色