行情分析主图: XA1:=1; 牛熊线:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),LINETHICK1,CIRCLEDOT,COLORYELLOW; 小牛:=CROSS(C,牛熊线); DRAWTEXT(小牛,L,'↖走强区'),COLORRED,LINETHICK4; DRAWTEXT(ISLASTBAR,牛熊线,'牛熊线'),COLORYELLOW; MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; MXD:=IF((DATETODAY(DATE))<11699,1,DRAWNULL); 操盘线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,NODRAW; 安全线:MA(操盘线,11),COLORGRAY,LINESTICK,LINETHICK1; MA20:MA(C,20),NODRAW; 趋势线:MA(C,6) COLORGREEN, LINETHICK2; STICKLINE(趋势线>=MA20,CLOSE,OPEN,3,0),COLOR0000FF; STICKLINE(趋势线>=MA20,CLOSE,OPEN,0.5,0),COLORCC66FF; STICKLINE(MA20>趋势线,CLOSE,OPEN,3,0),COLORFF9900; STICKLINE(MA20>趋势线,CLOSE,OPEN,0.5,0),COLORFFCC00; 大牛:=CROSS(趋势线,MA20); 死牛:=CROSS(MA20,趋势线); DRAWTEXT(大牛,L,'↖行情开始'),COLORYELLOW,LINETHICK4; DRAWTEXT(死牛,H,'↖行情结束'),COLORWHITE ,LINETHICK4; STICKLINE(CROSS(趋势线,MA20),OPEN,CLOSE,2,0),COLOR00FFFF ; STICKLINE(CROSS(MA20,趋势线),OPEN,CLOSE,2,0),COLOR00DD00; VAR2:=O>MA(C,安全线) AND C<MA(C,安全线); STICKLINE(CROSS(安全线,C),OPEN,CLOSE,2,0),COLORFF0000; AMA3:IF(趋势线/REF(趋势线,安全线)>0.997,趋势线,DRAWNULL),COLORBLUE,LINETHICK3; AMA4:IF(趋势线/REF(趋势线,安全线)>1.001,趋势线,DRAWNULL),COLORRED,LINETHICK3; WH1:=IF(L=LLV(L,9),L,0); WH2:=CONST(BARSLAST(WH1!=0)); WH3:=CONST(IF(WH2=0,H,REF(H,WH2))); WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1); WH5:=CONST(IF(WH4=0,H,REF(H,WH4))); WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1); WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORYELLOW,DOTLINE; DRAWTEXT(ISLASTBAR,WH7,'进场线'),COLORYELLOW; DP:=IF(C=INDEXC,0,1); GJ:=AMOUNT/V/100; 明日阻力:=L+(GJ-L)+(C-L); 明日支撑:=L+(C-GJ); 今日阻力:REF(明日阻力 , 1)NODRAW; 今日支撑:REF(明日支撑 , 1)NODRAW; 止盈价:H*0.95,LINETHICK0,COLORRED; {止盈价是股价盘中破掉了三十分钟不再站上来,立即止盈出局}; DRAWTEXT_FIX(1,0,0.05,0,'金【趋势线上穿安全线是鱼身行情出现的信号】'),COLORYELLOW; DRAWTEXT_FIX(1,0,0.1,0,'木【趋势线下穿安全线是行情完全结束的信号】'),COLORGREEN; DRAWTEXT_FIX(1,0,0.15,0,'水【K线变蓝色下穿安全线是行情提前结束的信号】'),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.2,0,'火【安全线上的红色K线就持股,灰蓝色K线就持币】'),COLORRED; DRAWTEXT_FIX(1,0,0.25,0,'土【K线上穿牛熊线为强势区,跟着行情死盯一只股买】'),COLORCYAN; 五天战法二: {公式名称: 五天战法二 公式描述: 无参数 公式类型: 技术指标公式-其他类型 画线方法: 副图 公式版本: 0 显示小数: 缺省位数 坐标线位置: 自动 额外Y轴分界: 无 参数精灵:无 用法注释:无 公式源码:} XA_1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; XA_2:=SMA(XA_1,3,1); XA_3:=SMA(XA_2,3,1); XA_4:=CROSS(XA_2,XA_3); XA_5:=CROSS(CLOSE,MA(CLOSE,5)) AND CROSS(CLOSE,MA(CLOSE,10)); XA_6:=DATETODAY(DATE); XA_7:=IF(XA_6<9966,1,DRAWNULL); XA_8:=(HIGH-CLOSE)/CLOSE*100<1; XA_9:=1150501; XA_10:=IF(DATE<XA_9,1,DRAWNULL); XA_11:=MA(CLOSE,5); XA_12:=IF(XA_6<15366,1,DRAWNULL); XA_13:=MA(CLOSE,5); XA_14:=MA(CLOSE,30); XA_15:=MA(CLOSE,13); XA_16:=MA(CLOSE,34); XA_17:=VOL>=HHV(VOL,5); XA_18:=CLOSE>REF(CLOSE,1)*1.058; XA_19:=(CLOSE-XA_13)/XA_13*XA_12*100*XA_7; XA_20:=(CLOSE-XA_16)/XA_16*100*XA_12; XA_21:=COUNT(CROSS(XA_19,0),3)>=1 AND XA_20>REF(XA_20,1) AND XA_13>REF(XA_13,1) AND (CLOSE/REF(CLOSE,1)-1)*100>5 AND REF(CLOSE,1)<XA_14; XA_22:=REF(CLOSE<OPEN,1) AND CLOSE>OPEN AND XA_5 AND XA_8; XA_23:=CROSS(CLOSE,MA(CLOSE,5)) AND VOL>=REF(VOL,1)*2; XA_24:=REF(CLOSE>OPEN OR OPEN>CLOSE,21); 短线战法:FILTER(XA_21,10)*XA_10 AND XA_18 AND XA_22,COLORRED,LINETHICK3; 小杨高抛低吸: 源码可以用在电脑版,或者用在手机通达信( 顶尖财经 股票学院: http://www.58188.com ) 生命指数:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),NODRAW; 顶:=IF(生命指数>90,80,90),COLORGREEN; {顶部线:80,POINTDOT,COLORYELLOW; 中部线:50; 底部线:20,POINTDOT,COLORYELLOW;} 底:=IF(生命指数<10,30,10),COLORYELLOW; STICKLINE(底=30,0,10,4,0),COLORYELLOW; STICKLINE(顶=80,0,10,4,0),COLORBLUE; STICKLINE(顶<>80 AND 底<>30,0,10,4,0),COLORLIGREEN; VAR1:=REF(OPEN,1); VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100; VAR3:=REF(CLOSE,1); VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100; VAR5:=REF(HIGH,1); VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100; VAR7:=REF(LOW,1); VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,21,30,4,0),COLORGREEN; STICKLINE(VAR4>VAR2,21,30,4,0),COLORRED; N1:=3;N2:=7;N3:=21; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; ZB1:=RSI1<底; 建仓:IF(CROSS(RSI1,底),10,0),LINETHICK3,COLORRED; 买入时间:IF(CROSS(生命指数,底),20,0),LINETHICK3,COLORMAGENTA; DRAWICON(CROSS(RSI1,底),15,1); DRAWICON(建仓 AND 买入时间,20,1); ZB2:=(ZB1=0 AND RSI1<=顶); 卖出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建仓=0,10,20),LINETHICK3,COLORGREEN; |