龙听期货论坛's Archiver

龙听 发表于 2018-10-9 15:52

[转载]获利操盘(主图 源码)

[attach]4462[/attach]

源码如下:
[code]
{获利操盘 源码}
现价:C;
底部: COST(5),COLORYELLOW;
买入: COST(30),COLORRED;
卖出: COST(75),COLORGREEN;
顶部: COST(95),COLORFF00FF;
AA:=BARSLAST(CROSS(C,COST(5)));
AA2:=BARSLAST(CROSS(COST(5),C));
BB:=BARSLAST(CROSS(C,COST(30)));
BB2:=BARSLAST(CROSS(COST(30),C));
CC:=BARSLAST(CROSS(C,COST(75)));
CC2:=BARSLAST(CROSS(COST(75),C));
DD:=BARSLAST(CROSS(C,COST(95)));
DD2:=BARSLAST(CROSS(COST(95),C));
底部关注:=BETWEEN(C,COST(5),COST(30)) AND AA<AA2 AND AA<BB2;
开始建仓:=BETWEEN(C,COST(30),COST(75)) AND BB<BB2 AND BB<CC2;
拉升待涨:=BETWEEN(C,COST(75),COST(95)) AND CC<CC2 AND CC<DD2;
冲顶阶段:=C>=COST(95) AND DD<DD2;
破顶减仓:=BETWEEN(C,COST(95),COST(75)) AND DD>DD2 AND CC>DD2;
走弱出局:=BETWEEN(C,COST(75),COST(30)) AND CC>CC2 AND BB>CC2;
弱市观望:=BETWEEN(C,COST(30),COST(5)) AND BB>BB2 AND AA>BB2;
赶底不碰:=C<=COST(5) AND AA>AA2;
drawtext(底部关注,COST(50),'▲'),COLORFFFFFF;
drawtext(开始建仓,COST(50),'■'),COLOR00FFFF;
drawtext(拉升待涨,COST(50),'★'),COLOR0000FF;
drawtext(冲顶阶段,COST(50),'●'),COLORFF00FF;
drawtext(破顶减仓,COST(50),'□'),COLOR00FF00;
drawtext(走弱出局,COST(50),'◇'),COLOR00FF00;
drawtext(弱市观望,COST(50),'△'),COLORFFFF00;
drawtext(赶底不碰,COST(50),'○'),COLORFFFF00;
[/code]

页: [1]