指标编写学习论坛

标题: 大盘条形背景(例如周K线上升为红色,下跌为蓝)原码怎样表达? [打印本页]

作者: admin    时间: 2016-5-7 17:16
标题: 大盘条形背景(例如周K线上升为红色,下跌为蓝)原码怎样表达?
大盘条形背景(例如周K线上升为红色,下跌为蓝)原码怎样表达?
    正确答案:
      vertline(c>ma(c,5)),linethick8,color0099cc;
      AC:=C;
      AH:=H;
      AL:=L;
      AO:=O;
      STICKLINE(AC>=AO,AH,AC,1,0),color225588;
      STICKLINE(AC>=AO,AH,AC,0,0),color66ccff;
      STICKLINE(AC>=AO,AO,AL,1,0),color225588;
      STICKLINE(AC>=AO,AO,AL,0,0),color66ccff;

      STICKLINE(AC>AO,AC,AO,8,0),COLOR225588;
      STICKLINE(AC>AO,AC,AO,7,0),COLOR226699;
      STICKLINE(AC>AO,AC,AO,6,0),COLOR3377aa;
      STICKLINE(AC>AO,AC,AO,5,0),COLOR3388bb;
      STICKLINE(AC>AO,AC,AO,4,0),COLOR4499cc;
      STICKLINE(AC>AO,AC,AO,3,0),COLOR44aadd;
      STICKLINE(AC>AO,AC,AO,2,0),COLOR55bbee;
      STICKLINE(AC>AO,AC,AO,1,0),COLOR66ccff;

      STICKLINE(AC<=AO,AH,AC,1,0),color88...;
      STICKLINE(AC<=AO,AH,AC,0,0),colorffff00;
      STICKLINE(AC<=AO,AO,AL,1,0),color88...;
      STICKLINE(AC<=AO,AO,AL,0,0),colorffff00;

      STICKLINE(AC<=AO,AC,AO,8,0),COLOR88...;
      STICKLINE(AC<=AO,AC,AO,7,0),COLOR999900;
      STICKLINE(AC<=AO,AC,AO,6,0),COLORaaaa00;
      STICKLINE(AC<=AO,AC,AO,5,0),COLORbbbb00;
      STICKLINE(AC<=AO,AC,AO,4,0),COLORcccc00;
      STICKLINE(AC<=AO,AC,AO,3,0),COLORdddd00;
      STICKLINE(AC<=AO,AC,AO,2,0),COLOReeee00;
      STICKLINE(AC<=AO,AC,AO,1,0),COLORffff00;







欢迎光临 指标编写学习论坛 (http://shgm.net/) Powered by Discuz! X3.2