飞狐黄金箱主图指标公式

[复制链接]
查看156 | 回复0 | 2021-8-21 12:49:25 | 显示全部楼层 |阅读模式

N1:=4;
上收:=c;
上开:=o;
上高:=h;
上低:=l;
STICKLINE(上收>=上开,上开,上收,6,1 ),COLOR0000FF;
AA:=STICKLINE(上收>=上开,上收,上高,0.6,1 ),COLOR0000FF;
STICKLINE(上收>=上开,上开,上低,0.6,1 ),COLOR0000FF;
STICKLINE(上开>上收,上收,上开,6,0 ),COLORFFFF00;
BB:=STICKLINE(上开>上收,上收,上低,0.6,0 ),COLORFFFF00;
STICKLINE(上开>上收,上开,上高,0.6,0 ),COLORFFFF00;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,N1);
B:=REF(A,1);
智能黄金线:A,POINTDOT,COLORYELLOW;
B,POINTDOT,COLORYELLOW;
STICKLINE(A>B,A,B,5,0),COLORYELLOW;
STICKLINE(A<B,A,B,5,0),COLORBLUE;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(VA2,VA1),VA1,'★止损'),COLORyellow;
DRAWTEXT(CROSS(VA1,VA2),VA1,'★买入'),COLOR00FF00;
选手a:=MA(上收,3);
箱顶a:=MA(REF(HHV(上收,6),1),3);
箱底a:=MA(REF(LLV(上收,3),1),3);
t1:=MA(上收,20)>=REF(MA(上收,20),1);
{股旁网-股票公式网站 www.GUpang.com}
t2:=CROSS(选手a,箱底a) AND 箱顶a/箱底a>100/100 AND t1;
t3:=CROSS(箱顶a,选手a) AND 箱顶a/箱底a>100/100;
选手:=MA(上收,2);
箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00;
t4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;
t5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;
DRAWICON(t2 OR t4,l,1);
DRAWICON(t3 OR t5,h,2);
Var1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
DRAWTEXT(CROSS(Var3,Var4) AND Var3<40,箱底,'逢低吸呐'),COLORf00ff0;
DRAWTEXT(CROSS(Var4,Var3) AND Var4>75 ,箱顶*1.02,'逢高减磅'),COLORf0f000;
DRAWTEXT(Var3>=Var4 and BARSCOUNT(C)=SYSPARAM(1),箱顶,'--中期好'),COLOR00FFFF,ALIGN1;{持仓区,中期向好!}
DRAWTEXT( Var3<Var4 and BARSCOUNT(C)=SYSPARAM(1),箱顶,'--中期坏'),COLORf0f000,ALIGN1;{空仓区,中期走坏!}
DRAWTEXT( A>B and BARSCOUNT(C)=SYSPARAM(1),箱底,'--短期好'),COLOR00FFFF,ALIGN1;
DRAWTEXT(A<B and BARSCOUNT(C)=SYSPARAM(1),箱底,'--短期坏'),COLORf0f000,ALIGN1;

202108211221.jpg

202108211221.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则