C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- MA5:=MA(C,5);
- MA10 :=MA(CLOSE,10);
- MA60 :=MA(CLOSE,60);
- GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
- GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
- GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
- GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
- BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
- BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
- BAIJIN3:=GJTJ1>60 AND GJTJ4>70;
- XG:BAIJIN1 AND BAIJIN2 AND BAIJIN3;