通达信《涨跌幅度妙用》优化 副图源码 简单说明

{N 1 250 5}
涨跌幅度:=(C-OPEN)/OPEN*100;
涨幅度:=IF(涨跌幅度>=0,涨跌幅度,0),NODRAW;
跌幅度:=IF(涨跌幅度<0,涨跌幅度,0),NODRAW;
涨幅:SUM(涨幅度,N),COLORRED;
跌幅:-SUM(跌幅度,N),COLORGREEN;
 0;
 DRAWBAND(涨幅,RGB(200,0,200),跌幅,RGB(200,200,200));
 DRAWTEXT_FIX(1,0.4,0.05,0,'【均线多头时使用效果较好,横盘及下跌时慎用】'),COLOR00FFFF;