1.通达信资金流分时主指标公式源码
2.求高手写个通达信当天开盘价在分时图上自动画线的分时分分时主图指标?谢谢!
3.跪求通达信分时压力,交易解支撑,主图战精主图公式!源码易实
通达信资金流分时主指标公式源码
通达信资金流分时主图指标公式源码是图交一个用于股票交易分析的策略,它通过一系列的分时分饥荒手游源码计算和条件判断,为投资者提供实时的交易解买卖信号和决策依据。该代码主要包括以下几个部分:
1. **资金流入和流出**:资金流入通过计算当前价格与前一交易日价格的主图战精比较,确定资金是源码易实否流入,颜色为红色表示资金流入。图交资金流出则计算相反情况,分时分颜色为其他颜色表示资金流出。交易解这有助于识别市场资金的主图战精方向和流动情况。
2. **增强流量比和攻击量**:这些指标进一步细化了资金流的源码易实动态,通过计算得到增强流量比和攻击量,图交它们反映了市场的活跃程度和攻击性,有助于投资者判断市场情绪。
3. **攻击度限制和增强攻击度**:通过比较资金攻击度,对攻击度进行限制和增强,以便更准确地判断市场的攻击力度。
4. **开始攻击的条件**:通过判断资金流量和攻击量的关系,确定市场是否处于攻击状态,这有助于在市场出现攻击迹象时发出买卖信号。
5. **高低点和价格轴**:计算价格的高点、低点,以及价格轴的位置,为分析市场趋势和预测价格变动提供依据。
6. **启动线、主力线、散户线**:这些线反映了市场的不同参与力量,启动线代表市场的启动趋势,主力线和散户线则分别代表主力和散户的活动情况。
7. **分时转强**:根据市场力量的对比,判断市场是上证主图源码否转强,提供买卖时机。
8. **均价线**:计算分时平均价格,作为市场趋势的参考。
9. **追击涨停**:判断市场是否在快速上涨趋势中,并提供相关信号。
. **量和价的多步判断**:通过判断价格和成交量在一定时间内的趋势和变化,提供更深入的市场分析。
. **对昨日涨幅的控制**:确保策略对每日涨幅的控制在可接受范围内,避免过大波动。
. **特定时间的计算**:计算市场在特定时间段内的价格和成交量,提供实时分析。
通过这些指标和公式,交易者可以实时监控市场的动态,分析资金流动情况,识别市场趋势,从而做出更准确的买卖决策。然而,投资者需根据自己的风险偏好和策略,对这些指标进行综合评估和应用。
求高手写个通达信当天开盘价在分时图上自动画线的分时主图指标?谢谢!
用这个代码:
DYNAINFO(4),COLORFFAA;
很好用的分时主图指标公式:
M1:=;
N1:=;
N:=;
Q:=5;
SHORT:=;
LONG:=;
MID:=;
P2:=;
DRAWGBK(C>0,RGB(,,),RGB(,,),0,'',0);
H1:=maX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,eos开发项目源码COLORGREEN;
支撑:L1+P1*0.5/8,COLORRED;
中:(支撑+阻力)/2,COLORWHITE,POINTDOT;
现价:CLOSE,COLORWHITE,LINETHICK2;
顶卖:stICKLINE(C>阻力,阻力,C,5,0),COLORGREEN;
底买:STICKLINE(CMR:=CDRAWTEXT(CROSS(现价,支撑),中,'★买'),COLORRED;
STICKLINE(CROSS(现价,支撑),C,中,2,0),COLORRED;
STICKLINE(MR=1,支撑,中,2,0),COLORRED;
DRAWICON(MR=1ORCROSS(现价,支撑),中,1);
STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,layui开发源码0),COLORYELLOW;
DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW;
MC:=C>阻力ANDCROSS(REF(C,2),C);
DRAWTEXT(CROSS(阻力,现价),中,'★卖'),COLORGREEN;
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORGREEN;
STICKLINE(MC=1,阻力,中,2,0),COLORGREEN;
DRAWICON(MC=1ORCROSS(阻力,现价),中,2);
STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORMAGENTA;
DRAWTEXT(CROSS(现价,阻力),最新php源码下载阻力-(支撑-中)/5,'★顶'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,阻力,'顶'),COLORGREEN;
DRAWTEXT(ISLASTBAR,支撑,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'中'),COLORWHITE;
每股净资产:=STRCAT(STRCAT('每股净资产:',CON2STR(FINANCE(),2)),'元');
DRAWTEXT_FIX(1,0.,0.,0,每股净资产),COLORWHITE;
主营同比增长:=STRCAT(STRCAT('主营同比增长:',CON2STR(FINANCE(),2)),'%');
DRAWTEXT_FIX(1,0.,0.,0,主营同比增长),COLORCYAN;
净利润同比增长:=STRCAT(STRCAT('净利润同比增长:',CON2STR(FINANCE(),2)),'%');
DRAWTEXT_FIX(1,0.,0.,0,净利润同比增长),COLORYELLOW;
{ 销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR(FINANCE()/FINANCE()*,2)),'%');}
销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR((FINANCE()-FINANCE())/FINANCE()*,2)),'%');
DRAWTEXT_FIX(1,0.,0.,0,销售毛利率),COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,'每股收益:')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,STRCAT(CON2STR(FINANCE()/FINANCE(1),2),'元'))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'每股市盈率:')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,STRCAT(CON2STR(C/FINANCE(),2),'倍'))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'流通A股:')COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,STRCAT(CON2STR(CAPITAL/,2),'亿股'))COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,'每股未分配:元')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,CON2STR(FINANCE(),2))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'经营现金流:元')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,CON2STR(FINANCE()/FINANCE(1),2))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'☆[热点概念]:')COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,EXTERNSTR(0,1))COLORYELLOW;
DRAWTEXT_FIX(1,0.,0.,0,'☆[主营行业]:')COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,EXTERNSTR(0,2))COLORCYAN;
{ DRAWTEXT_FIX(1,0.,0.,0,'[高送转信号]:')COLORCYAN;
DRAWTEXT_FIX(1,0.,0.,0,EXTERNSTR(0,3))COLORCYAN;};
所属板块:=STRCAT('☆所属板块',STRCAT(STRCAT(STRCAT('[行业]—',HYBLOCK),STRCAT('[地域]—',DYBLOCK)),STRCAT('[概念]—',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.,0.,0,所属板块),COLORYELLOW;
今日人气:=DYNAINFO()/DYNAINFO();
DRAWTEXT_FIX(1,0,0.,0,'◆大盘人气:'),COLORYELLOW,LINETHICK4;
DRAWNUMBER_FIX(1,0.,0.,0,CONST(今日人气)),COLORYELLOW;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,,IF(PERIOD=3,,IF(PERIOD=4,,IF(PERIOD=5,,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME虚拟量:=IF(CURRBARSCOUNT=1,vol*TOTAL/CTIME,DRAWNULL);
虚拟量比:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0;
虚量值:=(虚拟量-VOL)/VOL,COLORWHITE,LINETHICK0;
DRAWTEXT_FIX(1,0.,0.,0,'▲量比:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.,0.,0,CONST(虚拟量比)),COLORYELLOW;
量价:=(VOL/CLOSE)/3;
统计主动买量:=SUM((IF(((量价>0.)AND(CLOSE>(REF(CLOSE,1)))),量价,0)),0);
统计主动卖量:=SUM((IF(((量价>0.)AND(CLOSE涨停能量:=((统计主动买量)/统计主动卖量)*,COLORFF;
DRAWTEXT_FIX(1,0.,0.,0,'★涨停能量:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.,0.,0,CONST(涨停能量)),COLORYELLOW;
跪求通达信分时压力,支撑,主图公式!
突破:=REF(EMA(C,),1);
A1X:=(EMA(C,)-突破)/突破*;
多方:=IF(A1X>=0,REF(EMA(C,),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,,0),COLOR;
STICKLINE(A1X<0,空方,突破,,0),COLORCC;
EE:=(H+L+O+2*C)/5;
CRTP:=EE+(H-L);
CRZL:=2*EE-L;
CRZC:=2*EE-H;
CRFZ:=EE-(H-L);
顶:CONST(CRTP),COLORRED;
压:CONST(CRZL),COLORC7C9FF;
撑:CONST(CRZC),COLOR7C9CFF;
跳:CONST(CRFZ),COLORDDDD;
弹:MA(CLOSE,3);
支撑:EXPMA(CLOSE,);
起涨:MA(C,),COLORFFFF,LINETHICK2;
涨:IF(MA(CLOSE,)>REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORRED,LINETHICK2;
平:IF(MA(CLOSE,)=REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORFFFF,LINETHICK3;
跌:IF(MA(CLOSE,)<REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORGREEN,LINETHICK2;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR,跳 , '跳起'),LINETHICK1,COLORDDDD;
DRAWTEXT(ISLASTBAR,撑 , '撑力'),LINETHICK1,COLOR7C9CFF;
DRAWTEXT(ISLASTBAR,压 , '压力'),LINETHICK1,COLORC7C9FF;
DRAWTEXT(ISLASTBAR,顶 , '顶破'),LINETHICK1,COLORFF;
A:MA(C,)<MA(C,) AND COUNT(CROSS(MA(C,5),MA(C,)),) AND REF(L,1)<REF(MA(C,),1) AND REF(C,1)<REF(MA(C,5),1) AND C>REF(H,1) AND REF(C,1)<REF(H,2) AND COUNT(MA(C,)>REF(MA(C,),1),5)>1,NODRAW;
B:MA(C,)>MA(C,) AND REF(L,1)<REF(MA(C,),1)*1. AND C>REF(H,1) AND REF(C,1)<REF(H,2) AND REF(C,1)<REF(H,2),NODRAW;
DRAWICON(A,L-0.,);
DRAWICON(B,L-0.,);
HH:=LLV(L,7)*1.-0.;
STICKLINE(H>=HH,H,H*1.,1,0),COLORFFFF;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * );
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*>1.2;
DD1:=L<MA(C,5)*0.;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFFFF;
日跌:L*0.,NODRAW,COLORFFFF;
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
P:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
P:=今小前;
DL:=P=1 AND REF(P,1)=0 AND P=1 AND REF(P,1)=0;
STICKLINE(DL,O,C,0.1,0),COLORAAAAAA;
BB :=MAX(C,O)-(REF(MAX(C,O),2)-MAX(C,O))/2;
买点:=(H-(REF(H,2)-H)/2);
AA:MAX(BB,买点),NODRAW,COLORFFFF;
STICKLINE(C<O AND F<-3 AND F>-5,C+(O-C)/3,C+(O-C)/3,2.5,0),COLORRED;
STICKLINE(C<O AND F<-3 AND F>-5,C+2*(O-C)/3,C+2*(O-C)/3,2.5,0),COLORRED;
STICKLINE(C<O AND F<=-5 AND F>-7,C+(O-C)/2,C+(O-C)/2,2.5,0),COLORYELLOW;
STICKLINE(C<O AND F<=-7 AND F>-,C+2*(O-C)/3,C+(O-C)/3,2.5,1),COLORYELLOW;
STICKLINE(C<O AND F<=-9.9,O,C,2.5,0),COLORFF;
STICKLINE(C>O AND F>2.9 AND F<5,O+(C-O)/3,O+(C-O)/3,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>2.9 AND F<5,O+2*(C-O)/3,O+2*(C-O)/3,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>=5 AND F<7,O+(C-O)/2,O+(C-O)/2,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>=7 ,O+2*(C-O)/3,O+(C-O)/3,2.5,1),COLORYELLOW;
A1:=MA(CLOSE,)+ABS(MA(CLOSE,)-REF(MA(CLOSE,),1));
B1:=MA(CLOSE,)+MA(CLOSE,)-REF(MA(CLOSE,),1);
分水岭:IF(MA(CLOSE,)<B1,B1,MA(CLOSE,)),COLORFFFF,LINETHICK2;
操作线:分水岭-(EMA(C,3)-分水岭),COLORFFFF,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),COLORFF,LINETHICK2;
S:=(PM>操作线);
DD:=分水岭<REF(分水岭,1);
IF(DD,分水岭,DRAWNULL),COLORFF,LINETHICK2;
IF(S,分水岭,DRAWNULL),COLORFF,POINTDOT,LINETHICK4;
DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{ 买入红箭头};