❶ 請哪位老師幫忙寫一個通達信分時圖以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"是畫線終點條件「當版天最低點」,你可以根據權情況調整。
股票公式專家團為你解答,希望能幫到你,祝投資順利。