依然是以前的那些公式, 这次大规模缩减源码,优化算法...
涨幅引用 HH:=HIGH;LL:=LOW;OO:=OPEN;CC:=CLOSE;C0:=REF(CLOSE,1); VV:VOL;A0:DYNAINFO(14)*100;D:=FINANCE(30)/FINANCE(1)/10; SZ:=CC*FINANCE(7);JJ:=AMOUNT/VOL/100; E:=JJ/FINANCE(30)/FINANCE(1)/10;ZF:(CC/C0-1)*100; a:=IF(BUYVOL=1,AMOUNT/100000000,0); b:=IF...
cbl1:=if(ref(h,2)ref(h,3),ref(h,2),ref(h,3)); cbl3:=if(ref(l,2)ref(l,3),ref(h,2),cbl1); cbl2:=if(ref(h,3)=ref(h,2),ref(h,2),ref(h,3)); CBL4:=IF(HREF(H,2 OR LREF(L,2)),REF(H,2),CBL2); cb5:=if(h=ref(h,1) AND LREF(L,1 ),cbl4,cbl3); cbl6:=if(href(h,1) a...
FO:=OPEN; FH:=HIGH; FL:=LOW; FC:=CLOSE; % vo=ffl.vardata(fo) vh=ffl.vardata(fh) vl=ffl.vardata(fl) vc=ffl.vardata(fc) last=ubound(vc) vc(0)=(vh(0)+vl(0)+2*vc(0))/4 for i=1 to last vo(i)=(vo(i-1)+vc(i-1))/2 if vo(i)vh(i) then vh(i)=vo(i) else vh(i)=v...
M4:=MA(CLOSE,3); M2:=MA(CLOSE,2); M5:=MA(CLOSE,5); M7:=MA(CLOSE,7); M13:=MA(CLOSE,13); M10:=MA(CLOSE,10); M20:=MA(CLOSE,20); M25:=MA(CLOSE,25); M30:=MA(CLOSE,30); M60:=MA(CLOSE,60); M90:=MA(CLOSE,90); b1:min(m7,m5); b2:min(m10,b1); b3:min(m13,b2); b...
这个指标很多个,不能一一发源码...
变色线:ma((h+l)/2,3),COLORMAGENTA,linethick4; kcx:=ma(ma((c+h)/2,18),3); ylx:=hhv((变色线)/1,34),colorwhite,linethick2; jcx:=llv((变色线+kcx)/2,18),linethick2,COLORred; dbx:=llv(变色线,26),COLORblue,linethick3; DRAWTEXT(CROSS(变色线,jcx),L,'-加仓'),...
X:=IF(BARPOS250 AND BARPOS10,BARPOS,250); 买估计价:=REF(C,BARSLAST(XG)); 年内XG次数:COUNT(XG,X)-COUNT(XG,10); 十点胜率:=SUM(REF(XG,10) AND HHV(H,10)REF(C,10)*1.11,X-10)/年内XG次数; 五点胜率:=SUM(REF(XG,10) AND HHV(H,10)REF(C,10)*1.06,X-10)/年内XG次...
tk1:=lrefx(h,1) or barpos=0; tk2:=hrefx(l,1) or barpos=0; s2:=sysparam(2);s3:=sysparam(3); ll:=l; ml:=LL[s3];hh:=h;mh:=hh[s3]; for i=s3 downto s2 do begin if tk1[i]=1 and ll[i]mh then break; if hh[i]mh then mh:=hh[i]; else begin if tk2[i]=1 and hh[i...
均价:=(2*C+(H-L)/2+L+o)/4; 价差:=SUM(均价-REF(均价,1),3)/3; 实价:=(均价+价差); H0:=MA(实价,8); H1:=(55*H0+34*REF(H0,1)+21*REF(H0,2)+13*REF(H0,3)+8*REF(H0,4)+5*REF(H0,5) +3*REF(H0,6)+2*REF(H0,7)+REF(H0,8)+REF(H0,9))/143; H2:=REF(H1,1); 金线:0.5*(H1+H...
{飞用MACD} INPUT:SHORT(12,1,100,1),LONG(26,1,100,1), N(9,1,100,2),M(9,2,60); DRAWGBK((DATE 0),COLORRGB(40,40,60),COLORRGB(10,10,10),1); DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); MACD:=EMA(DIF,N); DEF:=2*(DIF-MACD); STICKLINE(DEF=0 AND DEF=REF(DEF,1),0,D...
{跟庄建仓} gzA01:=DYNAINFO(7); gzA03:=BARSCOUNT(CLOSE); gzA04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100); gzA05:=IF((gzA03 20),gzA04,0); gzA06:=IF((LOW gzA01),0,IF((HIGH gzA01),1,(((gzA01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009)))); gzA07:=DMA(gzA06,...
A:=100-90*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)); B:=100-MA(100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),28); DRAWICON(CROSS(A,B),LOW*0.988,10); DRAWICON(CROSS(B,A),HIGH*1.017,12); STICKLINE(A=B,LOW,HIGH,1,0),colorFF; STICKLINE(A=B,CLOSE,O...
INPUT:最近天(60,1,360);{ 模糊调参数} {一年时间之窗转折日} 当前月:=FRACPART(ROUND(当前日期/100)/100)*100,LINETHICK; 月:=MONTH;日:=DAY; VERTLINE(月=1 AND (日=25)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=3 AND (日=20)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月...
花了两天的时间写完代码,拿出来与大家共享,以感谢千钧老师的伟大奉献精神。指标对电脑的硬件要求较高,因为要有大量的排序处理。...
{★MACD-(快速)} input: P(19,15,100), S(7,5,140), M(9,2,80); {-----------------------☆功能开关------------------------} {资金} ZJ1:=DMA((H+L+C*2)/4,0.9); ZJ2:=V/((H-L)*2-ABS(C-O)); ZJ3:=IF(CO,ZJ2*(H-L),IF(CO,ZJ2*(H-O+(C-L)),V/2))+IF(CO,0-ZJ2*(H-C+...
结合高手的主图改编属于自己的东东...
{奇准} INPUT:N(13,1,100),M(9,1,100),M1(3,1,100); DRAWGBK(CLOSE0,colorRGB(95,95,95),colorRGB(0,0,0),1); VAR1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; VAR2:=SMA(VAR1,M1,1); 卖:SMA(VAR2,M1,1),LINETHICK2; VAR3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-...
{界文粉丝-当有粉色时出现第一根红柱是强介入信号} INPUT:N1(5,2,100),N2(26,2,100),N3(45,2,100),N4(7,2,100); DIF1:=EMA(CLOSE,N1)-EMA(CLOSE,N2); DEA1:=EMA(DIF1,N3); DIF2:=EMA(CLOSE,N4)-EMA(CLOSE,N3); DEA2:=EMA(DIF2,N4); MACD:2*(DIF1-DEA1),COLOR0088F5,LI...
VAR1:=CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,2); VAR2:=REF(VAR1,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VAR5:=R...