联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

简简单单两条线源码——借用“中88888”的模板理念

2016-8-3 13:47:33点击:

DRAWGBK(C>0,RGB(88,50,140),RGB(10,50,10),0,'1',0);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

MA120:MA(CLOSE,120)COLOR54FCFC,DOTLINE;
MA250:MA(CLOSE,250)COLORMAGENTA,DOTLINE;

DRAWTEXT_FIX(1,0.1,0,0, '【浅蓝注意】'),COLORLIBLUE;
DRAWTEXT_FIX(1,0.2,0,0, '【红色上升】'),COLOR0000A8;
DRAWTEXT_FIX(1,0.3,0,0, '【绿色调整】'),COLOR00A800;
DRAWTEXT_FIX(1,0.4,0,0, '【蓝色下跌】'),COLORA80000;
DRAWTEXT_FIX(1,0.5,0,0, '【黄色震荡】'),COLOR54FCFC;

STICKLINE(C=O,H,L,0,0),COLORCYAN;
STICKLINE(C=O,C,O,3,0),COLORCYAN;
STICKLINE(C>O,H,C,0,0 ),COLORCYAN;
STICKLINE(C>O,L,O,0,0 ),COLORCYAN;
STICKLINE(C>O,O,C,3,1 ),COLORCYAN;
STICKLINE(OPEN>CLOSE,H,L,0,0 ),COLORCYAN;
STICKLINE(OPEN>CLOSE,O,C,3,0 ),COLORCYAN;

STICKLINE(C<MA120 AND OPEN>=CLOSE,H,L,0,0 ),COLORCYAN;
STICKLINE(C<MA120 AND OPEN>=CLOSE,O,C,3,0),COLORCYAN;
STICKLINE(C<MA120 AND OPEN<CLOSE,H,C,0,0 ),COLORCYAN;
STICKLINE(C<MA120 AND OPEN<CLOSE,O,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND OPEN<CLOSE,O,C,3,1 ),COLORCYAN;

STICKLINE(C>MA120 AND C>O,H,C,0,0 ),COLOR0000A8;
STICKLINE(C>MA120 AND C>O,L,O,0,0 ),COLOR0000A8;
STICKLINE(C>MA120 AND C>O,O,C,3,1),COLOR0000A8;
STICKLINE(C>MA120 AND C<=O,H,L,0,0 ),COLOR0000A8;
STICKLINE(C>MA120 AND C<=O,O,C,3,0),COLOR0000A8;

STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,H,C,0,0),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,L,0,0),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,C,3,1),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,H,L,0,0),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,O,C,3,0),COLOR0000A8;

STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;

STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;

STICKLINE(MA120>MA250 AND C>MA120 AND C>O,H,C,0,0),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,L,0,0),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,C,3,1),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,H,L,0,0),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,O,C,3,0),COLOR0000A8;

STICKLINE(MA120>MA250 AND C<MA120 AND C>O,H,C,0,0),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,L,0,0),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,C,3,1),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,H,L,0,0),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,O,C,3,0),COLOR00A800;

STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;

STICKLINE(C<MA250 AND C>O,H,C,0,0),COLORA80000;
STICKLINE(C<MA250 AND C>O,O,L,0,0),COLORA80000;
STICKLINE(C<MA250 AND C>O,O,C,3,1),COLORA80000;
STICKLINE(C<MA250 AND C<=O,H,L,0,0),COLORA80000;
STICKLINE(C<MA250 AND C<=O,O,C,3,0),COLORA80000;

STICKLINE(C>MA120 AND MA120<MA250 AND C>O,H,C,0,0),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,L,0,0),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,C,3,1),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,H,L,0,0),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,O,C,3,0),COLOR54FCFC;