内容发布更新时间 : 2024/12/22 10:02:19星期一 下面是文章的全部内容请认真阅读。
通达信平台突破主图指标公式
DRAWGBK(OPEN>0,RGB(33,47,58),RGB(0,0,0),0,'02',0);{标缺口}
LL:=REF(L,1);HH:=REF(H,1);上跳:=L>HH;下跳:=H<LL;
STICKLINE(L>REF(H,1),L,REF(H,1),3.1,-1),COLORRED;
STICKLINE(REF(L,1)>H,REF(L,1),H,3.1,-1),COLORGREEN;{K线} A19:=1; {灰色}
STICKLINE((OPEN >= (CLOSE * A19)),HIGH,LOW,0,0),COLOR909090;
STICKLINE((OPEN >= (CLOSE *
A19)),CLOSE,OPEN,3.1,0),COLOR606060;
STICKLINE((OPEN >= (CLOSE * A19)),CLOSE,OPEN,2.1,0),COLOR707070;
STICKLINE((OPEN >= (CLOSE * A19)),CLOSE,OPEN,1.2,0),COLOR808080;
STICKLINE((OPEN >= (CLOSE * A19)),CLOSE,OPEN,0.2,0),COLOR909090;
STICKLINE((OPEN <= (CLOSE * A19)),HIGH,LOW,0,0),COLOR666B6F;
STICKLINE((CLOSE > (OPEN *
A19)),CLOSE,OPEN,3.1,1),COLOR666B6F;{涨停-红色}
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.5,C,O,3.1,0),COLOR0000CC;
STICKLINE(ZDF>9.5,C,O,2.1,0),COLOR0000DD;
STICKLINE(ZDF>9.5,C,O,1.2,0),COLOR0000EE;
STICKLINE(ZDF>9.5,C,O,0.2,0),COLOR0000FF;
STICKLINE(ZDF>9.5,HIGH,LOW,0 ,0),COLOR0000FF;
{跌停-绿色}
STICKLINE(ZDF<-9.9,O,C,3.1,0),COLOR66CC66;
STICKLINE(ZDF<-9.9,O,C,2.1,0),COLOR77DD77;
STICKLINE(ZDF<-9.9,O,C,1.2,0),COLOR88EE88;
STICKLINE(ZDF<-9.9,O,C,0.2,0),COLOR99FF99;
STICKLINE(ZDF<-9.9,HIGH,LOW,0 ,0),COLOR99FF99;
{ST或非ST涨跌停}
{ST涨停-红色}