強勢區黃金點副圖指標公式[同花順公式]
相關標簽:
?
?
?
原理解析:
?
?來源:程序化99( www.kzuj.com.cn )
源碼:
?
?
N:=8;M:=5;趨勢線:SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1)-(13),LINETHICK2,COLORf0f000;
判斷:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);
強勢區:判斷>趨勢線,COLOR9800FF;
STICKLINE(強勢區,30,40,4,2),COLOR9800FF;
弱勢區:判斷<趨勢線,coloryellow;
STICKLINE(弱勢區,30,40,4,2),coloryellow;
STICKLINE(FILTER(CROSS(判斷,趨勢線)=1 OR 判斷>REF(判斷,1),10) AND 判斷<25 ,趨勢線,趨勢線+10,9,1),colorred;
STICKLINE(FILTER(判斷>65,5),趨勢線+5,趨勢線+15,9,1),color00FF00;
DRAWICON(FILTER(趨勢線>=REF(趨勢線,1)AND 趨勢線<0,15),0,1);
Var2:=1;
Var3:=REF(HIGH,1)*1.1;
Var4:=HIGH*1.1;
Var5:=(Var4*VOL+Var3*(CAPITAL-VOL))/CAPITAL;
Var6:=REF(LOW,1)*0.9;
Var7:=LOW*0.9;
Var8:=(Var7*VOL+Var6*(CAPITAL-VOL))/CAPITAL;
Var9:=EMA(Var8,30);
VarA:=EMA(Var5,30);
VarB:=VarA-2;
VarC:=IF(CLOSE<=Var9,VarB,VarA);
VarD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
出手: STICKLINE(VarC-VarB=0 AND Var2 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),50,0,5,0),colorcc9966;
贏: DRAWTEXT(FILTER(VarC-VarB=0 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),55,'買入'),colorred;
VarE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
賣出線: SMA(SMA(VarE,3,1),3,1),colorff6633;
買入線: 3*SMA(VarE,3,1)-2*賣出線,colorred;
DRAWICON(CROSS(90,買入線),90,2);
黃金點: STICKLINE(SMA(VarE,3,1)>賣出線,SMA(VarE,3,1),賣出線,4,0),COLOR1133ff
-10;TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' www.kzuj.com.cn '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花順程序化交易');
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容