通达信老鸭头等指标公式
通达信主力资金进入指标公式【控盘、出货、吸货、对倒出货洗盘、黄色底部吸货、多头买入、多头卖出】
通达信主力资金进入指标公式【控盘、出货、吸货、对倒出货洗盘、黄色底部吸货、多头买入、多头卖出】VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 -20),3.5,0),COLOR00AAFF;STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;VAR1:=EMA(EMA(CLOSE,3),1);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;主力出货:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;主力吸货:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货洗盘:0,COLOR00FF00;黄色底部吸货:0,COLORYELLOW;DRAWTEXT(CROSS(控盘,0),0-3,'买。
通达信主力资金进入指标公式 控盘出货 吸货 对倒出货洗盘 黄色底部吸货 多头买入 多头卖出
通达信主力资金进入指标公式【控盘、出货、吸货、对倒出货洗盘、黄色底部吸货、多头买入、多头卖出】VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);VAR6:=MA(VAR5,3);开始控盘:=STICKLINE((VAR6<=(0-10)),0,(0-20),3.5,0),COLOR00AAFF;STICKLINE((VAR6<=(0-10)),0,(0-20),3.5,0),COLOR0044FF;STICKLINE((VAR6<=(0-10)),0,(0-20),2.5,0),COLOR0088FF;STICKLINE((VAR6<=(0-10)),0,(0-20),3,0),COLOR00AAFF;VAR1:=EMA(EMA(CLOSE,3),1);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;主力出货:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1,0),COLOR0000EE;主力吸货:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货洗盘:0,COLOR00FF00;黄色底部吸货:0,COLORYELLOW;DRAWTEXT(CROSS(控盘,0),0-3,'买。
通达信几种实用的条件选股公式,一旦掌握,至少翻翻!
通达信几种实用的条件选股公式,一旦掌握,至少翻翻!(2018-06-08 07:25:27)转载标签:股票分类:股票公式一、均线上拐选股法自编公式操作步骤:均线上拐公式:ma(c,60)>ref(ma(c,60),1) and ref(ma(c,60),1)“设置”“公式管理”“自编”“条件选股”“新建”“公式名称——“60天均线上拐”在图片下方位置,把公式“ma(c,60)>ref(ma(c,60),1) and ref(ma(c,60),1)时间统计公式:last(ref(ma(c,60),1)步骤如下:“设置”“公式管理”“自编”“技术指标”“新建”“公式名称—60天时间统计”在图片下方位置,把公式“last(ref(ma(c,60),1)选股步骤:均线上拐——时间统计——安全系数。
使用条件选股——条件选股(新版)——60天均线上拐——执行选股:执行结果如下:添加技术指标——时间统计——排序:二、预测涨停选股用法:每天9:25后,用条件选股,筛选出优质股票,自己再再结合市场情况判断,选出的股票里面会有惊喜!源码:RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=(SMA(RSV,3,1));D:=(SMA(K,3,1));KK:=INTPART(SMA(RSV,3,1));DD:=INTPART(SMA(K,3,1));N:=KK+DD,COLORFF00FF,LINETHICK2;预测:=IF(CROSS(N,50),90,50),COLOR00FF00;涨停:=IF(CROSS(N,99.5),100,50),COLORYELLOW;涨停>预测;三、股价位于均线上方选股公式{股价位于均线上方选股公式}TA:=BARSSINCE(CLOSE);MA5:=IF(TA>=5,MA(C,5),0);MA10:=IF(TA>=10,MA(C,10),0);MA20:=IF(TA>=20,MA(C,20),0);MA60:=IF(TA>=60,MA(C,60),0);A1:=MA5>MA10 AND MA10>MA20 AND MA20>MA60;LMAX:=MAX(MAX(MA5,MA10),MAX(MA20,MA60));CROSS (CLOSE,MA5) AND V>=REF(V,1)AND A1;四、老鸭头“老鸭头”的操作要领:1、找到鸭脖子,见图中的A处。
通达信技术指标公式源码资产配置终结版
通达信技术指标公式源码资产配置终结版简介本文档提供通达信技术指标公式源码资产配置的终结版。
以下是各指标公式及其使用方法的详细说明。
指标公式1. 移动平均线 (MA)公式:MA(N) = SUM(CLOSE, N) / N说明:该指标计算一段时间内收盘价的均值,并用于确定趋势的方向。
使用方法:在通达信软件中,打开相应的K线图,选择相应的参数N来显示移动平均线。
2. 相对强弱指标 (RSI)公式:RSI(N) = 100 - 100 / (1 + RS)其中,RS = SUM(U, N) / SUM(D, N)说明:该指标测量价格上涨与下跌的强度,用于判断市场是否超买或超卖。
使用方法:在通达信软件中,打开相应的K线图,选择相应的参数N来显示相对强弱指标。
3. 随机指标 (KDJ)公式:K = (CLOSE - L) / (H - L) * 100其中,L = LOW(N),取N天内最低价; H = HIGH(N),取N 天内最高价; N为参数。
说明:该指标通过计算最高价与最低价之间的波动,判断价格的超买或超卖状态。
使用方法:在通达信软件中,打开相应的K线图,选择相应的参数N来显示随机指标。
资产配置建议根据以上指标的终结版公式,以下是一些建议的资产配置策略。
1. 中长期趋势投资:结合移动平均线指标,选择公式中的N值,观察市场趋势并进行中长期投资。
2. 短期超买超卖操作:结合相对强弱指标和随机指标,观察市场超买或超卖状态,进行短期买卖操作。
请注意,以上建议仅供参考,投资决策应根据个人风险承受能力和市场情况来定。
结论本文档提供了通达信技术指标公式源码资产配置的终结版。
通过应用这些指标公式,您可以进行趋势分析和资产配置,帮助您在投资中做出明智的决策。
以上为文档内容,如有疑问,请随时联系。
通达信指标公式大全
通达信指标公式大全:1.主力大单指标公式ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,VOL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*100,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);2.主力控盘指标公式V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);开始控盘:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;V AR1:=EMA(EMA(CLOSE,3),1);控盘:=(V AR1-REF(V AR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;无控盘:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;高度控盘:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货:0,COLOR00FF00;3.通达信资金进出分时指标公式(C,1),C*V,0),FROMOPEN),STICK,COLORRED;资金流出:-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN),STICK,COLOR00FF00;资金差:资金流入+资金流出,COLORYELLOW;4.通达信做T+0的分时公式MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};5.通达信超准分时图指标公式BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*1 00,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARS COUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));底线:1.003,COLORRED,LINETHICK2;高线:1.03,COLORRED,LINETHICK3;黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPMA((DCLOSE/ VBNH),60)*1,1);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPMA((DCLOSE/ VBNH),120)*1,2);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18);STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0), , COLORMAGENTA; STICKLINE(EXPMA(C,10)>EXPMA(C,60) ,1.03,1.034,1.0,0),COLORRED;STICKLINE(EXPMA(C,10)<EXPMA(C,60) ,1.03,1.025,1.0,0),COLORGREEN;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORWHITE; STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003 ,1.03,1.039,1.0,0),COLORMAGENTA; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,'观察分时量 '),COLORWHITE; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);6.通达信观察分时指标公式BG:=IF(DATE<=1150530,1,0);GH:=BETWEEN((DCLOSE*BG)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOU NT((DCLOSE*BG)))),1.05,0.95);VB:=IF(GH=0,MA((DCLOSE*BG),BARSCOUNT((DCLOSE*BG))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BG)))));中线:1,COLORBLUE,LINETHICK2;快趋势线:EXPMA((DCLOSE/VB),21),COLORYELLOW,,LINETHICK1;慢趋势线:EXPMA((DCLOSE/VB),54),COLORGREEN,LINETHICK1;DRAWICON(CROSS(快趋势线,中线),快趋势线,1);DRAWICON(CROSS(慢趋势线,中线) AND (快趋势线>中线),中线-0.002,15);DRAWTEXT(CROSS(EXPMA((DCLOSE/VB),20),1),快趋势线-0.0025,'涨'),COLORRED; DRAWTEXT(CROSS(快趋势线,中线),快趋势线-0.0055,'买进'),COLORYELLOW;DRAWICON(CROSS(快趋势线,慢趋势线),慢趋势线,13);STICKLINE(快趋势线>中线 AND 快趋势线>REF(快趋势线,1) AND 快趋势线>慢趋势线,快趋势线,快趋势线+0.0015,1,0),COLORMAGENTA;DRAWTEXT(CROSS(中线,快趋势线),中线,'注意'),COLORWHITE;DRAWICON(CROSS(慢趋势线,快趋势线),慢趋势线,2);V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);见顶清仓:= STICKLINE(趋势线>=90 AND V12,中线,快趋势线,2,0),COLORCYAN; DRAWICON(CCC,快趋势线,12);DRAWICON(BB,快趋势线,23);DRAWTEXT (BB,快趋势线,'补仓'),COLORLIRED;7.通达信分时买卖力道指标公式A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR=1),((100*A2)/A6),0);A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));机构买盘:(A2),LINETHICK0;机构卖盘:(A3),LINETHICK0;散户买盘:(A4),LINETHICK0;散户卖盘:(A5),LINETHICK0;STICKLINE(机构买盘>0 AND 机构买盘>=机构卖盘 AND 机构买盘>=REF(机构买盘,1),20,20+100,1,0),COLORRED;STICKLINE(机构卖盘>0 AND 机构卖盘>=机构买盘 AND 机构卖盘>=REF(机构卖盘,1),20,20+100,1,0),COLORWHITE;STICKLINE(散户买盘>0 AND 散户买盘>=散户卖盘 AND 散户买盘>=REF(散户买盘,1),-20,-20-100,1,0),COLORLIMAGENTA;STICKLINE(散户卖盘>0 AND 散户卖盘>=散户买盘 AND 散户卖盘>=REF(散户卖盘,1),-20,-20-100,1,0),COLORCYAN;VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;买卖力道: SMA(VAR2,3,1),COLORLIGRAY;VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),V OL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-L OW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3 *(HIGH-OPEN+CLOSE-LOW),VOL/2)));VAR5:=AMOUNT/(100*VOL);VAR6:=MA(VAR5,40);VAR7:=100*(CLOSE-VAR6)/VAR6;底部追击:= IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),COLORGREEN; STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , COLORGREEN; VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR9:=SMA(VAR8,3,1);VARA:=SMA(VAR9,3,1);D: SMA(VARA,5,1)*20, COLORCYAN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);买入股票:= (趋势线<=13 AND V12>13),COLORRED;CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);清仓:=FILTER(趋势线>=90 AND V12 AND CROSS(D,买卖力道),5),COLORYELLOW;卖出区: 清仓+1800,COLORYELLOW;中:(0+卖出区)/2, COLORGREEN;{股旁网-股票公式网站 }STICKLINE(买卖力道>=中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORMAGENTA;STICKLINE(买卖力道>=中 AND 买卖力道< REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORBROWN;STICKLINE(买卖力道<中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORGREEN;STICKLINE(买卖力道<中 AND 买卖力道< REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORBLUE;DRAWICON(买入股票,中,15);DRAWTEXT (BB,0,'买股'),COLORYELLOW;DRAWTEXT(清仓,买卖力道,'顶'),COLORYELLOW;STICKLINE(清仓,买卖力道,买卖力道+0.01,2,0),COLORBLUE; DRAWICON(CROSS(D,中),中,13);DRAWICON(CROSS(中,买卖力道),买卖力道,2);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=(DIF-DEA)*3;红线:=IF(MACD>=0 AND MACD>REF(MACD,1),中,DRAWNULL);青线:=IF(MACD>=0 AND MACD< REF(MACD,1),中,DRAWNULL);粉线:=IF(MACD<0 AND MACD>=REF(MACD,1),中,DRAWNULL);蓝线:=IF(MACD<0 AND MACD< REF(MACD,1),中,DRAWNULL); STICKLINE(红线,200,250,1,0),COLORRED,LINETHICK1;STICKLINE(青线,200,250,1,0),COLORCYAN,LINETHICK1;STICKLINE(粉线,200,250,1,0),COLORMAGENTA,LINETHICK1; STICKLINE(蓝线,200,250,1,0),COLORBLUE,LINETHICK1;DRAWICON(CROSS((A2),(A3)),200,23);通达信如何使用分时指标的教程找到通达信软件的安装位置,打开“T0002”文件夹,找到“user.ini”文件,用记事本打开,把里面“Zstzb=MACD”这一句中的MACD修改为自己要用的指标名称就OK啦。
通达信指标公式源码赢在龙头的多空对比指标洗盘抄底一目了然
赢在龙头的多空对比指标洗盘抄底一目了然
赢在龙头的多空对比指标,大家应该都不陌生,里面加入了比较直观的提示,一目了然,再结合其他指标可以提高准确率。
里面洗盘的数值自己可以调。
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2; A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COL ORRED;
长期线:A+100,COLORGREEN,LINETHICK2;
高浪日:=REF(短期,1)<2 AND REF(中期,1)<2 AND REF(中长期,1)<2 AND REF(长期,1)<2;
高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(高浪日抄底,35,'买'),COLORYELLOW,LINETHICK3;
强市线:80,POINTDOT;
弱市线:20,POINTDOT;
分水岭:50,POINTDOT;
洗:=短期<弱市线AND 长期>70;
DRAWTEXT(洗,25,'洗'),COLORRED;。
通达信指标公式大全
SZ3天地人天:IF(HHVBARS(V,60),REF(C,HHVBARS(V,60)),C),COLORLIBLUE,POINTDOT;地:IF(LLVBARS(V,5),REF(C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;主高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3; STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2ANDV/REF(V,1)>=0.8;D:=H=HHV(H,3);AANDBANDD;位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;多:(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(MI D,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,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸}DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3ORL<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE); DRAWICON(A1ANDREF(A1,1)=0,L*0.98,7);VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4); VAR2:=DMA(CLOSE,VOL/MA(VOL,31)/31); VAR3:=(CLOSE-VAR1)/VAR1*100<-10;VAR4:=(VAR1-VAR2)/VAR2*100<-16;VAR5:=VAR3ANDVAR4;VAR6:=VAR5AND(OPEN>CLOSEOROPEN<CLOSE)AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1ANDMACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA;DRAWTEXT(A<-LGANDLF=0,L*0.96,'下跌过急'),COLORYELLOW;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELLOW;DRAWICON(CROSS(J,0)ANDRSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2); DRAWTEXT(CROSS(J,5)ANDRSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;多方炮:A8ANDJ<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE-EMA(CLOS E,13))/EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS/10)+EMA(CLOSE,10)),3);AA:=-100*(趋势线-CLOSE)/趋势A(ABS((CLOSE-VAR4Y)),24,1))*100);VAR8Y:=(((CLOSE-LLV(LOW,45 ))/(HHV(HIGH,45)-LLV(LOW,45)))*100);VAR9Y:=SMA(VAR8Y,3,1);V ARAY:=SMA(VAR9Y,3,1);VARBY:=((3*VAR9Y)-(2*VARAY));VARCY:=(C ROSS(VAR5Y,10)AND(VAR3Y<(0-(28*20))));VARDY:=((100-CROSS(76 ,VAR5Y))AND(VAR3Y>(5*20)));DRAWICON(((CROSS(76,VAR5Y)AND(VAR3Y>5))),(HIGH*1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(VAR9 Y,VARAY)AND(VARAY<10))AND(VAR3Y<(0-30)))AND(VAR2Y>3))*30);V ARFY:=-((((VARAY<11)AND(VAR5Y<15))AND(VAR3Y<(0-26)))*10);DR AWICON((CROSS(VARFY,(0-9))),(LOW*0.998),5);能量线:=DMA(((CLOSE+OPEN)/2),(VOL/(SMA(VOL,4,1)*4)));VAR3C:=EMAR8,1))+(0.333*VAR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,B B)AND(BB<30));CD:=(BB1*0.6);DRAWICON((CD=0.6),(LOW*0.99),9),LINETHICK1,COLOR33CC99;SZ9一号支撑N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,2上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(82,RSI)ANDCLOSE<上线1,HIGH*1.04,'减仓YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线); DRAWTEXT(CROSS(上线1,一号支撑线1)AND上线1>操作,LOW*0.98,'全仓'),COLORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015AND1000*操作/一号支撑线>=975; M2:=1000*一号支撑线1/一号支撑线<=1020AND一号支撑线1/一号支撑线>=980;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点} VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G)ANDJ>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW*0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPENANDCROSS(上线,一号支撑线)ANDLOW>VAR1ANDJ<90,LOW*0.86,'回踩买进'),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;STICKLINE(C<OANDC>REF(C,1),C,O,3,0),COLORFFCC00; STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,3,0),COLOR000055;{红K};STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.7,0),COLOR000077;{红K};STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.1,0),COLOR000099;STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,2.1,0),COLORFF66FF; STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,1.5,0),COLORFF99FF; STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,0.9,0),COLORFFBBFF; STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1) ,6),6);Q_3:=CROSS(EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),E MA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3)+1);Z2:=LLV(L,BARSLAST(Q _3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BARSLAST(Q_4) +1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA)ANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1,NODRAW;STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1);DRAWTEXT(二次金叉,0.225,'二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA),NODRAW;WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WWANDDD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,'反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14)ANDLOW<REF(LOW,1)ANDLOW<REF(LOW,5)ANDMACD>REF(MACD,1)AND0>MACDAND0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);火焰山:EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;火焰:STICKLINE(火焰山>0,0,火焰山,4,1);今量:火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0)COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0)COLOR0066FF;SZ10综合预警VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位部背离,5)=100ORREF(底部背离,6)=100ORREF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1)ANDREF(M13,1)<=REF(M13,2)ANDREF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZDANDZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100ORREF(TJ,2)=100ORREF(TJ,3)=100ORREF(TJ,4)=100ORREF(TJ,5)=100ORREF(TJ,6)=100ORREF(TJ,7)=100ORREF(TJ,8)=100ORREF(TJ,9)=10A05:=IF((A03>20),A04,0);A06:=IF((LOW>A01),0,IF((HIGH<A01),1,(((A01-LOW)+0.009)/((HIGH-LOW)+0.009))));A07:=DMA(A06,(VOL/CAPITAL))*60;A09:=IF((((A07>0)AND(A07>REF(A07,1)))AND(A05<=88)),A07,0);VAR1:=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);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*DRAWTEXT(VAR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90ANDVAR4,0,30,3,0),COLORGRAY;VAR6:=FILTER((趋势>=90ANDVAR4),10);DRAWTEXT(VAR6,40,'清仓'),COLORGRAY;VAR7:=LLV(LOW,30);VAR8:=HHV(HIGH,30);VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;STICKLINE(VAR9>90,100,105,3,2),COLORRED;VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100; DRAWTEXT(IF(CROSS(VAR9,VAR10)ANDVAR9>87,95,0),88,'险VAR17:=EMA(VAR16,5);波浪峰:VAR17,STICK,COLORFF00FF;STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;VAR18:=MA(趋势线,8);IF(CROSS(VAR2,VAR18)ANDVAR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,VAR2)AND趋势线>REF(趋势线,1)AND趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪PL5:=ZIG(3,5);EX3:=ZIG(3,20)<REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)>=REF(ZIG (3,20),2)ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);XG22:=TJ11ORTJ22ORTJ33ORTJ44ORTJ55;SZ14老鼠仓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;FF1:=BB1ANDCC1ANDDD1ANDEE1;DRAWTEXT(FF1,(LOW*0.97),'老鼠仓'),COLOR4080FF;SZ250流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;STICKLINE(YUWEI>0ANDYUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5;STICKLINE(YUWEI>0ANDYUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF;STICKLINE(YUWEI>0ANDYUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF;STICKLINE(YUWEI<0ANDYUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411;STICKLINE(YUWEI<0ANDYUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715;DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);SZDKVAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR3:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3) +16*REF(VAR2,4)+15*REF(VAR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7 )+12*REF(VAR2,8)+11*REF(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VAR2,13)+6*REF(VAR2,14)+5*REF(VAR2 ,15)+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(VAR2,18)+REF(VAR2,20))/210;VAR4:=MA(VAR3,13);VAR5:=EMA(MA(CLOSE,3),34);↓'),,COLORGREEN;『多空安全线』:VAR5,,COLORWHITE;〖关注点〗:STICKLINE(COUNT(VAR3>1.005*VAR4ANDVAR3<=REF(VAR3,1),2) =2ORCOUNT(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4)ANDVAR3>=REF(VAR3,1),2)=2,VAR3,VAR4,10,0),,COLORYELLOW;★买入点:DRAWTEXT(REF(CROSS(VAR3,VAR4),2)ANDVAR3>1.005*VAR4,VAR4,'★买入点'),,COLOR999966;『多空争夺VAR12:=3*VAR10-2*SMA(VAR10,15,1);VAR13:=100-VAR12;VAR14:=100-VAR11;VAR15:=MA(WINNER(CLOSE*0.95)*100,3);VAR16:=100-IF(VAR9>5,IF(VAR9<100,VAR9,VARB-10),0);VAR17:=VAR15>VARB;VAR18:=REF(LOW,1)*0.9;VAR19:=LOW*0.9;VAR1A:=(VAR19*VOL+VAR18*(CAPITAL-VOL))/CAPITAL;VAR1B:=EMA(VAR1A,30);VAR1C:=CLOSE-REF(CLOSE,1);VAR27:=SMA(VAR26,4,1);VAR28:=SMA(VAR27,3,1);VAR29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR2A:=VAR22<=25ANDVAR23<-95ANDVAR29>20ANDVAR25<-30ANDVAR28 <30ANDVAR1B-CLOSE>=-0.25ANDVAR1F<22ANDVAR20<28ANDVAR21>50;DRAWTEXT(CROSS(VAR2A,0.5)ANDCOUNT(VAR2A=1,10)=1,VAR4,'发射资金♂(超短线操作)'),,COLORRED;DRAWTEXT(CROSS(VAR17,0.5)ANDCOUNT(VAR17=1,10)=1,VAR3,'激烈交锋');选股公式K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;多方炮:A8ANDJ<65;双信号FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;VAR01:=CLOSE=HHV(C,4)AND(REF(C,1)>=REF(C,2)ORREF(C,1)>=REF(C,3))ORREF(C,1)=HHV(C,4)ANDCLOSE>=REF(C,2)ORREF(C,2)=HHV(C,4)AND REF(C,3)=LLV(C,4)ANDC>=REF(C,1)ORREF(C,3)=HHV(C,4)ANDC>=REF(C,1)ANDC>=REF(C,2);{收盘价=4日内收盘价的最高值AND昨收>=2日前的收盘价} VAR02:=CLOSE=HHV(C,4)ANDREF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND昨收=4日内收盘价的最低值} VAR03:=CLOSE=LLV(C,4)AND(REF(C,1)<REF(C,2)ORREF(C,1)<REF(C,3))ORREF(C,2)>=REF(C,4)ANDC<REF(C,1);{昨收=4日内收盘价的最高值AND收盘价<2日前的收盘价} VAR06:=V5>REF(V5,1)ANDREF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13)ANDHIGH>HHV(V5,13)ANDCLOSE>REF(C,1)ANDCLOSE>OPEN;VAR08:=VAR07ANDCOUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14ORVAR15)ANDVAR11;买2:=(VAR14ORVAR15)ANDVAR04;买3:=(VAR14ORVAR15)ANDVAR02;买4:=(VAR02ANDVAR11)OR(VAR04ANDVAR11);买5:=(金叉ANDVAR04)OR(金叉ANDVAR02)OR(金叉ANDVAR11);ZHENGYI>80ANDDYNAINFO(4)>0;SZ10ZHENGYI:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);ZHENGYI<10ANDDYNAINFO(4)>0;SZZZZRSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买人:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;SZ1111RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买人:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买人2:=CROSS(买人,趋势J2);SZ3ZHENGYI:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);。
通达信股票划线公式
【通达信】牛股启动(加速度、强势狙击、加仓)-指标公式源码AA05:MA(C,5),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);AA10:=MA(C,10),COLOR00FF00;AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1 )-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;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) ANDAA30<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) ANDAA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10<REF(AA10,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10>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;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.98,'←牛股启动'),COLORYELLOW;【通达信】牛股启动(加速度、强势狙击、加仓)-指标公式效果图(文档来源:若水财经社区)爆炸启动选股公式VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR3:=SMA(VAR0,3,1);VAR1:=SMA(VAR3,4,1)-10;VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR5:=SMA(VAR4,3,1);VAR2:=SMA(VAR5,4,1)-90;STICKLINE(REF(VAR1,1)<VAR1,VAR1,REF(VAR1,1),10,0),COLOR0000FF;0, CIRCLEDOT; STICKLINE(REF(VAR1,1)>VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00; STICKLINE(REF(VAR2,1)>VAR2,VAR2,REF(VAR2,1),10,0),COLOR0000FF; STICKLINE(REF(VAR2,1)<VAR2,VAR2,REF(VAR2,1),5,0),COLOR00FF00;0,COLOR0000FF;自动划线公式HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLA Y:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055F F,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLO W,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55 BB,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGEN TA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN, POINTDOT;EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELL OW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOS E,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL ),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL ),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;十九强技术V5:=MA(VOL,5);V10:=MA(VOL,10);V20:=MA(VOL,20);LDAY1:=BARSLAST(CROSS(V5,V10));LDAY2:=BARSLAST(CROSS(V5,V20));LDAY3:=BARSLAST(CROSS(V10,V20));LTJ1:=(LDAY1>LDAY2 OR LDAY1=LDAY2) {AND COUNT(CROSS(V5,V20),LDAY1)=1} AND LDAY2=0 AND V10<V20;LTJ2:=(C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2) AND C>REF(C,2)); LTJ:=LTJ1 AND LTJ2;LTJ0:=LTJ1 AND V10>REF(V10,1);MA5:MA(C,5),COLORWHITE;MA10:MA(C,10),COLORCYAN;MA20:MA(C,20),COLORRED;MA40:MA(C,40),LINETHICK2,POINTDOT,COLORBLUE;MA60:MA(C,60),LINETHICK2,POINTDOT,COLORGREEN;PDAY1 := BARSLAST(CROSS(MA5,MA60));{5日均线上穿60日均线}PDAY2 := BARSLAST(CROSS(MA10,MA60));{10日均线上穿60日均线,至此形成鸭颈部}{股票软件整理}PDAY3 := BARSLAST(REF(HIGH=HHV(HIGH,PDAY2),1));{形成头部,要下跌} PDAY4 := BARSLAST(CROSS(MA10,MA5){ OR (REF(MA10,1)<REF(MA5,1) AND MA5=MA10)});{下跌后,5日均线和10日均线死叉}PDAY5 := BARSLAST(CROSS(MA5,MA10){ OR (REF(MA5,1)=REF(MA10,1) AND MA5>MA10)});{回落不久,5日均线和10日均线形成金叉,形成部}A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;A3:=MA5>MA60 AND MA10>MA60;{JT:=CROSS(MA20,MA60) AND C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2);CSFR:=CROSS(C,MA20) AND CROSS(C,MA40) AND CROSS(C,MA60);STICKLINE(JT,H,L,1,0),COLORYELLOW;STICKLINE(JT,O,C,8,0),COLORYELLOW;STICKLINE(CSFR,H,L,1,0),COLORWHITE;STICKLINE(CSFR,O,C,8,0),COLORWHITE;DRAWTEXT(CSFR,H,'出水芙蓉'),COLORYELLOW;DRAWTEXT(JT ,L, '价托'),COLORRED;}CSFR:=CROSS(C,MA20) AND CROSS(C,MA40) AND CROSS(C,MA60);YDAY1:=BARSLAST(CROSS(MA5,MA10));YDAY2:=BARSLAST(CROSS(MA5,MA20));YDAY3:=BARSLAST(CROSS(MA10,MA20));YJZZ:=(YDAY1=YDAY2 AND YDAY2=YDAY3 OR (YDAY1-YDAY2=1 OR YDAY2-YDAY3=1)) AND REF(MA5,2)<REF(MA10,2) AND REF(MA10,2)<REF(MA20,2) AND MA5>MA10 AND MA10>MA20 ;YJZZ1:=YDAY1=YDAY2 AND YDAY2=YDAY3 AND MA5>MA10 AND MA10>MA20 AND YDAY1=1;YJT:=YDAY1>=YDAY2 AND YDAY2=0 AND MA10<MA20;DAY1:=BARSLAST(CROSS(MA20,MA40));DAY2:=BARSLAST(CROSS(MA20,MA60));DAY3:=BARSLAST(CROSS(MA40,MA60));TJ0:=DAY1>=DAY2 AND DAY3<5;短顶:MA(REF(HHV(H,40),1),1);头顶:MA(REF(HHV(H,60),1),1);年顶:MA(REF(HHV(H,0),1),1),LINETHICK2,POINTDOT,COLORWHITE;JZZ:=DAY1=DAY2 AND DAY2=DAY3 AND REF(MA20,1)<REF(MA40,1) AND REF(MA40,1)<REF(MA60,1) AND MA20>MA40 AND MA40>MA60;TJ1:=DAY1>=DAY2 AND COUNT(CROSS(MA20,MA60),DAY1)=1{AND (DAY1-DAY2)<10};TJ2:=C>O AND CROSS(C,头顶);TJ21:=C>O AND CROSS(C,短顶);{TJ22:=C>O AND CROSS(C,年顶) AND VOL<V5;换手率小12%}TJ3:=VOL>REF(VOL,1);TJ4:=MA20>MA60 AND MA40>REF(MA40,1) AND MA40<MA60;TJ5:=DAY1>=DAY2 AND DAY2=0 AND MA40<MA60;{TJ:=(TJ2 AND TJ3) OR (TJ21 AND TJ3);}TJ:=DYNAINFO(4)>0AND HHV(HIGH,10)/LLV(LOW,10)<1.25AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)AND CLOSE>OPENAND CLOSE>=HHV(HIGH,10);STICKLINE(LTJ0,H,L,1,0),COLORGREEN;STICKLINE(LTJ0,O,C,8,0),COLORGREEN;STICKLINE(TJ,H,L,1,0),COLORYELLOW;STICKLINE(TJ,O,C,8,0),COLORYELLOW;{STICKLINE(TJ22,H,L,1,0),COLORYELLOW;STICKLINE(TJ22,O,C,8,0),COLORYELLOW;}STICKLINE(LTJ,H,L,1,0),COLORRED;STICKLINE(LTJ,O,C,8,0),COLORRED;STICKLINE(CSFR,H,L,1,0),COLORWHITE;STICKLINE(CSFR,O,C,8,0),COLORWHITE;DRAWTEXT(CSFR,H,'出水芙蓉'),COLORYELLOW;DRAWTEXT(TJ,L-0.2, '放量突破'),COLORRED;{DRAWTEXT(TJ22,H+0.2, '轻松过顶'),COLORWHITE;}DRAWTEXT(LTJ,H+0.5,'量托+多方炮'),COLORYELLOW;DRAWTEXT(LTJ0,H+0.5,'量托'),COLORYELLOW;DRAWTEXT(TJ5,MA60-0.2,'季价托'),COLORYELLOW;DRAWTEXT(YJT,MA20-0.5,'月价托'),COLORYELLOW;DRAWTEXT(JZZ,MA60-0.2,'金蜘蛛'),COLORYELLOW;DRAWTEXT(YJZZ OR YJZZ1,MA20-0.2,'月金蜘蛛'),COLORYELLOW;老鸭头:=(A1 AND A2 AND A3) AND FILTER(A1 AND A2 AND A3 ,5); DRAWTEXT(老鸭头,L,'老鸭头'),COLORGREEN;STICKLINE(老鸭头,H,L,0.5,0),COLORGREEN;STICKLINE(老鸭头,O,C,6,1),COLORGREEN,LINETHICK3主图划线公式DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0));DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE; AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10)); BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00; DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF; STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF; STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF; MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金} TM:=V-MA(V,10);{量填满} 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ; DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF; STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF; TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE; {高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;} 三日不破:=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) OR REF(三日价涨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 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(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 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(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 AND MIN(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))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(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))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(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))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(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))>MIN(REF(C,3),REF(O,3)) AND L=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),BARSLAST( FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST( FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST( FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST( FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST( FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAS T(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAS T(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAS T(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);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,DAY1-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,DAY1 -1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWN ULL,REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWN ULL,REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWN ULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLO W,NODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(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;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW;主图划线公式HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPL AY:=0;AAB:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);{HIGHN日前的最高价=2*HIGHN+1日内最高价的最高值}QY:=BACKSET(AAB,HIGHN+1);{若AA则将最近HIGHN+1周期置为1}CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);{QY的HIGHN日过滤AND 最高价=HIGHN+1日内最高价的最高值}DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);{上次CC距今天数}GDTS:=IF(CC,CURRBARSCOUNT,0);{如果CC,返回到最后交易日的周,否则返回0} DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MMM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,DOTLINE;压力A:DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLO R0055FF,DOTLINE;压力B:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLO RYELLOW,DOTLINE;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);{DRAWICON(CC1,L*0.98,1);}DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,DOTLINE;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),POIN TDOT,COLORFFBBFF,LINETHICK1;TTT:=6;A1:=REF(HIGH,6)=HHV(HIGH,2*TTT+1); B1:=FILTER(A1,TTT); C1:=BACKSET(B1,TTT+1); D1:=FILTER(C1,TTT);A2:=REF(LOW,TTT)=LLV(LOW,2*TTT+1); B2:=FILTER(A2,TTT); C2:=BACKSET(B2,TTT+1); D2:=FILTER(C2,TTT);E1:=(REF(LLV(LOW,2*TTT),1)+REF(HHV(HIGH,2*TTT),1))/2; E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);近低A:REF(L,BARSLAST(VV)),COLORWHITE,LINETHICK1,DOTLINE;近低B:REF(L,BARSLAST(XX)),COLORMAGENTA,DOTLINE;DRAWTEXT(CURRBARSCOUNT=2,高点压力,STRCAT('压力延伸:',CON2STR(高点压力,2))),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=2,低点支撑,STRCAT('支撑延伸:',CON2STR(低点支撑,2))),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=2,中轨,STRCAT('中轨:',CON2STR(中轨,2))),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=2,压力A,STRCAT('压力A:',CON2STR(压力A,2))),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=2,压力B,STRCAT('压力B:',CON2STR(压力B,2))),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=2,近低A,STRCAT('←近低A:',CON2STR(近低A,2))),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=2,近低B,STRCAT('←近低B:',CON2STR(近低B,2))),COLORMAGENTA;划线公式DRAWGBK(C>0, RGB(40,120,20),RGB(00,00,00),0,0,1),LINETHICK2;{箱体}N:=13;BC:=(H*0.382+L*0.618+O*0.382+C*0.618)/2;LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2),COLORGRAY;HT:=REF((HHV(LJ,N*0.691)+HHV(LJ,N)+HHV(LJ,N*1.309))/3,1),LINETHICK,COLORRED; LT:=REF((LLV(LJ,N*0.691)+LLV(LJ,N)+LLV(LJ,N*1.309))/3,1),LINETHICK,COLORGREEN; ZT:=(HT+LT)/2,LINETHICK,COLORYELLOW;STICKLINE(ISLASTBAR=1 AND LJ<ZT,HT,LT,N*8,0),COLORBLUE;STICKLINE(ISLASTBAR=1 AND LJ=ZT,HT,LT,N*8,0),COLORGRAY;STICKLINE(ISLASTBAR=1 AND LJ>ZT,HT,LT,N*8,1),COLORWHITE;STICKLINE(ISLASTBAR=1,ZT,ZT,N*8,0),COLORWHITE;箱顶:HT,COLORWHITE,NODRAW;箱中:ZT,COLORWHITE,NODRAW;DRAWKLINE(H,O,L,C);{短期支撑压力线}N1:=5;A1:=REF(H,N1)=HHV(H,2*N1+1);B1:=FILTER(A1,N1);C1:=BACKSET(B1,N1+1);D1:=FILTER(C1,N1);A2:=REF(L,N1)=LLV(L,2*N1+1);B2:=FILTER(A2,N1);C2:=BACKSET(B2,N1+1);D2:=FILTER(C2,N1);E1:=(REF(LLV(L,2*N1),1)+REF(HHV(H,2*N1),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);短压力线:DRAWLINE(S2,H,S1,H,1),COLORGREEN,LINETHICK2;短支撑线:DRAWLINE(U2,L,U1,L,1),COLORRED,LINETHICK2;降△边:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORCYA N,DOTLINE;涨△边:DRAWLINE(LOW<=LLV(LOW,10),LOW,HIGH>=HHV(HIGH,3),LLV(LOW,3),1),COLORCYAN, DOTLINE;{中期趋势回归划线}UR:=6;LR:=UR;TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位}STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}LR1:=FORCAST(C,NOD+1);NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN( TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点}LR2:=SLOPE(C,NOD+1);LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));FP:NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点}EQU:(NP+FP)/2,POINTDOT,COLOR93BDA8;AD:=ABS(NP-FP);{高差};DBL:=BARSLAST(BC1!=DRAWNULL)+1;DBH:=BARSLAST(TC1!=DRAWNULL)+1;BSP:=IF(BC2>TC2,DBL,DBH)-1;LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);AT2:=HHV(AT1-LRL,MAX(BC2,TC2));AT3:=CONST(BARSLAST(AT1-LRL=AT2));AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));ATL:=LRL+AT5;UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);UT2:=HHV(LRL-UT1,MAX(BC2,TC2));UT3:=CONST(BARSLAST(LRL-UT1=UT2));UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));UTL:=LRL-UT5;RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高}RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}中期中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962,LI NETHICK2;中期上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLOR628962,LI NETHICK2;中期下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),,COLOR628962,L INETHICK2;{彩色K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED;STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;{深绿}STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR00AA00;STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR00BB00;STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR00DD00;STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR00FF00;{蓝}STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44;STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700;STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22;STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44;{黄}STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999;STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555;STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777;STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;{深红}STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;{涨跌停K线}STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLOR YELLOW;STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLOR WHITE;{突破}STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF; {红绿三角【副图】}A10304:=REF(HIGH,3)=HHV(HIGH,2*3+1);B10304:=FILTER(A10304,3);C10304:=BACKSET(B10304,3+1);D10304:=FILTER(C10304,3);{高点}A20304:=REF(LOW,3)=LLV(LOW,2*3+1);B20304:=FILTER(A20304,3);C20304:=BACKSET(B20304,3+1);D20304:=FILTER(C20304,3);{低点}E10304:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E20304:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H10304:=(D10304 AND NOT(D20304 AND E10304>=E20304)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;L10304:=(D20304 AND NOT(D10304 AND E10304=E20304));X10304:=REF(BARSLAST(H10304),1)+1;F10304:=BACKSET(H10304 ANDCOUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10304));G10304:=F10304>REF(F10304,1);I10304:=BACKSET(G10304,2);LD0304:=I10304>REF(I10304,1);{过滤后低点}L20304:=LD0304 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;X20304:=REF(BARSLAST(L20304),1)+1;F20304:=BACKSET(L20304 ANDCOUNT(H10304,X20304)>0,HHVBARS(IF(H10304,HIGH,0),X20304));G20304:=F20304>REF(F20304,1);I20304:=BACKSET(G20304,2);HD0304:=I20304>REF(I20304,1);{过滤后高点}UU0304:=BACKSET(BARSTATUS=2,BARSLAST(LD0304)+1);VV0304:=UU0304>REF(UU0304,1);UU20304:=BACKSET(BARSTATUS=2,BARSLAST(HD0304)+1);VV20304:=UU20304>REF(UU20304,1);{以下语句为三角形部分}底:REF(L,BARSLAST(VV0304)),COLORYELLOW,LINETHICK2;顶:REF(H,BARSLAST(VV20304)),COLORYELLOW,LINETHICK1;{下跌三角形:绿色三角形画完介入}STICKLINE(VV0304,顶,底,0,0),COLORGREEN,LINETHICK2;DRAWLINE(VV20304,H,VV0304,L,0),COLORGREEN,LINETHICK2;{斜}DRAWLINE(VV20304,H,VV0304,顶,0),COLORGREEN,LINETHICK2;{上涨三角形:红色三角形画完出局}STICKLINE(VV20304 ,顶,底,0,0),COLOR009AFF,LINETHICK2;DRAWLINE(VV0304,L,VV20304,H,0),COLOR009AFF,LINETHICK2;{斜}DRAWLINE(VV0304,L,VV20304,底,0),COLOR009AFF,LINETHICK2;NN:=10;T11:=CONST(HHVBARS(V,NN));M:=10;Q1:=CONST(REF(HHVBARS(V,M),T11+1)+T11+1);Q0:IF(CURRBARSCOUNT<=T1+M+3 ANDCURRBARSCOUNT>=T1+1,CONST(REF(C,Q1)),DRAWNULL),COLORBLUE,LINETHICK3;DRAWTEXT(ISLASTBAR,Q0,' 位置')COLORBLUE,LINETHICK3;IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL)LINETHICK5,COLORMAGENTA;M1:=CONST(LLVBARS(V,M));M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(M1=0,O,REF(O,M1))),DRAWNULL)LINETHICK3, COLORMAGENTA;IF(CURRBARSCOUNT=M1+1,M0,DRAWNULL)LINETHICK3,COLORYELLOW;DRAWTEXT(ISLASTBAR,M0,' 纵轴1位置')COLORLIMAGENTA;DRAWTEXT(ISLASTBAR,MA2,'关注均线角度');。
竞价老鸭头选股公式
竞价老鸭头选股公式竞价老鸭头选股公式是一种常用于股票投资领域的选股公式。
该公式的命名来源于股市中常见的投资策略之一——“老鸭头”。
“老鸭头”策略指的是在市场中寻找那些经过一段时间震荡、停滞后即将突破的股票,类似于一只沉睡的老鸭在水面下准备冲破水面一样。
这种策略认为,当股票经历了一段时间的盘整、整理后,价格的突破将会引发一波新的上涨趋势。
竞价老鸭头选股公式是一个根据股票的前期走势和价格形态来筛选潜力股票的方法。
以下是该公式的步骤:1. 寻找股票的盘整、整理阶段,即股价在一段时间内震荡在一个相对窄的区间内,没有明显上涨或下跌趋势;2. 观察股票的交易量,理想情况是在盘整阶段,交易量逐渐减少,即市场进入相对静态的状态;3. 当股票价格盘整一段时间后,开始观察其价格走势,寻找有突破迹象的股票。
这种突破可以是股价上破盘整区间的压力线,或者是出现较大涨幅的阳线等;4. 验证突破的有效性。
当股票价格出现突破迹象后,需要较高的交易量来验证突破的有效性。
如果交易量明显放大,说明市场对于该股票突破的反应积极,增加了选股的可信度;5. 建立投资策略。
根据选出的股票,可以制定具体的投资策略。
例如,设定适当的买入点位、止损点位和盈利目标。
需要注意的是,竞价老鸭头选股公式只是一种辅助工具,不能保证选股一定盈利。
投资者在使用该公式时,还需要结合其他分析方法和个人判断,综合考虑不同的因素,进行投资决策。
总结而言,竞价老鸭头选股公式是一种基于股票价格走势和突破迹象的选股方法。
通过寻找股票盘整阶段和价格突破条件,投资者可以筛选出潜力股票,但在使用该公式时还需要结合其他因素进行综合考虑。
投资者在选择股票时应谨慎,并做好风险管理。
通达信选股最全公式
通达信选股最全公式.1、通达信选股公式底背离是股票技术分析中的一种重要形态,通达信选股公式中集成了MACD、KDJ、RSI三个指标的底背离。
具体公式如下:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3 ,3)),1));B2:=REF(C,A2+1)>C ANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.R SI2"(6,12,24)),1));B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离条件是:B1>0 OR B2>0 OR B3>0;2、老鼠仓老鼠仓是指某些股民在掌握了内幕信息后,通过大量买入低价股票来获取利益的行为。
通达信选股公式中,老鼠仓的判断条件如下:AA1:=AMOUNT/VOL;BB1:=L< AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100.1.2;DD1:=L< MA(C,5)*0.921;EE1:=VOL< MA(V,5)*1.5;老鼠仓条件是:BB1 AND CC1 AND DD1 AND EE1;3、抄底高手抄底是指在股票价格低迷时买入,等待价格反弹后卖出获取利润的行为。
全头条最详细——通达信指标公式大全
全头条最详细——通达信指标公式大全一、K线的基本形态1、当天收阳:CLOSE>OPEN;2、当天收阴:CLOSE<OPEN;3、当天股价高开,言下之意开盘高于昨日收盘:OPEN>REF (CLOSE,1);4、当天股价低开:OPEN<REF(CLOSE,1);5、跳空高开:OPEN>REF(HIGH,1);当日开盘在昨日最高价之上6、跳空低开:OPEN<REF(LOW,1);7、长阳:C/O>1.03 或者 (C-O)/O*100>5 或者 (C-O)/O>0.05 意思是收盘价比开盘价上涨5%以上。
当然,用7%以上也可。
8、长阴:C/O<>9、高开大阴:O/REF(C,1)>1.04 AND C/O<1.94;>10、标准十字星:CLOSE=OPEN AND HIGH<>LOW更多见的是近似十字星。
例:ABS(C-O)<0.02 and="" h-c="">0.03 AND C-L>0.03; 该语句用上了一个函数:ABS,意思是求绝对值。
这样,该近似十字星即可能是阳星也可能是阴星。
再认识两个函数:MAX(A,B) 求A和B中的最大值。
MIN(A,B) 求A和B中的较小值有了这两个函数,近似十字星还可这样表述:ABS(C-O)<0.02 and="" h=""> MAX(C,O) AND L<>另外,该公式还可以用比例数编写。
11、长下影线:也有收阴收阳之分。
以阳线长下影线为例:C>O AND (O-L)>(C-O);此公式只表达了下影线比实体线长,并没有表达长度比例和有无上影线。
留个习题吧:不限制阴阳线,上影小于5分钱,下影线是实体的两倍以上。
形态还有许多,有几十种,不一一例举了,大家举一反三,慢慢摸索吧。
通达信最好的致命指标,不看你就损失大了(源码主图公式)
通达信最好的致命指标,不看你就损失大了(源码主图公式)公式说明:任何指标都不可能让人傻瓜式操作都赚大钱,都必须要自己总结一些规律,并且要结合市场情况对指标的可信度做出判断。
今天把选股公式的一些体悟跟大家分享一下,说的不对说的不好请大家多指正,共同探讨才能让自己的技术进步!涨停位置:A2:=MA(C,18);A3:=(C-A2)/A2*100>=-9.9 AND C谷底涨停:A3 AND C/REF(C,1)>1.099,COLORRED;B1:=BARSLAST(LLV(C,100));B2:=C/REF(C,1)>=1.095;B3:=MA(C,10)>REF(MA(C,10),1);低位涨停: B2 AND B3 AND O/LLV(C,100)<1.3 AND B1<20;D2:=C/REF(C,1)>=1.095;D3:=MA(C,20)>REF(MA(C,20),1) AND MA(C,55)>REF(MA(C,55),1);中位涨停: D2 AND D3 AND O/LLV(C,100)>1.3 AND O/LLV(C,100)<1.5;一阳穿六均线选股预警公式指标源码:MA5:=MA(C,5);MA13:=MA(C,13);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);MA144:=MA(C,144);收盘低:=REF(C,1)收盘高:=CROSS(C,MA5) AND CROSS(C,MA13) AND CROSS(C,MA30) AND CROSS(C,MA60) AND CROSS(C,MA120) AND CROSS(C,MA144);选股XG:收盘低 AND 收盘高;老鸭头选股公式:D!LYT (老鸭头) 缺省周期:日线MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));{5日均线上穿60日均线} pday2 := barslast(cross(ma10,ma60));{10日均线上穿60日均线,至此形成鸭颈部}pday3 := barslast(high=hhv(high,pday2));{形成头部,要下跌} pday4 := barslast(cross(ma10,ma5));{下跌后,5日均线和10日均线死叉}pday5 := barslast(cross(ma5,ma10));{回落不久,5日均线和10日均线形成金叉,形成嘴部}a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;A1 AND A2;四合一金叉选股公式:M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);MA1:=MA(VOL,5);MA2:=MA(VOL,10);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);A1:=DEA;F1:=DIF;K1:='KDJ.K';J1:='KDJ.J';金叉1:=CROSS(M1,M2);金叉2:=CROSS(MA1,MA2);金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;选股:选1 OR 选2 OR 选3 OR 选4 OR 选5;一阳穿三线选股公式:MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);低:=REF(C,1)高:=CROSS(C,MA5) AND CROSS(C,MA10) AND CROSS(C,MA5);选股:低 AND 高;次日涨停公式:A : MA(CLOSE,26);UP: A 2*STD(CLOSE,26);LOWER: A - 2*STD(CLOSE,26);W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3);捕捉中短线牛股指标:WX:=MAX(MA(C,5),MAX(MA(C,10),MAX(MA(C,20),MAX(MA( C,60),MA(C,120)))));ZS:=IF(CROSS(C,WX) AND COUNT(C>WX,5)=1,1,0);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60);MA12 0:=MA(C,120);A1:=CROSS(MA5,MA10);B1:=C>MA60 AND MA5>MA60 AND MA10>MA60;C1:=MA60>MA120;D1:=A1 AND B1 AND C1;ZB:=CROSS(MACD.MACD,0) AND C>MA(C,5);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;AB:=CROSS(K,D);第一阳起爆:COUNT(D1,5)=1>0 AND COUNT(ZS,3) AND ZB AND AB;日线盘中抓涨停:盘中满足下面所有条件的个股,出现报警。
通达信 几种均线实用地选股 指标源码
通达信几种均线实用的选股指标源码1、四合一金叉选股公式一个5日均线金叉10日均线,成交量5日均量金叉10日均量,MACD金叉,KDJ 金叉,上面四个条件满足三个同时金叉就可以成立的选股公式:M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);MA1:=MA(VOL,5);MA2:=MA(VOL,10);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);A1:=DEA;F1:=DIF;K1:="KDJ.K";J1:="KDJ.J";金叉1:=CROSS(M1,M2);金叉2:=CROSS(MA1,MA2);金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;选股:选1 OR 选2 OR 选3 OR 选4 OR 选5;2、均价线,均量线,KDJ三金叉MA5:=EMA(C,5);MA10:=EMA(C,10);MV5:=EMA(V,5);MV10:=EMA(V,10);K:="KDJ.K"(9,3,3);D:="KDJ.D"(9,3,3);V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;VV1:=MV5>REF(MV5,1) AND MV10>=REF(MV10,1) ANDV>REF(V,1)*1.2 ;KD1:=K>REF(K,1) AND D>=REF(D,1);VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 ANDCOUNT(CROSS(MV5,MV10),4)>=1;XG1:IF(V1 AND VV1 AND KD1 AND VA,1,0);3、5、10 日线,5、10日均量线,MACD。
通达信 老鸭头 指标 公式
通达信老鸭头指标公式通达信是一款常用的股票分析软件,其中的老鸭头指标是一种常用的技术指标。
下面将介绍老鸭头指标的公式及其相关内容。
老鸭头指标是一种动量指标,用于判断股票的买入和卖出时机。
其公式如下:老鸭头 = (收盘价 - N日前的最低价) / (N日前的最高价 - N日前的最低价) * 100其中,收盘价为当日股票的收盘价,N为计算周期,一般取20日。
老鸭头指标的数值范围在0到100之间,数值越大表示股票的上涨动能越强,数值越小表示股票的下跌动能越强。
当老鸭头指标数值超过80时,表示股票处于超买状态,可能会出现价格的回调;当老鸭头指标数值低于20时,表示股票处于超卖状态,可能会出现价格的反弹。
老鸭头指标的计算方法非常简单,但是在实际应用中需要结合其他指标和技术分析一起使用,以提高准确性和可靠性。
下面将介绍一些常用的技术分析方法和指标。
1. 移动平均线:移动平均线是一种常用的趋势指标,可以平滑股票价格的波动,帮助判断股票的短期和长期趋势。
常用的移动平均线包括5日均线、10日均线和20日均线等。
2. 相对强弱指标(RSI):RSI指标用于衡量股票价格的强弱程度,可以判断股票的超买和超卖状态。
当RSI指标超过70时,表示股票处于超买状态;当RSI指标低于30时,表示股票处于超卖状态。
3. 成交量指标:成交量指标可以反映股票交易的活跃程度,常用的成交量指标包括成交量柱状图和成交量加权指标(OBV)等。
成交量的增加或减少可以用来判断股票价格的上涨或下跌趋势。
4. KDJ指标:KDJ指标是一种相对强弱指标,可以用来判断股票的买入和卖出时机。
KDJ指标由K值、D值和J值组成,K值大于D值时为买入信号,K值小于D值时为卖出信号。
以上介绍了老鸭头指标及其相关内容,希望能对股票投资者有所帮助。
在实际应用中,投资者应该综合考虑多种指标和技术分析方法,以提高买卖决策的准确性和可靠性。
同时,投资者还应该密切关注市场的变化和风险,采取适当的风险管理措施,以保护自己的投资安全。
通达信老鸭头主图指标公式(经典版)
通达信⽼鸭头主图指标公式(经典版)指标公式如下:V5:=MA(VOL,5);V10:=MA(VOL,10);V20:=MA(VOL,20);LDAY1:=BARSLAST(CROSS(V5,V10));LDAY2:=BARSLAST(CROSS(V5,V20));LDAY3:=BARSLAST(CROSS(V10,V20));LTJ1:=(LDAY1>LDAY2 OR LDAY1=LDAY2) {AND COUNT(CROSS(V5,V20),LDAY1)=1} AND LDAY2=0 AND V10<V20;LTJ2:=(C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2) AND C>REF(C,2));LTJ:=LTJ1 AND LTJ2;LTJ0:=LTJ1 AND V10>REF(V10,1);MA5:MA(C,5),COLORWHITE;MA10:MA(C,10),COLORCYAN;MA20:MA(C,20),COLORRED;MA40:MA(C,40),LINETHICK2,POINTDOT,COLORBLUE;MA60:MA(C,60),LINETHICK2,POINTDOT,COLORGREEN;PDAY1 := BARSLAST(CROSS(MA5,MA60));{5⽇均线上穿60⽇均线}PDAY2 := BARSLAST(CROSS(MA10,MA60));{10⽇均线上穿60⽇均线,⾄此形成鸭颈部} PDAY3 := BARSLAST(REF(HIGH=HHV(HIGH,PDAY2),1));{形成头部,要下跌}PDAY4 := BARSLAST(CROSS(MA10,MA5){ OR (REF(MA10,1)<REF(MA5,1) ANDMA5=MA10)});{下跌后,5⽇均线和10⽇均线死叉}PDAY5 := BARSLAST(CROSS(MA5,MA10){ OR (REF(MA5,1)=REF(MA10,1) ANDMA5>MA10)});{回落不久,5⽇均线和10⽇均线形成⾦叉,形成部}A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;A3:=MA5>MA60 AND MA10>MA60;{JT:=CROSS(MA20,MA60) AND C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2); CSFR:=CROSS(C,MA20) AND CROSS(C,MA40) AND CROSS(C,MA60);STICKLINE(JT,H,L,1,0),COLORYELLOW;STICKLINE(JT,O,C,8,0),COLORYELLOW;STICKLINE(CSFR,H,L,1,0),COLORWHITE;STICKLINE(CSFR,O,C,8,0),COLORWHITE;DRAWTEXT(CSFR,H,'出⽔芙蓉'),COLORYELLOW;DRAWTEXT(JT ,L, '价托'),COLORRED;}CSFR:=CROSS(C,MA20) AND CROSS(C,MA40) AND CROSS(C,MA60);YDAY1:=BARSLAST(CROSS(MA5,MA10));YDAY2:=BARSLAST(CROSS(MA5,MA20));YDAY3:=BARSLAST(CROSS(MA10,MA20));YJZZ:=(YDAY1=YDAY2 AND YDAY2=YDAY3 OR (YDAY1-YDAY2=1 OR YDAY2-YDAY3=1)) AND REF(MA5,2)<REF(MA10,2) AND REF(MA10,2)<REF(MA20,2) ANDMA5>MA10 AND MA10>MA20 ;YJZZ1:=YDAY1=YDAY2 AND YDAY2=YDAY3 AND MA5>MA10 AND MA10>MA20 AND YDAY1=1;YJT:=YDAY1>=YDAY2 AND YDAY2=0 AND MA10<MA20;DAY1:=BARSLAST(CROSS(MA20,MA40));DAY2:=BARSLAST(CROSS(MA20,MA60));DAY3:=BARSLAST(CROSS(MA40,MA60));TJ0:=DAY1>=DAY2 AND DAY3<5;短顶:MA(REF(HHV(H,40),1),1);头顶:MA(REF(HHV(H,60),1),1);年顶:MA(REF(HHV(H,0),1),1),LINETHICK2,POINTDOT,COLORWHITE;JZZ:=DAY1=DAY2 AND DAY2=DAY3 AND REF(MA20,1)<REF(MA40,1) AND REF(MA40,1) <REF(MA60,1) AND MA20>MA40 AND MA40>MA60;TJ1:=DAY1>=DAY2 AND COUNT(CROSS(MA20,MA60),DAY1)=1{AND (DAY1-DAY2)<10}; TJ2:=C>O AND CROSS(C,头顶);TJ21:=C>O AND CROSS(C,短顶);{TJ22:=C>O AND CROSS(C,年顶) AND VOL<V5;换⼿率⼩12%}TJ3:=VOL>REF(VOL,1);TJ4:=MA20>MA60 AND MA40>REF(MA40,1) AND MA40<MA60;TJ5:=DAY1>=DAY2 AND DAY2=0 AND MA40<MA60;{TJ:=(TJ2 AND TJ3) OR (TJ21 AND TJ3);}TJ:=DYNAINFO(4)>0AND HHV(HIGH,10)/LLV(LOW,10)<1.25AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85) AND CLOSE>OPENAND CLOSE>=HHV(HIGH,10);STICKLINE(LTJ0,H,L,1,0),COLORGREEN;STICKLINE(LTJ0,O,C,8,0),COLORGREEN;STICKLINE(TJ,H,L,1,0),COLORYELLOW;STICKLINE(TJ,O,C,8,0),COLORYELLOW;{STICKLINE(TJ22,H,L,1,0),COLORYELLOW;STICKLINE(TJ22,O,C,8,0),COLORYELLOW;}STICKLINE(LTJ,H,L,1,0),COLORRED;STICKLINE(LTJ,O,C,8,0),COLORRED;STICKLINE(CSFR,H,L,1,0),COLORWHITE;STICKLINE(CSFR,O,C,8,0),COLORWHITE;DRAWTEXT(CSFR,H,'出⽔芙蓉'),COLORYELLOW;DRAWTEXT(TJ,L-0.2, '放量突破'),COLORRED;{DRAWTEXT(TJ22,H+0.2, '轻松过顶'),COLORWHITE;}DRAWTEXT(LTJ,H+0.5,'量托+多⽅炮'),COLORYELLOW; DRAWTEXT(LTJ0,H+0.5,'量托'),COLORYELLOW;DRAWTEXT(TJ5,MA60-0.2,'季价托'),COLORYELLOW;DRAWTEXT(YJT,MA20-0.5,'⽉价托'),COLORYELLOW;DRAWTEXT(JZZ,MA60-0.2,'⾦蜘蛛'),COLORYELLOW;DRAWTEXT(YJZZ OR YJZZ1,MA20-0.2,'⽉⾦蜘蛛'),COLORYELLOW;⽼鸭头:=(A1 AND A2 AND A3) AND FILTER(A1 AND A2 AND A3 ,5); DRAWTEXT(⽼鸭头,L,'⽼鸭头'),COLORGREEN;STICKLINE(⽼鸭头,H,L,0.5,0),COLORGREEN;STICKLINE(⽼鸭头,O,C,6,1),COLORGREEN,LINETHICK3;。
福利,通达信抄老底主图指标公式,看不懂可以收藏
福利,通达信抄老底主图指标公式,看不懂可以收藏今天给大家带来通达信最新抄老底主图指标公式:AAA:=(MA(CLOSE,80)-MA(CLOSE,13)/3);BBB:=MA((CLOSE-AAA)/AAA,1);XG1:=CROSS(BBB,0) AND LOW/REF(HIGH,1)<1.012;VAR111A:=(C+H+O+L)/4;压力线:=EMA(VAR111A,20)*(1+80/1000) ;支撑线:=EMA(VAR111A,32)*(1-100/1000);工作线:=EXPMA(CLOSE,12);XG2:=CROSS(C ,支撑线) OR (L<支撑线 AND C>支撑线);XG:CROSS(C,工作线) AND XG1 AND XG2,NODRAW;{买点}VAR444:=REF(CLOSE,1);VAR555:=SMA(MAX(CLOSE-VAR444,0),7,1)/SMA(ABS(CLOSE-VAR444),7,1)*100;SS:CROSS(79,VAR555),NODRAW;{卖点}BL:BARSLAST(XG),NODRAW;{最近买点距当前交易周期}SSL:BARSSINCEN(SS,BL),NODRAW;{第一卖点距当前交易周期} BC:REF(C,BL),NODRAW{买点当天收盘价};SSC:REF(C,SSL),NODRAW{卖点当天收盘价};BS:=BL-SSL,NODRAW;{买卖区间交易周期}GJ:=IF(SSL=0,BS,DRAWNULL),NODRAW;MAXX:=HHV(H,GJ),NODRAW;MINN:=LLV(L,GJ),NODRAW;MAXXX:IF(SSL=0,MAXX,REF(MAXX,BARSLAST(SSL=0))),NOD RAW{买卖区间最高价};MINNN:IF(SSL=0,MINN,REF(MINN,BARSLAST(SSL=0))),NOD RAW{买卖区间最低价};MAX%:100*(MAXXX/BC-1),NODRAW;{买卖区间最大涨幅}MIN%:100*(MINNN/BC-1),NODRAW;{买卖区间最大跌幅}S%:100*(SSC/BC-1),NODRAW;{买卖区间收盘涨幅} NOW%:100*(C/BC-1),NODRAW;{买点到当前的涨幅}; DRAWICON(XG,L*0.99,1);DRAWICON(SS,H*1.01,2);、想要什么公式尽量满足你们。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARC),HIGH,2);
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
STICKLINE(买,H,L,0,1),COLOR00FF00,LINETHICK2;
STICKLINE(买,O,C,4,1),COLOR00FF00,LINETHICK2;
DRAWTEXT(买,L*0.99, '买★买'),COLOR00FF00;
DRAWICON(优选,L*0.99,20,10;}
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10),COLORFF00FF;
MA20:MA(C,20),COLOR00FF00;
MA30:MA(C,30),COLORYELLOW;
MA120:SMA(C,120,1),COLOR0000FF;
VAR3:=COUNT(VOL/VAR1<1.3,14)>11;
VAR4:=CROSS(VAR2,2);
VAR5:=CLOSE/REF(CLOSE,1)>1.025 AND CLOSE>OPEN;
VAR6:=VAR3 AND VAR4 AND VAR5;
VAR6;
公式四:放量过头
VAR1:=HHV(HIGH,60);
WXZS:=IF(CROSS(C,MAXWX) AND COUNT(C>MAXWX,5)=1,1,0);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MA120:=MA(C,120);
A1:=CROSS(MA5,MA10);
A AND B;
公式七:轻松过头
A1:=IF(TOPRANGE(C)>=N,1,0);
A2:=V<REF(HHV(V,N),1);
A1 AND A2;
公式八: 三线顺上
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
VARA:=COUNT(CROSS(VAR2,VAR1),VAR5)=1;
VAR9 AND VARA;
公式六:老鸭头
A1:=BARSLAST(REF(CROSS(MA(C,5),MA(C,10)),1));
A2:=(HHV(C,A1+1)/REF(C,A1+1)-1)*100;
A3:=CROSS(MA(C,5),MA(C,10));
{以下设置主图显示方式}
DRAWTEXT(老鸭回头,(MA10+MA20)/2, '0'),COLORFF00FF;
DRAWTEXT(老鸭回头,(MA10+MA20)/2, '1'),COLORFF00FF;
DRAWTEXT(WR<0,L*0.99, '#'),COLORYELLOW;
DRAWTEXT(WR<-10,L*0.99, '#'),COLORWHITE;
公式九:老鸭头回头精选
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA120:=SMA(C,120,1);
ZH520:=ABS(MA5-MA20)/MA20*100<=10;
ZH530:=ABS(MA5-MA30)/MA30*100<=10;
ZH520:=ABS(MA5-MA20)/MA20*100<=N;
ZH530:=ABS(MA5-MA30)/MA30*100<=N;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
买:=(LYKK AND NOT(REF(LYKK,1)))*50,COLOR00FF00,POINTDOT,LINETHICK0;
优选:=(买 AND COUNT((MA10>MA20),5)=5)*100,COLORYELLOW,POINTDOT,LINETHICK0;
MA1>MA2 AND MA2>MA3 AND MA1>MA3 AND MA1>REF(MA1,1) AND
MA2>REF(MA2,1) AND MA3>REF(MA3,1);
公式十三:DIF上穿0轴
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
COUNT(VAR1>=0,60)=1 AND VAR1>=0;
WR:=80-(WR5*3+WR6*2)/5,COLORYELLOW,POINTDOT;
坑:=IF(WR<0,WR,0),COLORYELLOW;
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
买:=LYKK AND NOT(REF(LYKK,1));
优选:买 AND COUNT((MA10>MA20),5)=5;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
VAR5:=BARSLAST(CROSS(VAR2,VAR3));
VAR6:=BARSLAST(HIGH=HHV(HIGH,VAR5));
VAR7:=BARSLAST(CROSS(VAR2,VAR1));
VAR8:=BARSLAST(CROSS(VAR1,VAR2));
VAR9:=VAR4>VAR5 AND VAR5>VAR6 AND VAR6>VAR7 AND VAR7>VAR8 AND VAR8<5;
DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃顶'),COLORYELLOW ;
公式二:老鸭头
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,60);
VAR4:=BARSLAST(CROSS(VAR1,VAR3));
公式十一:老鸭头后的五线第一阳
MAXWX:=MAX(MA(C,5),MAX(MA(C,10),MAX(MA(C,20),MAX(MA(C,60),MA(C,120)))));
CY:=IF(CROSS(C,MAXWX) AND COUNT(C>MAXWX,5)=1,1,0);
JX:=MA(C,60)>MA(C,120) AND COUNT(C>MA(C,60),10)=10;
A4:=LLV(V,10)=LLV(V,30) AND EXIST(MA(V,5)>MA(V,10)
AND MA(V,10)>MA(V,20),30);
A5:=C/REF(C,A1+1)>1.05;
A2>10 AND A2<N AND A3 AND A4 AND A5 AND
MA(C,5)>MA(C,60);
LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
老鸭回头:=LYHT*50,COLORFF00FF,POINTDOT;
WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5));
WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
VAR2:=CLOSE>VAR1;
VAR3:=VOL>MA(VOL,5)*2.5 OR COUNT(VOL>MA(VOL,10),6)>4;
VAR2 AND VAR3;
公式五:放量过头2
A:=C>REF(HHV(C,N),1);
B:=V>REF(HHV(V,60),1) OR V>REF(HHV(V,120),1);
B1:=C>MA60 AND MA5>MA60 AND MA10>MA60;
C1:=MA60>MA120;
D1:=A1 AND B1 AND C1;