源碼倉-ag真人国际官网
『壹』 通達信金牛判勢指標源碼和機構震倉指標怎麼寫,如下圖效果
金牛判勢主圖公式:
drawgbk(c>o,rgb(60,0,0),rgb(0,0,0),1,2,1);
drawtext_fix(1,0.88,5,0,'~☆~皓天~☆~'),colorblue;
z1:=strcat(hyblock,' ');
z2:=strcat(z1,dyblock);
z3:=strcat(z2,' ');
drawtext_fix(islastbar,0,0,0,strcat(z3,gnblock)),colorred;
金牛:(xma(xma(h,25),25)-xma(xma(l,25),25))*1 xma(xma(h,25),25),dotline,coloryellow;
金鑽趨勢:xma(xma(l,25),25)-(xma(xma(h,25),25)-xma(xma(l,25),25))*1,linethick2,colorred;
金牛2:ema(金鑽趨勢,25)colorcyan,linethick2;
drawband(金鑽趨勢,rgb(55,0,0),金牛2,rgb(0,91,0));
drawkline(h,o,l,c);
stickline(金鑽趨勢>low and 金鑽趨勢
stickline(金鑽趨勢>min(c,o) and 金鑽趨勢
stickline(金鑽趨勢>high,open,close,2,0),coloryellow;
stickline(金鑽趨勢>high,high,low,0,0),coloryellow;
var23:=100*xma(xma((c-ref(c,1)),6),6)/xma(xma(abs((c-ref(c,1))),6),6);
回調買:=llv(var23,2)=llv(var23,7) and count(var23<0,2) and cross(var23,ma(var23,2));
xg:=金鑽趨勢>high and 回調買 and l<=金鑽趨勢;
drawtext(xg,l,'▲買入'),colorred;
jj:=(high low close)/3;
qj0:=vol/if(high=low,4,high-low);
qj1:=if(capital=0,qj0*(jj-min(close,open)),qj0*if(high=low,1,(min(open,close)-low)));
qj2:=if(capital=0,qj0*(min(open,close)-low),qj0*if(high=low,1,(jj-min(close,open))));
qj3:=if(capital=0,qj0*(high-max(open,close)),qj0*if(high=low,1,(high-max(open,close))));
qj4:=if(capital=0,qj0*(max(close,open)-jj),qj0*if(high=low,1,(max(close,open)-jj)));
ddx:=((qj1 qj2)-(qj3 qj4))/if(capital=0,10000,10000),color00aaaa,linethick;
v2:=sma(if(c>=ref(c,1),ddx,-ddx/100),2,1);
v5:=sma(v2*120/fromopen*5,2,1);
v10:=sma(v5,5,1);
v20:=sma(v10,5,1);
dy2:=ref(v2,1)-dy;
xg2:=c>o and dy2<0.02 and ma(c,5)>ma(c,60) and c/ref(c,1)>=1.02 and h<金牛;
{drawtext(xg2,l,'▲抓牛'),coloryellow;}
drawtext(xg2 and l<金鑽趨勢,l,'↖金鑽起漲'),colormagenta;
2機構震倉副圖公式:
var1:=(close high low)/3;
var2:=ema(var1,10);
var3:=ref(var2,1);
綠探底震倉:if(var2,10,drawnull),colorgreen,linethick9;
紅買: if(var2>var3,10,drawnull), colorred,linethick9;
藍賣: if(var2
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
上穿買:sma(rsv,3,1),colorred;
下穿賣:sma(上穿買,3,1),colorffff00;
希望我的回答能使你滿意。