海风一号公式源码
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 求海风一号公式源码 解答如下: 选股公式倒是有的M1到M6的默认参数 为 5,13,21,34,55,144 MA1:=MA(CLOSE,M1); MA2:=MA(CLOSE,M2); MA3:=MA(CLOSE,M3); MA4:=MA(CLOSE,M4); MA5:=MA(CLOSE,M5); MA6:=MA(CLOSE,M6); LC:=REF(CLOSE,1); TR:=MAX((HIGH - LOW),MAX(
-
文章来源:股海网作者:股海网发布时间:2015-08-04浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
求海风一号公式源码
解答如下:
选股公式倒是有的M1到M6的默认参数 为 5,13,21,34,55,144
MA1:=MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
MA3:=MA(CLOSE,M3);
MA4:=MA(CLOSE,M4);
MA5:=MA(CLOSE,M5);
MA6:=MA(CLOSE,M6);
LC:=REF(CLOSE,1);
TR:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW)));
ATR:=SMA(TR,M3,1);
AA:=(HHV(HIGH,M3) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,M5),1));
SSS:=CROSS(MIN(MA(CLOSE,M2),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
B3B:=BARSLAST(B3);
买一:B1;
MA1:=MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
MA3:=MA(CLOSE,M3);
MA4:=MA(CLOSE,M4);
MA5:=MA(CLOSE,M5);
MA6:=MA(CLOSE,M6);
LC:=REF(CLOSE,1);
TR:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW)));
ATR:=SMA(TR,M3,1);
AA:=(HHV(HIGH,M3) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,M5),1));
SSS:=CROSS(MIN(MA(CLOSE,M2),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
B3B:=BARSLAST(B3);
买一:B1;
上一篇:三组合选股公式
下一篇:虚拟量公式通不过解决的方法