❶ 请哪位老师帮忙写一个通达信分时图以10点前的最高价向右划线的公式
ZSC:=BARSCOUNT(C),NODRAW;
GJ:=IF(ZSC=30,HHV(H,30),0)COLORMAGENTA;
最高价:DRAWLINE(GJ,GJ,REF(GJ,1),REF(GJ,1),1)COLORMAGENTA,DOTLINE;
❷ 请老师帮写个分时图9点45分前的最高点和最低点画线的通达信公式
sc:=BARSCOUNT(C),NODRAW;
高:IF(((SETCODE<2) AND (CONST(sc)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=945),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORRED;
底:IF(((SETCODE<2) AND (CONST(sc)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=945),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIGREEN;
❸ 求通达信股价过前期高点划线公式
可以编写kdj金叉到死叉这段有k值大于等于80的,找到最高价的k线以收盘价向右画线没有问题可以编写这样的画线指标
❹ 求通达信公式前10天最低点做一标记前20天最高点做一标记
K1:=REF(C,1)=DYNAINFO(3) AND O=DYNAINFO(4) AND C=DYNAINFO(7) AND H=DYNAINFO(5) AND L=DYNAINFO(6);
K2:=BARSLAST(V=HHV(V,20));
K3:=BACKSET(K1,K2+1);
STICKLINE(K2=0 AND K3=1,H,H*1.003,8*N,0),COLORYELLOW;
收:C,NODRAW;
DRAWTEXT(S=1&&K2=0&&K3=1,H*1.02,'20天内最高量的'),COLORGREEN;
DRAWICON(S=1&&K2=0&&K3=1,HIGH,2);
DRAWTEXT(S=1&&K2=0&&K3=1,H*0.98,'当天最高价划线'),COLORGREEN;
DRAWICON(S=1&&K2=0&&K3=1,H*0.98,HIGH,1);
❺ 通达信主图公式编写:波段最高点画直线
看看下面的2个图是否符合你的要求,第一个是没有均线的,第二个是有均线的。
❻ 求前期高低点画线代码求前期高低高点自动画线代码
前期高低点画线代码
将下面的代码加入均线系统中就OK了
一、通信达
VAR31:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR41:=CROSS(VAR31,0.9);
VAR51:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR61:=CROSS(VAR51,0.9);
压力:= REF(HIGH,BARSLAST(VAR41));
STICKLINE(C,REF(HIGH,BARSLAST(VAR41)),REF(HIGH,BARSLAST(VAR41)),8,1),COLOR00FFFF;
支撑:= REF(LOW,BARSLAST(VAR61));
STICKLINE(C,REF(LOW,BARSLAST(VAR61)),REF(LOW,BARSLAST(VAR61)),8,1),COLORRED;
DRAWICON(CROSS(C,压力),L*1.00,7);
DRAWICON(CROSS(支撑,C),H*1.00,8);
二、博易大师
VAR31:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR41:=CROSS(VAR31,0.9);
VAR51:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR61:=CROSS(VAR51,0.9);
压力:= REF(HIGH,BARSLAST(VAR41));
STICKLINE(C,REF(HIGH,BARSLAST(VAR41)),REF(HIGH,BARSLAST(VAR41)),8,1),COLOR00FFFF;
支撑:= REF(LOW,BARSLAST(VAR61));
STICKLINE(C,REF(LOW,BARSLAST(VAR61)),REF(LOW,BARSLAST(VAR61)),8,1),COLORRED;
DRAWICON(CROSS(C,压力),L*1.00,1);
DRAWICON(CROSS(支撑,C),H*1.00,2);
三、深发展国际金融信息平台
VAR31:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR41:=CROSS(VAR31,0.9);
VAR51:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR61:=CROSS(VAR51,0.9);
压力:= REF(HIGH,BARSLAST(VAR41));
STICKLINE(C,REF(HIGH,BARSLAST(VAR41)),REF(HIGH,BARSLAST(VAR41)),8,1),COLOR00FFFF;
支撑:= REF(LOW,BARSLAST(VAR61));
STICKLINE(C,REF(LOW,BARSLAST(VAR61)),REF(LOW,BARSLAST(VAR61)),8,1),COLORRED;
DRAWICON(CROSS(C,压力),L*1.00,0);
DRAWICON(CROSS(支撑,C),H*1.00,1);
❼ 股票公式错误(当前公式 : 高低点 (指标画线公式)
{显示高低点}
顶周期:=TOPRANGE(H);
底周期:=LOWRANGE(L);
上内:=LLVBARS(H,顶周期);
上外:=LLVBARS(L,顶周期);
下内:=HHVBARS(L,底周期);
下外:=HHVBARS(H,底周期);
上力度:=HHV(L,上内+1)>LLV(H,上内+1);
下力度:=HHV(L,下内+1)>LLV(H,下内+1);
上包含:=COUNT(L>=REF(L,1),上外)>2 AND COUNT(H>=REF(H,1),上内)>2;
下包含:=COUNT(H<=REF(H,1),下外)>2 AND COUNT(L<=REF(L,1),下内)>2;
顶0:=顶周期 AND 上力度 AND 上包含 AND 上外>3;
底0:=底周期 AND 下力度 AND 下包含 AND 下外>3;
顶分天数:=BARSLAST(顶0);
底分天数:=BARSLAST(底0);
含中间K线:=IF(顶分天数=0,底分天数,顶分天数)>=3;
顶:=顶0 AND 含中间K线 AND H=HHV(H,BARSLAST(底0));
底:=底0 AND 含中间K线 AND L=LLV(L,BARSLAST(顶0));
NOTEXT上笔划线: DRAWLINE(底,L,顶,H,0),COLORLIRED,LINETHICK1;
NOTEXT下笔划线: DRAWLINE(顶,H,底,L,0),COLORLIGREEN,LINETHICK1;
分界点:=NOTEXT上笔划线 AND NOTEXT下笔划线;
位置调整:=
IF(PERIOD=11,0.02,{年}
IF(PERIOD=10,0.02,{季}
IF(PERIOD=9,0.02, {多日}
IF(PERIOD=8,0.001,{多分钟}
IF(PERIOD=7,0.02, {月}
IF(PERIOD=6,0.01, {周}
IF(PERIOD=5,0.005, {日}
IF(PERIOD=4,0.002,{60F}
IF(PERIOD=3,0.001,{30F}
IF(PERIOD=2,0.001,{15F}
IF(PERIOD=1,0.0003,{5F}
IF(PERIOD=0,0.0002,{1F}0))))))))))));
DRAWNUMBER(分界点 AND 顶,H+H*位置调整,H),COLORLIGREEN;
DRAWNUMBER(分界点 AND 底,L,L),COLORLIMAGENTA;
{MACD常用}
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN;
DEA:EMA(DIF,9),COLORMAGENTA;
MACD:2*(DIF-DEA),LINETHICK0;
BB:=DIF>=REF(DIF,1);
IF(BB,DIF,DRAWNULL),COLORGREEN,LINETHICK2;
AA:=DEA>=REF(DEA,1);
IF(AA,DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,2.5,0),COLOR0000AA;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,1.5,0),COLOR0000CC;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,1,0),COLOR0000DD;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,2.5,0),COLOR0000AA;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,1.5,0),COLOR0077FF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,1,0),COLOR00FFFF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,3,0),COLORFF9900;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,2,0),COLORFFBB00;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,1,0),COLORFFFF00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,3,0),COLORFF0000;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,2,0),COLORFF4400;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,1,0),COLORFF8800;
❽ 前高:HHV(H,0),DOTLINE,COLORCYAN; 这是通达信前高的公式。。。。我想在画线的位置上入前高的数字。。。
{}这个可以用设置前置符号表示,在指标一栏就可以显示:}
前高:HHV(H,60),DOTLINE,COLORCYAN;
❾ 以主图可见最高点、最低点之间画一条直线,如何写通达信公式谢谢!
DRAWLINE(REF(H,M),(REF(H,M)+REF(L,M))/2,L,(H+L)/2,0);
公式里“REF(H,M)"是画线起点条件“M日前的最高点”,“L"是画线终点条件“当版天最低点”,你可以根据权情况调整。
股票公式专家团为你解答,希望能帮到你,祝投资顺利。