大智慧公式源码概况:

指标类别:大智慧公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 主图

一、大智慧收盘价破5天线公式

  

DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:EMA(DIFF,9);  

MACD:2*(DIFF-DEA),COLORSTICK;  

MA5:=MA(CLOSE,5);  

股价偏离MA5:(CLOSE-MA5)/MA5,color399c7f;  

MA55:=MA(CLOSE,55);  

股价偏离MA55:(CLOSE-MA55)/MA55,colorred;  

N5:=MA(AMOUNT,5);  

N13:=MA(AMOUNT,13);  

N55:=MA(AMOUNT,55);  

M5:=MA(VOL,5);  

M13:=MA(VOL,13);  

M55:=MA(VOL,55);  

MC5:=N5/M5/100;  

MC13:=N13/M13/100;  

MC55:=N55/M55/100;  

BMC_5日均价:(CLOSE-MC5)/MC5,colorgreen;{收盘价与5日均价比}  

{BMC_13日均价:(CLOSE-MC13)/MC13;}{收盘价与13日均价比}  

BMC_55日均价:(CLOSE-MC55)/MC55,color000999;{收盘价与55日均价比};  

VAR1:=WEEKDAY>REF(WEEKDAY,1);  

VAR2:=WEEKDAY<REF(WEEKDAY,1);  

上周收盘价:=REF(C,SUMBARS(VAR2,1));  

上周开盘价:=REF(O,SUMBARS(VAR2,1));  

上周交易天数:=SUMBARS(VAR2,2)-SUMBARS(VAR2,1);  

上周最高价:=REF(H,SUMBARS(VAR2,1));  

上周最低价:=REF(L,SUMBARS(VAR2,1));  

ZRSV:=(CLOSE-MIN(LLV(LOW,SUMBARS(VAR2,1)),LLV(上周最低  

价,SUMBARS(VAR2,5))))  

/(MAX(HHV(HIGH,SUMBARS(VAR2,1)),HHV(上周最高价,SUMBARS(VAR2,5)))-  

MIN(LLV(LOW,SUMBARS(VAR2,1)),LLV(上周最低价,SUMBARS(VAR2,5))))*100;  

ZK:SMA(ZRSV,SUMBARS(VAR2,3)-SUMBARS(VAR2,1),1),COLORWHITE;  

ZD:SMA(ZK,SUMBARS(VAR2,3)-SUMBARS(VAR2,1),1),COLORYELLOW;  

ZJ:3*ZK-2*ZD,COLORMAGENTA,LINETHICK1;  

DRAWGBKLAST(1,STRIP(RgB(10,10,50),RGB(50,10,10),0));MA3:MA(CLOSE,3);  

MA4:MA(CLOSE,4);MA5:MA(C,5),colorwhite;MA10:MA(C,10),COLORYELLOW;警  

报:=CROSS(MA4,MA3);DRAWTEXT(警报,H*1.05,'↓  

'),LINETHICK6,ALIGN1,COLORFFFFFF;安全:=CROSS(MA3,MA4);DRAWTEXT(安  

全,L*0.95,'↑'),LINETHICK6,ALIGN1,colorRED;SD:=HHV(HIGH,13)=HIGHAND  

HIGH>REF(HIGH,1);  

{17}  

x9:FORCAST(c,9),Colorwhite,LINETHICK2;  

llx:=llv(FORCAST(c,9),2);  

PARTLINE(x9,x9=llx,rgb(255,205,0),x9<>llx,rgb(255,0,0)),linethick3;  

MA21:MA(C,21),LINETHICK1,COLORE66878;  

VC:=(HIGH+LOW+OPEN+2*CLOSE)/5;  

明日突破:=VC+(HIGH-LOW);  

明日反转:=VC-(HIGH-LOW);  

DRAWTEXTABS(15,71,'明日突破:'+NUMTOSTRN(明日突破,2)+'元  

'),COLOR0000FF;  

DRAWTEXTABS(15,90,'明日反转:'+NUMTOSTRN(明日反转,2)+'元  

'),COLORffff00;  

HHVALL(HIGH)*1.1,COLOR000000;  

LLVALL(LOW)*0.9,COLOR000000;  

{预测当天最低价公式}  

A1:=REF(O,1);  

A2:=ABS((REF(C,1)-A1)/A1);  

A3:=ABS((REF(H,1)-A1)/A1);  

A4:=ABS((REF(L,1)-A1)/A1);  

B1:=ABS((A2+A3+A4)/3);  

B2:=O*B1;  

今日最高:=O+B2;  

预测低一:O-B2,linethick0;  

{预测当天收盘价公式}  

开盘价1:=open;  

开盘价2:=REF(open,1);  

最高价1:=high;  

最高价2:=REF(high,1);  

最低价1:=low;  

最低价2:=REF(low,1);  

收盘价1:=CLOSE;  

收盘价2:=REF(CLOSE,1);  

AA:=最高价2;  

BB:=最低价2;  

CC:=开盘价2;  

DD:=收盘价2;  

EE:=(AA+BB+CC+2*DD)/5;  

AAA:=EE+(AA-BB);  

BBB:=2*EE-BB;  

CCC:=2*EE-AA;  

DDD:=EE-(AA-BB);  

上升突破价:=AAA;  

上升阻力价:=BBB;  

下跌支撑价:=CCC;  

下跌反转价:=DDD;  

EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;  

心理价:=EEE;  

FFF:=(EEE+开盘价1)/2;  

GGG:=(预测低一+FFF)/2;  

预测低二:GGG,colorffffff,LINETHICK0;  

高:=今日最高;  

收:=FFF;  

DRAWTEXTABS(15,35,'预测低一:'+NUMTOSTRN(预测低一,2)+'元  

'),COLORWHITE,linethick1;  

DRAWTEXTABS(15,53,'预测低二:'+NUMTOSTRN(预测低二,2)+'元  

'),COLORWHITE,linethick1;  

a:="[email=LTFunc5@FORLT2]LTFunc5@FORLT2[/email]";  

s1:="[email=LTFunc5@LT_S1]LTFunc5@LT_S1[/email]";  

p1:="[email=LTFunc5@LT_P1]LTFunc5@LT_P1[/email]";  

drawbmp(p1=1andref(p1,1)=0,l,'buy1.bmp'),align1,valign0;  

drawbmp(p1=0andref(p1,1)=1,h,'sell1.bmp'),align1,valign2;  

drawbmp(s1=1andref(s1,1)=0and  

(p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;  

drawbmp(s1=0andref(s1,1)=1and  

(p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;  

{一品资料说明}  

WW:=BARSLAST(DISPSTATUS=1);  

低涨:(C/LLV(LOW,WW)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;  

天:BARSLAST(L=LLV(LOW,WW)),COLOR00FFFF,LINETHICK0,PRECIS0;  

DRAWTEXTABS(210,15,'◇低点至今上涨:'+NUMTOSTRN(低涨,2)+'%  

'+NUMTOSTRN(天,0)+'天'),COLOR0000FF;  

DRAWTEXTABS(210,32,'◇目前可见K线:'+NUMTOSTRN(WW+1,0)+'天  

'),COLORYELLOW;  

DRAWTEXTABS(15,15,'预测今日最高价:'+NUMTOSTRN(ref(今日最高,0),2)+'元  

'),COLORF00FF0,linethick1;  

DRAWTEXTREL(680,950,'预测今日收盘价:'+NUMTOSTRN(ref(FFF,0),2)+'元  

'),COLORF00FF0,linethick1;  

{43}  

DRAWGBK(c,'7');  

Var3:=LLV(H,240);  

Var4:=100*(C-Var3)/Var3;  

Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;  

Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;  

{Var7:=0;}  

Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;  

Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;  

VarA:=BARSCOUNT(C);  

VarB:=Var8<20ANDVar9<23ANDVarA>35;  

VarC:=VarBANDCOUNT(VarB,1)=1;  

VarD:=EMA(C,21)-EMA(C,8);  

VarE:=EMA(VarD,5);  

VarF:=TROUGH(3,6,1)<4ANDCROSS(VarD,VarE);  

Var10:=IF(TROUGH(3,16,1)=0ANDH>L+0.04,4,0);  

Var11:=ZIG(3,6)>REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2)  

ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);  

Var12:=ZIG(3,6)<REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)>=REF(ZIG(3,6),2)  

ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);  

Var13:=ZIG(3,22)>REF(ZIG(3,22),1)AND  

REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)AND  

REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);  

Var14:=ZIG(3,22)<REF(ZIG(3,22),1)AND  

REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)AND  

REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);  

Var15:=ZIG(3,51)>REF(ZIG(3,51),1)AND  

REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)AND  

REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);  

Var16:=ZIG(3,51)<REF(ZIG(3,51),1)AND  

REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)AND  

REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);  

Var17:=ZIG(3,72)>REF(ZIG(3,72),1)AND  

REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)AND  

REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);  

Var18:=ZIG(3,72)<REF(ZIG(3,72),1)AND  

REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)AND  

REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);  

Var19:=EMA(C,2)-EMA(C,150);  

Var1A:=EMA(Var19,100);  

Var1B:=2*(Var19-Var1A);  

Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);  

Var1D:=SQRT(SQRT(L*H*O*C));  

Var1E:=EMA(Var1D*0.97,3);  

Var1F:=(H+L+C)/3;  

Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));  

Var21:=CROSS(Var1E,L);  

买点1:=Var10;  

买点2:=(Var11+Var13+Var15+Var17);  

卖点1:=(Var12+Var14+Var16+Var18);  

Var22:=买点1ANDVarFANDVarCANDVar21ANDVar4<0ANDVar5=0ANDVar6=0  

ANDVar20<(-110);  

DRAWTEXT(买点1>0,L-0.15,'B'),LINETHICK4,ALIGN1,colorred;{B}  

DRAWTEXT(买点2>0,L-0.25,{'B'}'买'),LINETHICK2,ALIGN1,COLOR00FFFF;{B}  

DRAWTEXT(卖点1>0,H+0.95,{'S'}'卖'),LINETHICK2,ALIGN1,COLOR33FF33;{S}  

闪:EMA(c+(h-l)*0.618,3),Color0099FF,LINETHICK0;  

进:EMA((o+h+l)/3,4),COLORCYAN,LINETHICK0;  

预测明日买点:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4;  

DRAWTEXTREL(250,0,'◇测今日低点:'+NUMTOSTRN(ref(预测明日买  

点,1),2)),ColorGREEN,linethick1;  

预测明日卖点:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-进)*0.618;  

DRAWTEXTREL(15,0,'♂测今日高点:'+NUMTOSTRN(ref(预测明日卖  

点,1),2)),Colorred,linethick1;{预测明日涨跌}  

C1:=REF(CLOSE,1);  

C2:=HHV(C1,2);  

C3:=LLV(C1,1);  

ET:=HHV(C1,2);  

ET1:=REF(ET,1);  

XB:=LLV(C1,1);  

XB1:=REF(XB,1);  

M:=BARSLAST(((CLOSE<XB)AND(C1>=XB1)));  

M11:=REF(M,1);  

N9:=BARSLAST(((CLOSE>ET)AND(C1<=ET1)));  

N1:=REF(N9,1);  

M21:=(BARSLAST((((M-N9)>0)AND(M11<=N1)))+1);  

N2:=(BARSLAST((((N9-M)>0)AND(N1<=M11)))+1);  

ET2:=HHV(ET,M21);  

XB2:=LLV(XB,N2);  

A:=IF((((M-N9)>0)AND(M11<=N1)),1,IF((((N9-M)>0)AND(N1<=  

M11)),0,2));  

H1:=IF(((M-N9)>0),CLOSE,ET2);  

H2:=IF((A=1),CLOSE,C2);  

H3:=IF(((M-N9)<0),CLOSE,XB2);  

H4:=IF((A=1),CLOSE,XB2);  

H5:=IF((((M-N9)>0)OR(A=1)),CLOSE,H3);  

H6:=REF(H5,1);  

H7:=REF(H5,2);  

H8:=(H5>H6);  

H9:=(((H4=REF(H4,1))AND(REF(H4,1)<REF(H4,2)))AND(H5>REF(H5,2)));  

H10:=(((H2=REF(H2,1))AND(H4=REF(H4,1)))AND(H5=REF(H5,2)));  

W:=((H8ORH9)ORH10);  

T9:=((H5<H6)AND(H5<REF(H5,2)));  

T10:=((H4=REF(H4,1))AND(H5<REF(H5,2)));  

T11:=((H3>REF(H3,1))AND(H5<REF(H5,1)));  

T12:=((H5=REF(H5,1))AND(H3=H4));  

T13:=((H2=REF(H2,1))AND(H2=H5));  

TW:=((((T9ORT10)ORT11)ORT12)ORT13);  

PK:=((AMOUNT*(((OPEN+CLOSE)+HIGH)+LOW))/4);  

PK1:=IF((VOL>0),(PK/AMOUNT),((((OPEN+CLOSE)+HIGH)+LOW)/4));  

BBP:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);  

DRAWTEXT(((DISPSTATUS=2ANDW)AND(BBP<96.5)),(H5*1.022),'明日看  

涨'),MOVE1,colorFF00ff;  

DRAWTEXT(((DISPSTATUS=2ANDTW)AND(BBP>1)),((H5+H4)/2),'明日看  

跌'),MOVE0,colorffFF00;{支撑压力}  

gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);  

明日阻力:=l+(gj-l)+(c-l);  

明日支撑:=l+(c-gj);  

明日阻力:=l+(gj-l)+(c-l);  

明日支撑:=l+(c-gj);  

今日阻力:=REF(明日阻力,1);  

今日支撑:=REF(明日支撑,1);  

STICKLINE(DISPSTATUS=2andc>=今日阻力,今日阻力,今日阻  

力,30,0),Color0000FF;  

STICKLINE(DISPSTATUS=2andc<今日阻力,今日阻力,今日阻  

力,30,0),Color00FF00;  

STICKLINE(DISPSTATUS=2andc>=今日支撑,今日支撑,今日支  

撑,30,0),ColorFF00FF;  

STICKLINE(DISPSTATUS=2andc<今日支撑,今日支撑,今日支  

撑,30,0),ColorFF0000;  

下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);  

aRSV:=SMA(下档线,3,1);  

aK:=SMA(aRSV,3,1);  

aD:=((3*aRSV)-(2*aK));  

aJ12:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100);  

aRSV24:=SMA(aJ12,3,1);  

aK24:=SMA(aRSV24,3,1);  

aD24:=((3*aRSV24)-(2*aK24));  

撑压  

位:=IF(CROSS(aD24,aD),HIGH,REF(HIGH,BARSLAST(CROSS(aD24,aD)))){,LINET  

HICK2,COLORFFFFFF};  

底:=LLV(HIGH,30){,COLOR00FF00,LINETHICK2};  

STICKLINE(BARSTATUS=2,撑压位,撑压位,30,1),LINETHICK1,COLORFFFFFF;  

DRAWTEXT(BARSTATUS=2,撑压位,'撑压'),COLORFFFFFF,VALIGN1;  

STICKLINE(BARSTATUS=2,底,底,30,1),COLOR00FF00,LINETHICK1;  

{VOL,VOLSTICK;}  

{M1,5,1,10,1;  

M2,10,5,30,1;  

M3,20,10,60,1;}  

{VOL,VOLSTICK;}  

M1:=5;  

M2:=10;  

M3:=20;  

成交量:VOL,LINETHICK0;  

五日均量:MA(VOL,M1);  

十日均量:MA(VOL,M2);  

廿日均量:MA(VOL,M3);  

预估今日成交量:IF((DYNAINFO(7)=CLOSE),DYNAINFO(38)*DYNAINFO(17),成交  

量),Color0000FF,LINETHICK0;  

{如果最新价=收盘价,选五日均量*量比,否则就选成交量}  

FILLRGN(五日均量,十日均量,五日均量>=十日均量,RGB(255,0,0),五日均量<=  

十日均量,RGB(0,255,0));  

{当五日均量>=十日均量时为红色飘带,反之为绿色飘带}  

AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));{系数=成交量/((最高价-最低价)  

*2-绝对值(收盘价-开盘价))}  

主  

买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+(CLOS  

E-LOW)),VOL/2));  

主  

卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA  

A*(HIGH-LOW),0-成交量/2));  

STICKLINE(主买>=主卖,成交量,0,7.5,0),Color0E96A9;{黄色柱表示主力的净  

买量}  

STICKLINE(主买>=主卖,成交量,0,7,0),Color10A7BC;{黄色框2}  

STICKLINE(主买>=主卖,成交量,0,6,0),Color11B5CC;{黄色框3}  

STICKLINE(主买>=主卖,成交量,0,5,0),Color13C6DF;{黄色框4}  

STICKLINE(主买>=主卖,成交量,0,4,0),Color1CD2EC;{黄色框5}  

STICKLINE(主买>=主卖,成交量,0,2,0),Color39D8EE;{黄色框6}  

STICKLINE(主买>=主卖,成交量,0,0.5,0),ColorFFFFFF;{黄色框7}  

STICKLINE(主买<主卖,成交量,0,7.5,0),ColorCA6500;{蓝色柱主力的净卖量}  

STICKLINE(主买<主卖,成交量,0,7,0),ColorE17100;{蓝色框2}  

STICKLINE(主买<主卖,成交量,0,6,0),ColorF27900;{蓝色框3}  

STICKLINE(主买<主卖,成交量,0,5,0),ColorFF850B;{蓝色框4}  

STICKLINE(主买<主卖,成交量,0,4,0),ColorFF9326;{蓝色框5}  

STICKLINE(主买<主卖,成交量,0,2,0),ColorFFA042;{蓝色框6}  

STICKLINE(主买<主卖,成交量,0,0.5,0),colorFFFF00;{蓝色框7}  

STICKLINE(1>0,0,主买,7.5,0),ColorA200A2;{玫红柱1}  

STICKLINE(1>0,0,主买,7,0),ColorB700B7;{玫红柱2}  

STICKLINE(1>0,0,主买,6,0),ColorCE00CE;{玫红柱3}  

STICKLINE(1>0,0,主买,5,0),ColorE800E8;{玫红柱4}  

STICKLINE(1>0,0,主买,4,0),ColorFF00FF;{玫红柱5}  

STICKLINE(1>0,0,主买,2,0),ColorFF60FF;{玫红柱6}  

STICKLINE(1>0,0,主买,0.5,0),ColorFFD2FF;{玫红柱7}  

BBB:=LONGCROSS(成交量,五日均量,4);{全红柱表示今天的成交量超过五日均  

量}  

STICKLINE(BBB,0,成交量,7.5,0),color070084;{全红柱1}  

STICKLINE(BBB,0,成交量,7,0),color0000A3;{全红柱2}  

STICKLINE(BBB,0,成交量,6,0),color0000B7;{全红柱3}  

STICKLINE(BBB,0,成交量,5,0),color0000CD;{全红柱4}  

STICKLINE(BBB,0,成交量,4,0),color0000E9;{全红柱5}  

STICKLINE(BBB,0,成交量,2,0),color0754E9;{全红柱6}  

STICKLINE(BBB,0,成交量,0.5,0),Color68B8FF;{全红柱7}  

DL:=FILTER(成交量=LLV(成交量,20),5);{全绿柱表示今天是最近5天的成交量  

中是20日均量的最低量}  

STICKLINE(DL,0,成交量,7.5,0),Color006400;{全绿柱1}  

STICKLINE(DL,0,成交量,7,0),Color007500;{全绿柱2}  

STICKLINE(DL,0,成交量,6,0),Color008400;{全绿柱3}  

STICKLINE(DL,0,成交量,5,0),Color009900;{全绿柱4}  

STICKLINE(DL,0,成交量,4,0),Color00AE00;{全绿柱5}  

STICKLINE(DL,0,成交量,2,0),Color00BD00;{全绿柱6}  

STICKLINE(DL,0,成交量,0.5,0),Color8EFF8E;{全绿柱7}  

DRAWTEXTREL(0,0,'成交量'),COLORYELLOW;  

{DRAWTEXTREL(600,900,'证券代码:'+STKLABEL+'证券名称:  

'+STKNAME+''),ColorFFAA00;}  

DRAWTEXTABS(35,0,'《夏卫东-自编》'),COLOR0000FF;  

{预计今天成交量}  

今天成交额:=AMOUNT/10000;  

昨天成交额:=REF(今天成交额,1);  

交易分钟数:=if(CURRENTTIME>93000andCURRENTTIME<150000and  

DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,  

if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,  

if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);  

预测今天:=今天成交额/交易分钟数*240;  

交易分时:=FRACPART(交易分钟数/60);  

剩余分时:=交易分时*60;  

剩余秒:=FRACPART(剩余分时);  

剩余秒时:=剩余秒*60;  

交易小时:=交易分钟数/60;  

{显示文字}  

DRAWTEXTABS(125,0,'昨天金额:'+NUMTOSTRN(昨天成交额/10000,2)+'亿  

'),ColorF5FF00,LINETHICK1;  

DRAWTEXTABS(125,13,'预计今天:'+NUMTOSTRN(预测今天/10000,2)+'亿  

'),COLOR00FFFF,LINETHICK1;  

DRAWTEXTABS(450,2,'交易时间:'+INTPART(交易小时)+'小时'+NUMTOSTRN(剩余  

分时,0)+'分'+NUMTOSTRN(剩余秒时,0)+'秒'+'已成交金额'+':  

'+NUMTOSTRN(今天成交额/10000,2)+'亿元  

'),ColorF5FF00,LINETHICK2,PRECIS2;  

{柱图}  

图长度像素:=230*0.5;  

昨天图长度:=230+图长度像素;  

预测今天图:=(预测今天/昨天成交额)*图长度像素+230;  

目前成交图:=(今天成交额/昨天成交额)*图长度像素+230;  

DRAWRECTABS(230,1,昨天图长度,9,RGB(0,255,150));  

DRAWRECTABS(230,13,目前成交图,23,RGB(255,73,20));  

DRAWRECTABS(230,16,预测今天图,20,RGB(255,255,0));  

{立柱说明}  

DRAWRECTREL(0,140,115,860,RGB(20,20,20));  

DRAWRECTREL(0,140,15,280,RGB(255,255,0));  

DRAWTEXTREL(20,140,'主力的净买量'),COLORYELLOW;  

DRAWRECTREL(0,280,15,420,RGB(0,255,255));  

DRAWTEXTREL(20,280,'主力的净卖量'),COLORFFFF00;  

DRAWRECTREL(0,420,15,560,RGB(255,25,0));  

DRAWTEXTREL(20,420,'超过五日均量'),COLOR0025FF;  

DRAWRECTREL(0,560,15,700,RGB(0,255,0));  

DRAWTEXTREL(20,560,'低于廿日均量'),COLOR00FF00;  

DRAWRECTREL(0,700,15,840,RGB(200,0,200));  

DRAWTEXTREL(20,700,'主力外成交量'),COLORFF00FF;

image.png

[源码注释]大智慧公式动态翻译结果

VAR1赋值:3

VAR2赋值:(3)*(((收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值))*(100)的5日[1日权重]移动平均) – (2)*(((收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值))*(100)的5日[1日权重]移动平均的3日[1日权重]移动平均)

输出股价启动在即:如果VAR2上穿VAR1,返回100,否则返回0,画黄色

输出秘密买点:如果(VAR2<=3),返回25,否则返回0,COLORFF00FF

输出机构建增补仓:如果(VAR2<5),返回45,否则返回0,COLOR00FF00

每日大智慧公式解答:

  

公式编写要求:  

要求:当蓝色转为黄色的时候选出,也就是说前一天为蓝色,今天为黄色。麻烦老师了~源码:N15020N11207N2110079JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:EMA(CLOSE,3);M2:EMA(CLOSE,8);M3:EMA(M2,13);M4:EMA(M2,55);持股区域:STICKLINE(A>B,A,B,2,0),COLORYELLOW;持币区域:STICKLINE(A<B,A,B,2,0),COLORBLUE;  

公式编写方法:  

JJ:=(CLOSE+HIGH+LOW)/3;  

A:=EMA(JJ,10);  

B:=REF(A,1);  

CROSS(A>B,0.5);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。