{八彩K线}
LC:=REF(CLOSE,1);
AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1);
SI:=16*X/R*MAX(AA,BB);
ASI1:=SUM(SI,20);
ASI:=(ASI1-REF(ASI1,1))/REF(ASI,1);
PP:=ASI*REF(ASI,1)*REF(ASI,2)*REF(ASI,3)*REF(ASI,4);
QQ:=POW(ABS(PP),1/5);
XX:=IF(PP>0,QQ,-QQ);
WO:=MA(XX,20);
DE:=MA(XX,10);
ASIP:=SUM(SI,20);
LI:=100*WMA(ASIP,15);
XIAO:=100*WMA(ASIP,7);
UU:=MAX(CLOSE,OPEN);
NN:=MIN(CLOSE,OPEN);
BO:=CLOSE>=OPEN;
PO:=CLOSE
STICKLINE(WO>=DE AND LI>=XIAO AND BO,NN,UU,8,0),colorFF;
STICKLINE(WO>=DE AND LI>=XIAO AND BO,UU,HIGH,1,0),colorFF;
STICKLINE(WO>=DE AND LI>=XIAO AND BO,LOW,NN,1,0),colorFF;
STICKLINE(WO<=DE AND LI>=XIAO AND BO,NN,UU,8,0),colorFF00;
STICKLINE(WO<=DE AND LI>=XIAO AND BO,UU,HIGH,1,0),colorFF00;
STICKLINE(WO<=DE AND LI>=XIAO AND BO,LOW,NN,1,0),colorFF00;
STICKLINE(WO>=DE AND LI<=XIAO AND BO,NN,UU,8,0),colorFF0000;
STICKLINE(WO>=DE AND LI<=XIAO AND BO,UU,HIGH,1,0),colorFF0000;
STICKLINE(WO>=DE AND LI<=XIAO AND BO,LOW,NN,1,0),colorFF0000;
STICKLINE(WO<=DE AND LI<=XIAO AND BO,NN,UU,8,0),color808080;
STICKLINE(WO<=DE AND LI<=XIAO AND BO,UU,HIGH,1,0),color808080;
STICKLINE(WO<=DE AND LI<=XIAO AND BO,LOW,NN,1,0),color808080;
STICKLINE(WO>=DE AND LI>=XIAO AND PO,NN,UU,8,0),color8280;
STICKLINE(WO>=DE AND LI>=XIAO AND PO,UU,HIGH,1,0),color8280;
STICKLINE(WO>=DE AND LI>=XIAO AND PO,LOW,NN,1,0),color8280;
STICKLINE(WO<=DE AND LI>=XIAO AND PO,NN,UU,8,0),color820080;
STICKLINE(WO<=DE AND LI>=XIAO AND PO,UU,HIGH,1,0),color820080;
STICKLINE(WO<=DE AND LI>=XIAO AND PO,LOW,NN,1,0),color820080;
STICKLINE(WO>=DE AND LI<=XIAO AND PO,NN,UU,8,0),color828200;
STICKLINE(WO>=DE AND LI<=XIAO AND PO,UU,HIGH,1,0),color828200;
STICKLINE(WO>=DE AND LI<=XIAO AND PO,LOW,NN,1,0),color828200;
STICKLINE(WO<=DE AND LI<=XIAO AND PO,NN,UU,8,0),colorFFFFFF;
STICKLINE(WO<=DE AND LI<=XIAO AND PO,UU,HIGH,1,0),colorFFFFFF;
STICKLINE(WO<=DE AND LI<=XIAO AND PO,LOW,NN,1,0),colorFFFFFF;
DRAWTEXT(FILTER(COUNT(CROSS(XIAO,LI),10)>=2 AND CROSS(XIAO,LI),10),LOW,'');
WMA(CLOSE,13);
WMA(CLOSE,21);
WMA(CLOSE,34);
WMA(CLOSE,55);
WMA(CLOSE,89);
WMA(CLOSE,144);
WMA(CLOSE,233);
WMA(CLOSE,377);
XA1:=MA(VOL,10);
XA2:=MA(VOL,20);
A12:=XA1>=XA2;
A21:=XA1
VA:=(VOL-REF(VOL,1))/REF(VOL,1);
VP:=VOL*REF(VOL,1)*REF(VOL,2)*REF(VOL,3)*REF(VOL,4);
VQ:=POW(ABS(VP),1/5);
VX:=IF(VP>0,VQ,-VQ);
VO:=MA(XX,20);
VE:=MA(XX,10);
OE:=VO>=VE;
EO:=VO
EXPLAIN(CLOSE>0,'这是杨文亮根据价格,量的力度和价格和量的趋势力度写的解盘公式,主要对八彩k线起辅助作用');
EXPLAIN(CLOSE>0,' 价格和量趋势力度指价格和量变化的快慢速率,具体指价格和量保持增长和下降速率的变化快慢,价格和量 力度指价格和量相对与某一特定区域的强弱。以上趋势力度和力度都取的平均值。今天的解盘:');
EXPLAIN(WO>=DE AND LI>=XIAO AND BO AND A12 AND OE,'今天收阳线,趋势力度弱,价格力度弱,量力度强,量趋势力度强, 预计调整,后势价格有转强可能,如果在高位和下降通道中须警惕,逃跑为妙');
EXPLAIN(WO>=DE AND LI>=XIAO AND BO AND A12 AND EO,'今天收阳线,趋势力度弱,价格力度弱,量力度强,量趋势力度弱, 后势价格和量趋势同时减弱,跌的可能性大');
EXPLAIN(WO>=DE AND LI>=XIAO AND BO AND A21 AND OE,'今天收阳线,趋势力度弱,价格力度弱,量力度弱,量趋势力度强, 短期有上涨要求,后势跌的可能性大');
EXPLAIN(WO>=DE AND LI>=XIAO AND BO AND A21 AND EO,'今天收阳线,趋势力度弱,价格力度弱,量力度弱,量趋势力度弱, 短期下跌可能性大,但注意同时弱的时间不会太久,中期可能有反弹或横盘');
EXPLAIN(WO<=DE AND LI>=XIAO AND BO AND A12 AND OE,'今天收阳线,趋势力度强,价格力度弱,量力度强,量趋势力度强, 价格有上升要求,量价配合良好');
EXPLAIN(WO<=DE AND LI>=XIAO AND BO AND A12 AND EO,'今天收阳线,趋势力度强,价格力度弱,量力度强,量趋势力度弱, 短期价格可能会上升,但要注意量的情况,价格的力度也在减弱,最好不要追高,如在底部量转强可关注');
EXPLAIN(WO<=DE AND LI>=XIAO AND BO AND A21 AND OE,'今天收阳线,趋势力度强,价格力度弱,量力度弱,量趋势力度强, 量趋势强,如果在底部可以关注,密切注意量力度的转强和价格转强');
EXPLAIN(WO<=DE AND LI>=XIAO AND BO AND A21 AND EO,'今天收阳线,趋势力度强,价格力度弱,量力度弱,量趋势力度弱, 后势有转强或反弹的趋势,短中期最大的可能是盘整和下跌,价格力度和量力度同时强时可关注');
EXPLAIN(WO>=DE AND LI<=XIAO AND BO AND A12 AND OE,'今天收阳线,趋势力度弱,价格力度强,量力度强,量趋势力度强, 价格有继续升的要求,在上升通道中和极强势中可以持续持股但趋势减弱,中期可能盘整,如在高位,量趋势和力度减弱时要格外小心');
EXPLAIN(WO>=DE AND LI<=XIAO AND BO AND A12 AND EO,'今天收阳线,趋势力度弱,价格力度强,量力度强,量趋势力度弱, 盘整可能性大,短期可能冲高,但要关注量趋势和价趋势的变化,在高位量力度转弱是要小心');
EXPLAIN(WO>=DE AND LI<=XIAO AND BO AND A21 AND OE,'今天收阳线,趋势力度弱,价格力度强,量力度弱,量趋势力度强, 短期有上升的要求,量如果跟上,可能会有一段上升幅度,如果量趋势和量力度同时转弱要小心');
EXPLAIN(WO>=DE AND LI<=XIAO AND BO AND A21 AND EO,'今天收阳线,趋势力度弱,价格力度强,量力度强,量趋势力度弱, 价量同时上升,短期有上升的要求,但中期盘整可能性很大');
EXPLAIN(WO<=DE AND LI<=XIAO AND BO AND A12 AND OE,'今天收阳线,趋势力度强,价格力度强,量力度强,量趋势力度强, 四者同强,上升,但要注意亢龙有悔,这种情况一般不会持续太久,中期盘整可能性大');
EXPLAIN(WO<=DE AND LI<=XIAO AND BO AND A12 AND EO,'今天收阳线,趋势力度强,价格力度强,量力度强,量趋势力度弱, 量趋势力度和量开始减弱,一般情况盘整的可能居多,在上升通道和极强势中可以持续持股,量减弱在高位跌的可 能非常大,要万分小心');
EXPLAIN(WO<=DE AND LI<=XIAO AND BO AND A21 AND OE,'今天收阳线,趋势力度强,价格力度强,量力度弱,量趋势力度强, 量力度减弱,趋势增强,量转强可能性很大,后势看好,');
EXPLAIN(WO<=DE AND LI<=XIAO AND BO AND A21 AND EO,'今天收阳线,趋势力度强,价格力度强,量力度弱,量趋势力度弱, 量趋势弱,后势量很可能减弱,一般情况盘整的可能性很大,在高位量减弱价不升下跌的可能很大');
EXPLAIN(WO>=DE AND LI>=XIAO AND PO AND A12 AND OE,'今天收阴线,趋势力度弱,价格力度弱,量力度强,量趋势力度强, 收阴线,但量已经转强,短期跌继续的可能性很大,中期有可能盘整或反弹,高位跌时放量要小心');
EXPLAIN(WO>=DE AND LI>=XIAO AND PO AND A12 AND EO,'今天收阴线,趋势力度弱,价格力度弱,量力度强,量趋势力度弱, 后势跌的可能性大,如果量趋势和价转强,反弹也许不远');
EXPLAIN(WO>=DE AND LI>=XIAO AND PO AND A21 AND OE,'今天收阴线,趋势力度弱,价格力度弱,量力度弱,量趋势力度强, 短期跌,中期有复苏的迹象,如果量趋势强持续,量力度增强,有盘整或反弹可能');
EXPLAIN(WO>=DE AND LI>=XIAO AND PO AND A21 AND EO,'今天收阴线,趋势力度弱,价格力度弱,量力度弱,量趋势力度弱, 阴险且四者同弱,短期预计跌势继续,但物极必反,这种极弱的情况可能不会持续太久,关注量的变化');
EXPLAIN(WO<=DE AND LI>=XIAO AND PO AND A12 AND OE,'今天收阴线,趋势力度强,价格力度弱,量力度强,量趋势力度强, 后势强势盘整的可能性大,短期有上升的要求,');
EXPLAIN(WO<=DE AND LI>=XIAO AND PO AND A12 AND EO,'今天收阴线,趋势力度强,价格力度弱,量力度强,量趋势力度弱, 盘整的可能性大,价格有小幅上升的可能,能不能高于阴线实体和量的跟上是后势走强的关键');
EXPLAIN(WO<=DE AND LI>=XIAO AND PO AND A21 AND OE,'今天收阴线,趋势力度强,价格力度弱,量力度弱,量趋势力度强, 短期可能微涨,后势盘整可能性大,趋势的选择看量的强度和量趋势力度维持在强的时间');
EXPLAIN(WO<=DE AND LI>=XIAO AND PO AND A21 AND EO,'今天收阴线,趋势力度强,价格力度弱,量力度弱,量趋势力度弱, 后势继续跌的可能性很大,如果是顶部跌的初期,后一段跌幅可能很巨大');
EXPLAIN(WO>=DE AND LI<=XIAO AND PO AND A12 AND OE,'今天收阴线,趋势力度弱,价格力度强,量力度强,量趋势力度强, 后势看好,如果量力度和量趋势力度配合良好,后势升幅很可能可以继续');
EXPLAIN(WO>=DE AND LI<=XIAO AND PO AND A12 AND EO,'今天收阴线,趋势力度弱,价格力度强,量力度强,量趋势力度弱, 后势盘整可能性最大,选择方向的关键是量力度的维持');
EXPLAIN(WO>=DE AND LI<=XIAO AND PO AND A21 AND OE,'今天收阴线,趋势力度弱,价格力度强,量力度弱,量趋势力度强, 后势盘整,短期还有跌的动量,在底部时可关注量的放大');
EXPLAIN(WO>=DE AND LI<=XIAO AND PO AND A21 AND EO,'今天收阴线,趋势力度弱,价格力度强,量力度强,量趋势力度弱, 趋势减弱,短期有上升的要求,很大的可能是盘整和冲高回落');
EXPLAIN(WO<=DE AND LI<=XIAO AND PO AND A12 AND OE,'今天收阴线,趋势力度强,价格力度强,量力度强,量趋势力度强, 上涨中继的可能很大,不过四者皆强维持的时间不会太久,离调整或下跌也不远');
EXPLAIN(WO<=DE AND LI<=XIAO AND PO AND A12 AND EO,'今天收阴线,趋势力度强,价格力度强,量力度强,量趋势力度弱, 量趋势开始减弱,股价可能会微涨,中期看平或跌,');
EXPLAIN(WO<=DE AND LI<=XIAO AND PO AND A21 AND OE,'今天收阴线,趋势力度强,价格力度强,量力度弱,量趋势力度强, 收阴线,但后势看好,');
EXPLAIN(WO<=DE AND LI<=XIAO AND PO AND A21 AND EO,'今天收阴线,趋势力度强,价格力度强,量力度弱,量趋势力度弱, 盘整可能性大,中期量如果不跟上,下跌的可能很大');