beyond202104 发表于 2023-8-28 15:27:47

背离波段走势 清晰买卖信号【指标公式】(含选股)

第一部分 副图公式 手机/电脑


0,COLORYELLOW;
CAIH1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
CAIH2:=EMA(CLOSE,2)-EMA(CLOSE,89);
CAIH3:=2*(CAIH2- EMA(CAIH2,30))*10;
CAIH4:=EMA(CLOSE,2)-EMA(CLOSE,150);
CAIH5:=2*(CAIH4-EMA(CAIH4,100));
背离:(POW(CAIH3,3)*0.1+POW(CAIH3,2))/45+(POW(CAIH5,3)*0.1+POW(CAIH5,1))*5,COLORRED;
走势:EMA(背离,5),COLORYELLOW;
STICKLINE(走势>REF(走势,1),0,走势,1,1),COLORRED;
STICKLINE(走势<=REF(走势,1),0,走势,1,1),COLORGREEN;
STICKLINE(CROSS(背离,走势),0,走势*1.2,3,0),COLORRED;
STICKLINE(CROSS(走势,背离),0,走势*1.2,3,0),COLORGREEN;


第二部分 选股公式


{选股公式:红柱信号}
CAIH1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
CAIH2:=EMA(CLOSE,2)-EMA(CLOSE,89);
CAIH3:=2*(CAIH2- EMA(CAIH2,30))*10;
CAIH4:=EMA(CLOSE,2)-EMA(CLOSE,150);
CAIH5:=2*(CAIH4-EMA(CAIH4,100));
背离:=(POW(CAIH3,3)*0.1+POW(CAIH3,2))/45+(POW(CAIH5,3)*0.1+POW(CAIH5,1))*5,COLORRED;
走势:=EMA(背离,5),COLORYELLOW;
{STICKLINE(CROSS(背离,走势),0,走势*1.2,3,0),COLORRED;}
红柱信号:CROSS(背离,走势);
{卖出公式:绿柱信号}
CAIH1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
CAIH2:=EMA(CLOSE,2)-EMA(CLOSE,89);
CAIH3:=2*(CAIH2- EMA(CAIH2,30))*10;
CAIH4:=EMA(CLOSE,2)-EMA(CLOSE,150);
CAIH5:=2*(CAIH4-EMA(CAIH4,100));
背离:=(POW(CAIH3,3)*0.1+POW(CAIH3,2))/45+(POW(CAIH5,3)*0.1+POW(CAIH5,1))*5,COLORRED;
走势:=EMA(背离,5),COLORYELLOW;
{STICKLINE(CROSS(走势,背离),0,走势*1.2,3,0),COLORGREEN;}
绿柱信号:CROSS(走势,背离);


LANDY_ICY 发表于 2023-9-22 10:51:33

感谢分享好资源

三个捌 发表于 2023-12-1 02:21:24

帮你顶下哈!!

我是一个梦蛋 发表于 2024-1-10 10:38:29

感谢感谢!楼主功德无量,哈哈!
页: [1]
查看完整版本: 背离波段走势 清晰买卖信号【指标公式】(含选股)