指標源碼代碼-ag真人国际官网
㈠ 通達信指標公式源碼
通達信指標公式源碼:
a:=(3*c h l o)/6;
xj:=(a 0.618*ref(a,1) 0.382*ref(a,2) 0.236*ref(a,3) 0.146*ref(a,4))/2.382;
yczxh:=(ma(hhv(a,2),5) ma(hhv(a,2),13) ma(hhv(a,2),21) ma(hhv(a,2),32))/4;
yczxl:=(ma(llv(a,2),5) ma(llv(a,2),13) ma(llv(a,2),21) ma(llv(a,2),32))/4;
smh:ema(yczxh,21),color004000;
sml:ema(yczxl,21),color004000;
smj:(sml smh)/2,color004000;
pj:=(10*a 9*ref(a,1) 8*ref(a,2) 7*ref(a,3) 6*ref(a,4) 5*ref(a,5) 4*ref(a,6) 3*ref(a,7) 2*ref(a,8) ref(a,9))/55;
a1:=ema(pj,3),color004000;
a2:=ema(pj,5),color004000;
a3:=ema(pj,7),color004000;
a4:=ema(pj,9),color004000;
a5:=ema(pj,11),color004000;lx:=ref(xj,1);
zd:=(sma(max(xj-lx,0),5,1)/sma(abs(xj-lx),5,1))*100;
kx1:=(close>=open)andzd>=50;
kx2:=(close
kx3:=(close>=open)andzd<50;
kx4:=(close
if(a5>ref(a5,1),a5,drawnull),color00005b,linethick2;
if(a4>ref(a4,1),a4,drawnull),color000055,linethick1;
if(a3>ref(a3,1),a3,drawnull),color00006c,linethick1;
if(a2>ref(a2,1),a2,drawnull),color00007d,linethick1;
if(a1>ref(a1,1),a1,drawnull),color00009b,linethick1;
stickline(kx1,c,o,4,1),color4440ff;
stickline(kx1,c,h,0.5,1),color4440ff;
stickline(kx1,o,l,0.5,1),color4440ff;
stickline(kx2,c,o,4,0),color4440ff;
stickline(kx2,o,h,0.5,0),color4440ff;
stickline(kx2,c,l,0.5,0),color4440ff;
stickline(kx3,c,o,4,1),colorffff33;
stickline(kx3,c,h,0.5,1),colorffff33;
stickline(kx3,o,l,0.5,1),colorffff33;
stickline(kx4,c,o,4,0),colorffff33;
stickline(kx4,o,h,0.5,0),colorffff33;
stickline(kx4,c,l,0.5,0),colorffff33;
㈡ 通達信可用的 資金博弈指標的 源代碼
散戶:(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100,linethick1,coloryellow;
中戶:(close-llv(low,10))/(hhv(high,10)-llv(low,10))*100,linethick1,colorgreen;
大戶:(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100,linethick1;
機構:(close-llv(low,30))/(hhv(high,30)-llv(low,30))*100,linethick2,colorred;
㈢ 主力識別指標源碼是什麼
主力識別指標源碼是:鉛絕.rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;j1:=reverse(j);aa:=ref(ma(c,1),10)>ref(ma(c,60),10);買陸激跡點:cross(j,j1)aa;stickline(買點,0,30,6,0),colorblue;stickline(買點,30,60,4,0),colorwhite;stickline(買點,60,80,2,0),coloryellow;drawtext(買點,70,´敵軍潛入´),colorred;{主力進出場}var1:=ref((low open close high)/4,1);var2:=sma(abs(low-var1),13,1)/sma(max(low-var1,0),10,1);var3:=ema(var2,10);var4:=llv(low,33);var5:=ema(if(low<=var4,var3,0),3);主力進場:if(var5>ref(var5,1),var5,0),colorred,nodraw;stickline(var5>ref(var5,1),0,var5,3,0),colorred;stickline(var5>ref(var5,1),0,var5,3,0),color000055;stickline(var5>ref(var5,1),0,var5,2.6,0),color000077;stickline(var5>ref(var5,1),0,var5,2.1,0),color000099;stickline(var5>ref(var5,1),0,var5,1.5,0),color0000bb;stickline(var5>ref(var5,1),0,var5,0.9,0),color0000dd;stickline(var5>ref(var5,1),0,var5,0.3,0),color0000ff;洗盤:if(var5=var14,var13,0),3);沖頂:if(var15>ref(var15,1),var15,0),colorff00ff,nodraw;stickline(var15>ref(var15,1),0,var15,3,0),colorff00ff;stickline(var15>早並ref(var15,1),0,var15,3,0),color550055;stickline(var15>ref(var15,1),0,var15,2.6,0),color770077;stickline(var15>ref(var15,1),0,var15,2.1
㈣ 求指標源碼,謝謝!!
公式源代碼
mcst:dma(amount/(100*vol),vol/capital);
應用法則
1.mcst是市場平均成本價格。
2.mcst上升表明市場籌碼平均持有成本上升;mcst下降表明市場籌碼平均持有成本下降。
3.當股價在mcst曲線下方翻紅時應關注,若向上突破mcst曲線應買入;當mcst曲線的下降趨勢持續超過30日時,若股價在mcst曲線上方翻紅應買入。
4.該指標應結合布林線使用。
㈤ 秒殺一切妖股指標公式源碼是什麼
如下:
{百底公式1}
{ab:=ema(((2*c h l)/4-llv(low,30))/(hhv(high,30)-llv(low,30))*100,8);
ba:=ema(ab,5);
頂1:=refdate(ref(hhv(h,100),5),date);
底1:=refdate(ref(llv(l,100),5),date);
中1:=((頂1) (底1))/2;
頂:if(ab>0 and ab-ba<=0,頂1,頂1),color00ff00;
中:if(ab>0 and ab-ba<=0,中1,中1),colorwhite;
底:if(ab>0 and ab-ba<=0,底1,底1),coloryellow;
drawtext(islastbar,(頂),strcat('',con2str(頂,2))),colorwhite;
drawtext(islastbar,(中),strcat('',con2str(中,2))),colorwhite;
drawtext(islastbar,(底),strcat('',con2str(底,2))),colorwhite;
{百底公式2}
n:100 nodraw ;
高:if(currbarscount<=n,const(hhv(h,n)),drawnull),colorgreen ;
低:if(currbarscount<=n,const(llv(l,n)),drawnull),coloryellow;
notext中:低 (高-低)/2 colorwhite;
{漲幅:(c-低)/低*100 nodraw colorff00ff;}
漲幅:((c-低)/(高-低))*100 nodraw colorff00ff;
漲天數:llvbars(l,100)colorwhite nodraw;
{跌幅:((c-高)/高)*100 nodraw colord9d919;};
跌幅:((c-高)/(高-低))*100 nodraw colord9d919;
跌天數:hhvbars(h,100)colorwhite nodraw;
drawtext(islastbar,(高-(高-低)/50),strcat('',con2str(高-(高-低)/50,2))),colorwhite;
drawtext(islastbar,(notext中),strcat('',con2str(notext中,2))),colorwhite;
drawtext(islastbar,(低),strcat('',con2str(低,2))),colorwhite;
ma5:ma(c,5),coloryellow;
notext5:if((c<=ma5 or ma5<=ref(ma5,1)),ma5,drawnull),colorffff00;
振幅:((高-低)/低)*100 nodraw colorgreen;
均周月:inblock('均周')and inblock('均月') colorwhite nodraw;
逃周月:inblock('逃周')and inblock('逃月')nodraw coloryellow;
{var6:=ref(c,1);
var7:=sma(max(c-var6,0),6,1)/sma(abs(c-var6),6,1)*100;
drawtext(cross(82,var7),h*1.01,'高拋'),colorffffff;
var1:=llv(low,21);
var2:=hhv(high,21);
ak1:=ema((((close - var1) / (var2 - var1)) * 100),5);
ak:=ema((((close - var1) / (var2 - var1)) * 50),13);
ab:=cross(ak1,ak);
drawtext((ab = 1),(low * 0.99),'低吸'),coloryellow;};
{百底距:=((c-低)/低)*100;
xg1:=between(c,低,低*(1 0.03));
盤整天:barslastcount(xg1)nodraw coloryellow;}
{上漲值:=ma((h ref(l,1))/2,3);
買進高點:=ma((h ref(h,1))/2,3);
var1:=((o h l 2*c)/5)*2-l;
突破買入值:=ma(var1,3);{lss軸點突破買入值}
{下跌值:=ma((ref(h,1) l)/2,3);
賣出低點:=ma((ref(l,1) l)/2,3);
var2:=((o h l 2*c)/5)*2-h;
突破賣出值:=ma(var2,3);
次日賣出點:=(上漲值 買進高點 突破買入值 h)/4;
次日買入點:=(下跌值 賣出低點 突破賣出值 l)/4;
均價:=(2*c l h/4);
買入價:if(均價/ref(均價,1)>1,次日買入點*1.01,次日買入點)colorwhite nodraw;
次低價:if(均價/ref(均價,1)>1,次日買入點/1.0382,次日買入點)nodraw coloryellow;
賣出價:if(均價/ref(均價,1)>1,次日賣出點*1.0191,次日賣出點)nodraw;
必賣價:if(均價/ref(均價,1)>1,次日賣出點*1.05,次日賣出點)colord9d919 nodraw;}
{ac:=ref(c,1);
漲停k線:=if((c-ac)*100/ac>=(10-0.01*100/ac),1,0);
跌停k線:=if((ac-c)*100/ac>=(10-0.01*100/ac),1,0);
stickline(漲停k線,open,close,2.5,0),coloryellow;
stickline(跌停k線,open,close,2.5,0),colored9564;}
{漲停顏色粉色,完美區分20%5%,創業板20200823前10%照樣變色}
bk:=if(inblock('科創板'),0.2,if(inblock('創業板'),0.2,if(inblock('st板塊'),0.05,0.1)));
xa_1:=if(date<=1200823,1,0);
stickline((c>=ztprice(ref(close,1),0.1) and c=h) and xa_1=1,o,c,3,0),coloryellow;
stickline((c<=dtprice(ref(close,1),0.1) and c=l) and xa_1=1,o,c,3,0),colored9564;
stickline((c>=ztprice(ref(c,1),bk) and c=h),c,o,3,0),coloryellow;
stickline((c<=dtprice(ref(c,1),bk) and c=l),c,o,3,0),colored9564;
{stickline((h>=ztprice(ref(c,1),bk) and c
{stickline((l<=dtprice(ref(c,1),bk) and c>l) or (l<=dtprice(ref(close,1),0.1) and c>l and xa_1=1),l,min(c,o),0.1,0),colored9564;{跌停後回升}
{z1:=strcat(hyblock,' ');
z2:=strcat(z1,dyblock);
z3:=strcat(z2,' ');
drawtext_fix(islastbar,0,10,0,strcat(z3,gnblock)),colorwhite;}
{drawtext_fix(1,0.00,0.00,0,'主題投資:')coloryellow;
drawtext_fix(1,0.06,0.00,0,externstr(0,1))coloryellow;
drawtext_fix(1,0.00,0.06,0,'主營業務:')colorwhite;
drawtext_fix(1,0.06,0.06,0,externstr(0,2))colorwhite;
drawtext_fix(1,0.00,0.12,0,'公司亮點:')coloryellow;
drawtext_fix(1,0.06,0.12,0,externstr(0,3))coloryellow; }
{流通市值:(finance(40)/100000000),nodraw,colorred;}
{漲停統計}
{漲停:=close/ref(close,1)>=1.095;
ztcs:=count(漲停,barssince(漲停) 1);}
{drawnumber(漲停,high*1.04,ztcs),coloryellow;}
{gzt1:=strcat('共漲停: ',con2str(ztcs,0));
gzt2:=strcat(gzt1,'次');
ssts1:=strcat('上市: ',con2str(finance(42),0));
ssts2:=strcat(ssts1,'天');
ntzzt1:=strcat('距今:',con2str(const(barslast(漲停)),0));
ntzzt2:=strcat(ntzzt1,'天有漲停');
zttj1:=strcat(ssts2,gzt2);
zttj2:=strcat(zttj1,ntzzt2);
zttj:=strcat('漲停統計:',zttj2);
drawtext_fix(currbarscount=1,0,0.18,0,zttj),colorwhite;}。