K线解说
SHOPEN:=OPEN;
SHHIGH:=HIGH;
SHLOW:=LOW;
SHCLOSE:=CLOSE;
SHAMOUNT:=AMOUNT;
SHVOL:=VOL;
STICKLINE(SHOPEN>=SHCLOSE,SHCLOSE,SHOPEN,7,0),colorFF2020;
STICKLINE(SHOPEN>=SHCLOSE,SHCLOSE,SHOPEN,4,0),colorFF2020;
STICKLINE(SHOPEN>=SHCLOSE,SHCLOSE,SHOPEN,2,0),colorFFFF00;
STICKLINE(SHCLOSE>SHOPEN,SHCLOSE,SHOPEN,7,0),color2020FF;
STICKLINE(SHCLOSE>SHOPEN,SHCLOSE,SHOPEN,4,0),colorB0B0FF;
STICKLINE(SHCLOSE>SHOPEN,SHCLOSE,SHOPEN,2,0),colorFFFF;
STICKLINE(SHCLOSE>SHOPEN,SHOPEN,SHLOW,0.5,0),colorFFFF;
STICKLINE(SHCLOSE>SHOPEN,SHCLOSE,SHHIGH,0.5,0),colorFFFF;
STICKLINE(SHOPEN>=SHCLOSE,SHCLOSE,SHLOW,0.5,0),colorFFFF80;
STICKLINE(SHOPEN>=SHCLOSE,SHOPEN,SHHIGH,0.5,0),colorFFFF80;
STICKLINE(SHCLOSE=SHOPEN AND SHCLOSE>REF(SHCLOSE,1),SHCLOSE,SHOPEN,7,0),color2020FF;
STICKLINE(SHCLOSE=SHOPEN AND SHCLOSE>REF(SHCLOSE,1),SHCLOSE,SHHIGH,0.5,0),color2020FF;
STICKLINE(SHCLOSE=SHOPEN AND SHCLOSE>REF(SHCLOSE,1),SHOPEN,SHLOW,0.5,0),color2020FF;
CB:=IF(SHCLOSE-SHAMOUNT/SHVOL/100>100,(3*SHCLOSE+2*SHOPEN+SHHIGH+SHLOW)/7,SHAMOUNT/SHVOL/100);
DRAWICON(CB>0,CB,15);
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:BBI+3*STD(BBI,10);
DWN:BBI-3*STD(BBI,10);
EXPLAINEX(VOL>0,'当日价咯重心:',SHAMOUNT/SHVOL/100,2,0);
EXPLAINEX(VOL>0,'3日价咯重心:',SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100,2,0);
EXPLAINEX(VOL>0,'收盘价:',CLOSE,2,0);
EXPLAIN(SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100>REF(SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100,1),'重心上移'),colorFF;
EXPLAIN(SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100<REF(SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100,1),'重心下移'),colorFF00;
EXPLAIN(CLOSE>SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100,'收盘价咯在3日重心以上'),colorFF;
EXPLAIN(CLOSE<SUM(SHAMOUNT,3)/SUM(SHVOL,3)/100,'收盘价咯在3日重心以下'),colorFF00;
J12:=HIGH-(HIGH-LOW)/3;
J23:=LOW+(HIGH-LOW)/3;
EXPLAIN(IF(CLOSE=OPEN,1,0)+IF(CLOSE>=J12,1,0)+IF(CLOSE<=J23,1,0)>1,'K线解说:极端行情,在未来的几日内有85%的机会变更方向'),colorFF00FF;
EXPLAIN(CLOSE>J23 AND CLOSE<J12 AND OPEN>J23 AND OPEN<J12,'K线解说:中性行情,多空双方都未能取得当日行情主动性的控制权'),colorFFFF00;
EXPLAIN(CLOSE>=J12 AND OPEN<=J23,'K线解说:爬升行情,整个交易期间都有买方主导'),colorFF00FF;
EXPLAIN(OPEN<=J12 AND OPEN>=J23 AND CLOSE>J12,'K线解说:爬升行情,信息较少,但收盘期间是买方主导,其他未知'),colorFF00FF;
EXPLAIN(OPEN<=J23 AND CLOSE<=J12 AND CLOSE>=J23,'K线解说:爬升行情,信息最少,买方确实把收盘价拉升到开盘价之上,卖方却也主导一段行情把价咯压低至最高价之下, ,然而我们不知道是谁主导最后的行情'),colorFF0000;
EXPLAIN(CLOSE<=J23 AND OPEN>=J12,'K线解说:漂流行情,整个交易期间都有卖方主导'),colorFF00;
EXPLAIN(OPEN<=J12 AND OPEN>=J23 AND CLOSE<J23,'K线解说:漂流行情,信息较少,但收盘期间是卖方主导,其他未知'),colorFF00;
EXPLAIN(OPEN>=J12 AND CLOSE<=J12 AND CLOSE>=J23,'K线解说:漂流行情,信息最少,卖方确实把收盘价压至到开盘价之下,买方却也主导一段行情把价咯拉升至最低价之上, ,然而我们不知道是谁主导最后的行情'),colorFF0000;
EXPLAIN(SHAMOUNT/SHVOL/100>REF(HIGH,1),'上涨趋势'),colorFF;
EXPLAIN(SHAMOUNT/SHVOL/100<REF(LOW,1),'下跌趋势'),colorFF00; |