飞狐安全轨迹指标公式

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

趋势a:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
FILLRGN(趋势a>20,趋势a,20),COLOR32329B;
FILLRGN(20>趋势a,趋势a,20),COLOR326400;
PARTLINE(趋势a>20,趋势a),COLORRED;
PARTLINE(趋势a<20,趋势a),COLORGREEN;
趋势b:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
FILLRGN(趋势b>30,趋势b,30),COLOR32329B;
FILLRGN(30>趋势b,趋势b,30),COLOR326400;
PARTLINE(趋势b>30,趋势b),COLORRED;
PARTLINE(趋势b<30,趋势b),COLORGREEN;
趋势c:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
FILLRGN(趋势c>40,趋势c,40),COLOR32329B;
FILLRGN(40>趋势c,趋势c,40),COLOR326400;
PARTLINE(趋势c>40,趋势c),COLORRED;
PARTLINE(趋势c<40,趋势c),COLORGREEN;
趋势d:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
FILLRGN(趋势d>50,趋势d,50),COLOR32329B;
FILLRGN(50>趋势d,趋势d,50),COLOR326400;
PARTLINE(趋势d>50,趋势d),COLORRED;
PARTLINE(趋势d<50,趋势d),COLORGREEN;
顶:=85;
中:=50;
底:=20;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VARA:=IF(VAR9>100,VAR9-100,0);
VARB:=HHV(HIGH,34);
AA:= VARA*2;
BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*100,13);
VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2);
CC:SMA(VAR5,20,1),COLORRED;
CC1:SMA(CC,5,1),COLORGREEN;
{www.gUPaNg.com 股旁网_最新股票指标公式}
STICKLINE(CC>CC1,CC,CC1,1,0),COLORRED;
STICKLINE(CC1>CC,CC,CC1,1,0),COLORGREEN;
出击:IF((CROSS(CC,CC1) AND (CC1 < 顶) ),80,0),COLORRED;
{跑}
DRAWICON(CC < REF(CC,1) AND REF(CC,1) < REF(CC,2) AND CC > CC1,100,2);
DRAWICON(CROSS(CC1,CC),100,15);
VAR11111:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR22222:=ABS(VAR11111);
VAR33333:=SMA(VAR22222,3,1);
安全轨迹:SMA(VAR33333,5,1),COLORWHITE;
D:=SMA(安全轨迹,8,1),COLORWHITE;
STICKLINE(安全轨迹>D,安全轨迹,D,4,0),COLORYELLOW;
STICKLINE(安全轨迹<D,安全轨迹,D,0,0),COLOR00FF00;
PARTLINE(安全轨迹>REF(安全轨迹,1) AND 安全轨迹>=0,安全轨迹),COLORYELLOW,LINETHICK2;

202108211213.jpg

202108211213.jpg

 

回复

使用道具 举报

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

本版积分规则