红色柱状线持股;绿色柱状线持币
属于趋势指标
//波段标识
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
买:ZIG(3,10);
卖:MA(买,2);
DRAWICON(CROSS(买,卖),L-CLOSE/15,"buy");
DRAWICON(CROSS(卖,买),H+CLOSE/15,"sell");
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorred;
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,LOW,0,0),colorred;
STICKLINE(买>卖 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorred;
STICKLINE(买>卖 AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorred;
STICKLINE(买>卖 AND CLOSE<OPEN,LOW,HIGH,0,0),colorred;
STICKLINE(买<卖 AND CLOSE<=OPEN,OPEN,CLOSE,10,0),colorcyan;
STICKLINE(买<卖 AND CLOSE<=OPEN,LOW,HIGH,0,0),colorcyan;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,CLOSE,10,1),colorcyan;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,LOW,0,0),colorcyan;
STICKLINE(买<卖 AND CLOSE>OPEN,CLOSE,HIGH,0,0),colorcyan;
STICKLINE(买=卖 AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorblue;
STICKLINE(买=卖 AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;
STICKLINE(买=卖 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;
STICKLINE(买=卖 AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorblue;
STICKLINE(买=卖 AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;
M5:MA(CLOSE,5),colorgreen;
M55:MA(CLOSE,55),LINETHICK2,coloryellow;
M555:MA(CLOSE,55)*1.5,LINETHICK2,colormagenta;
//显示操盘纪律
DRAWTEXT_FIX(1,0.10,0.03,0,'基本面'),colorwhite;
DRAWTEXT_FIX(1,0.10,0.1,0,'垄断(市场技术稀缺)'),COLORCC66FF;
DRAWTEXT_FIX(1,0.10,0.15,0,'最终商品'),COLORCC66FF;
DRAWTEXT_FIX(1,0.10,0.2,0,'面向大众(成长性)'),COLORCC66FF;
DRAWTEXT_FIX(1,0.10,0.25,0,'龙头不死,跟风无效'),COLORCC66FF;
DRAWTEXT_FIX(1,0.08,0.30,0,'【波段-中线】前期缓涨-中间缩量洗盘-放量突破BOLL上轨-5日线在55线上且不太多; '),coloryellow;
DRAWTEXT_FIX(1,0.08,0.35,0,' 若当天涨幅过大--5%为界,则次日逢低进入。若涨幅不大,可直接进入'),coloryellow;
DRAWTEXT_FIX(1,0.08,0.40,0,'【逆袭-短线】快进快出,底部反转或大涨后大跌次日逆袭,可跟进。周线逆袭也可进'),coloryellow;
DRAWTEXT_FIX(1,0.08,0.45,0,'心理倒错:赢利时做短线,亏损时做长线。大涨时贪婪,大跌时恐惧'),COLORCC66FF;
DRAWTEXT_FIX(1,0.23,0.03,0,'技术面'),colorwhite;
DRAWTEXT_FIX(1,0.23,0.1,0,'挖坑波段'),COLORCC66FF;
DRAWTEXT_FIX(1,0.23,0.15,0,'大跌反转'),COLORCC66FF;
DRAWTEXT_FIX(1,0.23,0.2,0,'底部周线'),COLORCC66FF;
DRAWTEXT_FIX(1,0.23,0.25,0,'五升三降'),COLORCC66FF;
DRAWTEXT_FIX(1,0.30,0.03,0,'操盘纪律'),colorwhite;
DRAWTEXT_FIX(1,0.30,0.1,0,'保住本金'),COLORCC66FF;
DRAWTEXT_FIX(1,0.30,0.17,0,'分仓介入'),COLORCC66FF;
DRAWTEXT_FIX(1,0.30,0.24,0,'铁定纪律'),COLORCC66FF;