飞狐趋势线主图指标

 

源码

W:=1;

AA:=MA(CLOSE,23);
STICKLINE(CLOSE>=AA,LOW,HIGH,0.1,0),colorFF;
STICKLINE(CLOSE>=AA,OPEN,CLOSE,8,0),colorFF;
STICKLINE(CLOSE<AA,LOW,HIGH,0.1,0),colorFF00;
STICKLINE(CLOSE<AA,OPEN,CLOSE,8,0),colorFF00;
S1:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
S2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
T1:=IF(S1<18.5 AND REF(S1,1)>18.5 AND REF(S1,2)<18.5,1,0);
T2:=IF(S1>18.5 AND S1<REF(S1,1) AND REF(S1,1)>REF(S1,2),1,0);
T5:=IF(S1<18.5 AND S1<REF(S1,1) AND REF(S1,1)>REF(S1,2) AND REF(S1,1)>18.5,1,0);
T3:=IF(S2<29.5 AND REF(S2,1)>29.5 AND REF(S2,2)<29.5,1,0);
T4:=IF(S2>29.5 AND S2<REF(S2,1) AND REF(S2,1)>REF(S2,2),1,0);
T6:=IF(S2<29.5 AND S2<REF(S2,1) AND REF(S2,1)>REF(S2,2) AND REF(S2,1)>29.5,1,0);
IF W=1 THEN
DRAWICON(T1=1 OR T2=1 OR T3=1 OR T4=1 OR T5=1 OR T6=1,HIGH*1.1,'ch');
IF W=2 THEN
DRAWICON(T1=1 OR T2=1 OR T3=1 OR T4=1 OR T5=1 OR T6=1,HIGH*1.1,'cb');
T7:=MA(CLOSE,23);
T8:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,2)>REF(CLOSE,3) AND REF(CLOSE,3)>REF(CLOSE,4);
IF W=1 THEN
DRAWICON(ALL(CLOSE<T7,3) AND T8,HIGH*1.08,'fh');
IF W=2 THEN
DRAWICON(ALL(CLOSE<T7,3) AND T8,HIGH*1.08,'fb');
T9:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3);
T10:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,3)<REF(CLOSE,4);
T11:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,3)<REF(CLOSE,4) AND REF(CLOSE,4)<REF(CLOSE,5);
DRAWTEXT(CLOSE>=T7 AND (T9 OR T10 OR T11),LOW,'↑'),colorFF00FF;




来函数检测结果如下
该公式没有未来函数


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图