在分时主图中加入了CYC的均线参考

[复制链接]
查看89 | 回复0 | 2021-8-19 14:24:46 | 显示全部楼层 |阅读模式

以下是在分时主图中加入了CYC的均线参考(无源码的请下载附件导入)

在分时主图中加入了CYC的均线参考

上涨家数:HY_INDEXADV,NODRAW;
下跌家数:HY_INDEXDEC,NODRAW;
VAR1:=AMOUNT/VOL/100;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,5)/VAR1/100;
VAR4:=SUM(AMOUNT,13)/VAR1/100;
VAR5:=SUM(AMOUNT,34)/VAR1/100;
VAR6:=SUM(AMOUNT,120)/VAR1/100;
CYC5:=DMA(VAR2,VOL/VAR3);
CYC13:=DMA(VAR2,VOL/VAR4);
CYC34:DMA(VAR2,VOL/VAR5),COLORRED;
CYC0:=DMA(VAR2,VOL/VAR6),COLORYELLOW;
MA5:="MAA引用.MA1#DAY";
 ZG:="MAA引用.MA2#DAY";
 ZD:="MAA引用.MA3#DAY";


DRAWTEXT_FIX(1,0.00.01,0.00,0,STRCAT(STRCAT('昨最高:  ',CON2STR(ZG,2)),'元')),COLORRED;
DRAWTEXT_FIX(1,0.00.01,0.10,0,STRCAT(STRCAT('昨最低:  ',CON2STR(ZD,2)),'元'));
DRAWTEXT_FIX(1,0.00.01,0.20,0,STRCAT(STRCAT('五日均:  ',CON2STR(MA5,2)),'元'))COLORLICYAN;

 

=======================================================================
需另建一个指标名为“MAA引用”的引用指标
MA1:MA(C,5);
MA2:REF(H,1);
MA3:REF(L,1);
 

752344883.png

752344883.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则