简简单单--慕远老师的飞狐

[复制链接]
查看216 | 回复0 | 2022-6-28 08:51:20 | 显示全部楼层 |阅读模式

慕远  老师的简简单单飞狐源码:
RSI1:=FORCAST( SMA(MAX(MA(C,2)-REF(C,1),0),3,1)/SMA(ABS(MA(C,2)-REF(C,1)),3,1),3)*100;
RSI2:=FORCAST( SMA(MAX(C-REF(C,1),0),14,1)/SMA(ABS(C-REF(C,1)),14,1),3)*100;
{}
Z_J1:=EMA((C+C+L+H)/4,5);
Z_J2:=Z_J1/EMA(C,20);
Z_J3:=Z_J1/EMA(C,50);
Z_J4:=EMA(C,5)>REF(EMA(C,5),1);
Z_J5:= REF(MA(Z_J1,5),1);
Z_J6:=SMA(MAX(C-Z_J5,0),9,1)/SMA(ABS(C-Z_J5),9,1)*100;
Z_J7:=100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));
攻击:IF(Z_J2>1.02,1.03,Z_J2),LINETHICK,PRECISION2,COLORMAGENTA;
增援:IF(Z_J3>1,1,Z_J3),LINETHICK,PRECISION2,COLORCYAN;
{低}
JP_1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
JP_2:=LLV(L+(L-C),21);
JP_3:=EMA(JP_1,5);
JP_4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
JP_5:= EMA(C,7) - EMA(C,19);
JP_6:= EMA(JP_5,9);
JP_7:=(JP_5<-0.1 and JP_5>JP_6);
JP_8:=CROSS(JP_1,JP_3) AND (JP_4-JP_3)>50 and JP_7;
{控制位置}
n1:=sysparam(3);     n2:=sysparam(2);     n3:=(n1-n2)+1;
hh:=hhv(攻击,n3);                         ll:=llv(增援,n3);
最高:=hh[n1];        最低:=ll[n1];         中:=(最低+最高)/2;
{价值低估}
cd1:=REF(C,1)/C;
cd2:=(1-MA(L,3)/MA((H+L+2*C)/4,20))*100-5;
cd3:=(MA(H,3)/MA((H+L+2*C)/4,20)-1)*100-5;
cd4:=IF(cd2>0,-cd2*REF((H+L+2*C)/4,3)/C,0);
cd5:=if(cd4<0,ABS(cd4/100),0),ColorFFFFFF;
未:=FINANCE(32),LINETHICK;//每股未分
资:=FINANCE(34),LINETHICK;//每股净资产
利:=FINANCE(33),LINETHICK;//每股利润
公:=FINANCE(18),LINETHICK;//每股公积金

{-----------------【图解模板】---------------------}
PARTLINE(1,最高),LINEDOT,COLORGRAY;      
PARTLINE(1,中),LINEDOT,COLORGRAY;   
PARTLINE(1,最低),LINEDOT,COLORGRAY;
STICKLINE(资>C and cd4<0,cd5+最低,最低,3,0),,Color005400;//价值低估
STICKLINE(资+利+公+未>C and cd4<0,cd5+最低,最低,3,0),COLORGRAY;//极价值低估
DRAWICON(Z_J6-Z_J7>0 and EMA(RSI1,8)>EMA(RSI2,13),中,12);
DRAWICON(攻击>1.019 AND Z_J4 and EMA(RSI1,8)>EMA(RSI2,13),中,10);
PARTLINE(1,攻击),LINETHICK2,COLORMAGENTA;
PARTLINE(1,增援),LINETHICK2,COLORCYAN;
DRAWICON(JP_8,最低,4),ALIGN;
DRAWTEXT(JP_8,最低,'低'),ALIGN,PXUP50,COLORGREEN;
DRAWTEXT(BARPOS=SYSPARAM(2),最低,'初显黄灯试买;红灯初现加仓;'),PXUP30,align5,COLORWHITE;

20091182022479517.gif

20091182022479517.gif

200911820215664081.rar

1.99 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

200911820215664081.rar

回复

使用道具 举报

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

本版积分规则