请老师写个选股公式(通达信),这是代码二(太长只有分二段)高手请进
发布网友
发布时间:2022-04-30 12:32
我来回答
共1个回答
热心网友
时间:2023-10-23 11:25
{启动}
COHL:=(C+O+H+L)/4;
成交均价:=AMOUNT/VOL/100;
TEST:=BETWEEN(成交均价,L,H);
CC0:=IF(TEST,成交均价,COHL);
CC:=FORCAST(CC0,5);
EMA34:=EMA(CC,34);
EMA21:=EMA(CC,21);
EMA13:=EMA(CC,13);
EMA5:=EMA(EMA(CC,5),2);
TJ:=C>O AND ABS(EMA13-EMA5)<EMA5*0.01 AND ABS(EMA13-EMA21)<EMA21*0.01 AND ABS(EMA34-EMA21)<EMA21*0.01 AND EMA5>REF(EMA5,1) AND EMA13>REF(EMA13,1) AND EMA21>REF(EMA21,1) AND EMA34>REF(EMA34,1);
启动点:FILTER(TJ,5);
{紫色柱选股}
VAR2:ZIG(3,10)>REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
“启动”公式里只有*未来“EMA”,信号基本可靠。“紫色柱选股”公式纯粹由未来函数“ZIG”组成,信号会漂移。
股票公式专家团为你解答,希望能帮到你,祝投资顺利。
热心网友
时间:2023-10-23 11:25
{启动}
COHL:=(C+O+H+L)/4;
成交均价:=AMOUNT/VOL/100;
TEST:=BETWEEN(成交均价,L,H);
CC0:=IF(TEST,成交均价,COHL);
CC:=FORCAST(CC0,5);
EMA34:=EMA(CC,34);
EMA21:=EMA(CC,21);
EMA13:=EMA(CC,13);
EMA5:=EMA(EMA(CC,5),2);
TJ:=C>O AND ABS(EMA13-EMA5)<EMA5*0.01 AND ABS(EMA13-EMA21)<EMA21*0.01 AND ABS(EMA34-EMA21)<EMA21*0.01 AND EMA5>REF(EMA5,1) AND EMA13>REF(EMA13,1) AND EMA21>REF(EMA21,1) AND EMA34>REF(EMA34,1);
启动点:FILTER(TJ,5);
{紫色柱选股}
VAR2:ZIG(3,10)>REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
“启动”公式里只有*未来“EMA”,信号基本可靠。“紫色柱选股”公式纯粹由未来函数“ZIG”组成,信号会漂移。
股票公式专家团为你解答,希望能帮到你,祝投资顺利。