「翔博精选指标」牛熊时段 五彩K线(通达信公式 主图 源码 测试
2021-12-12原创 编 辑:翔博软件
{五彩K线-牛熊时段}
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;
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;