龙游潜水(通达信公式 主图 源码 测试图)

[复制链接]
查看24 | 回复0 | 2022-6-27 19:07:50 | 显示全部楼层 |阅读模式

 MA5:MA(CLOSE,5),LINETHICK1,COLORGREEN;

MA10:MA(CLOSE,10),LINETHICK1,COLORRED;
MA30:MA(CLOSE,30),LINETHICK2,COLORYELLOW;
_持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED,{COLOR9955FF};
_空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00};
_现价:CLOSE,COLORWHITE,NODRAW;
_10日涨跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW;
{二次给力}
均线1:=EMA(C,2),COLORRED;
均线2:=EMA(SLOPE(C,9)*20+C,37);
买:=CROSS(均线1,均线2);
卖:=CROSS(均线2,均线1);
DRAWICON(买,L*0.97,1);
DRAWTEXT(买,L*0.95,'进攻'),COLORYELLOW;
DRAWICON(卖,H*1.03,2);
DRAWTEXT(卖,H*1.08,'撤退'),COLORWHITE;
STICKLINE(均线1>=均线2,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(均线1>=均线2,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(均线1>=均线2,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(均线1>=均线2,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(均线1<均线2,LOW,HIGH,0.01,0),COLORFFDD00;
STICKLINE(均线1<均线2,CLOSE,OPEN,2,0),COLORFFFF00;
STICKLINE(CROSS(均线1,均线2),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(均线2,均线1),OPEN,CLOSE,2.5,0),COLORWHITE;
 

p20202151464112584.jpg

p20202151464112584.jpg

20202151465456489.rar

2.45 KB, 下载次数: 0

售价: 2 金钱  [记录]  [购买]

20202151465456489.rar

回复

使用道具 举报

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

本版积分规则