DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);
KK:=IF(C>=O AND (C>=REF(C,1) OR REF(C,1)>=REF(O,1)),1,IF(C<O AND (C<REF(O,1) OR REF(C,1)<REF(O,1)),-1,0));
红K1:=KK=1 AND C>=O;
红K2:=KK=1 AND C<O;
红K3:=KK=0 AND C>=O;
红K:=红K1 OR 红K2 OR 红K3;
DIFF:=(EMA(C,26)-EMA(C,52));
DEA:=EMA(DIFF,52);
MACD:=(2*(DIFF-DEA));
DIF:=(EMA(C,26)-EMA(C,52));
ESS:=EMA(C,26);
EGG:=EMA(C,52);
西楚霸王:=(((((((((52-1)*(26+1))*EGG)*1)-((((52+1)*(26-1))*ESS)*1))+(((26+1)*(52+1))*DIF))*1)/((2*52)-(2*26)))*1),COLORYELLOW;
霸王线多头:=西楚霸王>=REF(西楚霸王,1);
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
买入:=CROSS(K,D);
霸王举鼎:红K AND 霸王线多头 AND 买入,LINETHICK2;