现在的大盘就像当年楚汉之争,正如火如涂,特奉上本人精心改制的“霸王别姬”主图指标,
本指标改自飞狐版,犹如历史再现,全程操作按提示,简单易懂,抄月殳其实没那么难
记得加“关注”哦,(赠人玫瑰,手留余香)
公式要在4.17公式管理器中才可以导入使用
{霸王别姬}
RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=((3 * K12) - (2 * D12));
RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
生当为人杰:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24)))),LINETHICK2,COLORFFFFFF;
死亦为鬼雄:=IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),LINETHICK2,COLORFFEEFF;
剑在手:EMA(CLOSE,3),COLORFFFF77;
悲欢共:EMA(CLOSE,5),COLORFF00EE;
生死同:EMA(悲欢共,5),COLORFFFFFF;
VARF1:=(COUNT(CROSS(剑在手,生死同),2) = 1);
VARF2:=(COUNT(CROSS(悲欢共,生死同),2) = 1);
ZAI:=FILTER((VARF1 AND VARF2),2);
DRAWTEXT(ZAI,生死同,' →◆●¤汉兵已掠地'),COLORFFFFFF;
VV2:=REF(CLOSE,1);
VV3:=((SMA((CLOSE - VV2),6,1) / SMA(ABS((CLOSE - VV2)),6,1)) * 100);
DRAWICON(((REF(VV3,1) > 81) AND (VV3 < 80)),HIGH,2);
DRAWTEXT(((REF(VV3,1) > 81) AND (VV3 < 80)),HIGH,' →◆●四面楚歌声↓'),COLORFFFFFF;
VAR1:=((((HIGH + LOW) + OPEN) + (2 * CLOSE)) / 5);
VAR2:=REF(VAR1,1);
VAR3:=((SMA(MAX((VAR1 - VAR2),0),10,1) / SMA(ABS((VAR1 - VAR2)),10,1)) * 100);
HY3:=IF(((((COUNT((VAR3 < 20),5) >= 1) AND (COUNT((VAR1 = LLV(VAR1,10)),10) >= 1)) AND (CLOSE >= (OPEN * 1.038))) AND (VOL > (MA(VOL,5) * 1.2))),1,0);
DRAWTEXT(HY3,LOW,' →◆●▲四方云动!!'),COLORFFDDDD;
S:=(MA(VOL,5) / MA(VOL,60));
BIAS:=MA(S,5);
F:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);
LC:=MA(S,121);
RSV1:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);
K1:=SMA(RSV1,15,1);
D1:=SMA(K1,15,1);
J1:=((3 * K1) - (2 * D1));
RSI:=REF(CLOSE,1);
S1:=((SMA(MAX((CLOSE - RSI),0),6,1) / SMA(ABS((CLOSE - RSI)),6,1)) * 100);
DRAWTEXT(CROSS(84,S1),H*0.99,' ←←◆●豪情天纵!!◆●'),COLORFFFFEE;
VAR4:=IF(((((J < 11) AND (F > (0 - 11))) AND CROSS(S,LC)) AND ((S - LC) > 0.01)),2,0);
DRAWTEXT((VAR4 = 2),LOW,' →◆● 四方云动!! ◆● '),COLORFF0000;
VAR1Q:=IF(((YEAR = 2999) AND (MONTH > 12)),0,1);
垓下:(MA(((AMOUNT / VOL) / 100),10.2) * VAR1Q),POINTDOT,LINETHICK2,COLORFFFFFF;
灞上:(MA(((AMOUNT / VOL) / 100),41) * VAR1Q),LINETHICK2,COLORFFFF33;
江东:(MA(((AMOUNT / VOL) / 100),118) * VAR1Q),LINETHICK2,COLORFF00FF;
VAR2Q:=(EMA((EMA(((AMOUNT / VOL) / 100),5) * 1.062),5) * 1.062);
VAR3Q:=(EMA((EMA(((AMOUNT / VOL) / 100),3) * 0.538),3) * 0.538);
DRAWTEXT((CLOSE > VAR2Q),CLOSE,'←←←暂别离'),COLORFF0000;
DRAWTEXT((CLOSE < VAR3Q),CLOSE,'←←←且偷欢'),COLORFF00EE;
JJ:=(((CLOSE > 垓下) AND ABS(((垓下 - 江东) <= 1))) AND CROSS(垓下,灞上));
DRAWTEXT(JJ,LOW,'←←←兵变举事'),COLORFFFF00;
H1A:=((((HIGH + LOW) + CLOSE) + OPEN) / 4);
VAR1R:=REF(CLOSE,1);
VAR2R:=((SMA(MAX((CLOSE - VAR1R),0),6,1) / SMA(ABS((CLOSE - VAR1R)),6,1)) * 100);
DRAWTEXT(CROSS(84,VAR2R),(HIGH * 1.01),'←←←恨别离!! '),COLORFFFF33;
DRAWICON(CROSS(84,VAR2R),(HIGH * 1.03),2);
DRAWICON(CROSS(((REF(HIGH,1) + REF(LOW,1)) / 2),(MA(CLOSE,20) + (2 * STD(CLOSE,20)))),(HIGH * 1.03),2);
H1A1:=(((HIGH + LOW) + CLOSE) / 3);
VAR11:=(((((2 * CLOSE) + HIGH) + LOW) + OPEN) / 5);
VAR12:=LLV(LOW,5);
VAR13:=HHV(HIGH,4);
VAR14:=EMA((((VAR11 - VAR12) / (VAR13 - VAR12)) * 100),4);
VAR5:=EMA(((0.667 * REF(VAR14,1)) + (0.333 * VAR14)),2);
DRAWTEXT((CROSS(VAR14,VAR5) AND (VAR14 < 40)),LOW,'至今思项羽'),COLOR10FF10;
VAR1E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) * 100);
VAR2E:=((CLOSE > OPEN) AND ((OPEN - LOW) > (HIGH - CLOSE)));
VAR3E:=((REF(VAR1E,1) < (0 - 20)) AND VAR2E);
JJE:=(((REF(VAR1E,1) < (0 - 20)) AND (CLOSE > OPEN)) AND ((((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 1000) > 20));
VAR9E:=FILTER((VAR3E OR JJE),3);
VAR7E:=((OPEN > CLOSE) AND ((HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)) > (IF((OPEN < CLOSE),OPEN,CLOSE) - LOW)));
VAR8E:=((REF(VAR1E,1) > ABS((0 - 20))) AND VAR7E);
VAR10E:=(((REF(VAR1E,1) > ABS((0 - 20))) AND (CLOSE < OPEN)) AND ((((REF(CLOSE,1) - CLOSE) / REF(CLOSE,1)) * 1000) > 20));
VARC:=FILTER((VAR8E OR VAR10E),3);
VARAE:=((REF(VAR1E,1) < (0 - 13)) AND VAR2E);
VARBE:=(((REF(VAR1E,1) < (0 - 13)) AND (CLOSE > OPEN)) AND ((((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 1000) > 20));
VARD:=FILTER((VARAE OR VARBE),3);
VARE:=((REF(VAR1E,1) > ABS((0 - 13))) AND VAR7E);
VARF:=(((REF(VAR1E,1) > ABS((0 - 13))) AND (CLOSE < OPEN)) AND ((((REF(CLOSE,1) - CLOSE) / REF(CLOSE,1)) * 1000) > 20));
VAR15:=FILTER((VARE OR VARF),3);
DRAWICON(((VAR9E* VAR1E) > 0),LOW,1);
DRAWICON(((VARC * VAR1E) > 0),HIGH,2);
DRAWTEXT(((VARD * VAR1E) > 0),(1.02 * REF(CLOSE,1)),'积极关注'),COLORFFFFFF;
DRAWTEXT(((VAR15 * VAR1E) > 0),(0.99 * REF(CLOSE,1)),'←←←逃离苦海'),COLOR1010FF;
VAR11E:=(((((2 * CLOSE) + HIGH) + LOW) + OPEN) / 5);
VAR12E:=LLV(LOW,5);
VAR13E:=HHV(HIGH,4);
VAR14E:=EMA((((VAR11E - VAR12E) / (VAR13E - VAR12E)) * 100),4);
VAR5R:=EMA(((0.667 * REF(VAR14E,1)) + (0.333 * VAR14E)),2);
DRAWTEXT((CROSS(VAR14,VAR5R) AND (VAR14E < 40)),LOW,'至今思项羽'),COLOR10FF10;
VAR16:=(EMA(VAR11E,13) - EMA(VAR11E,34));
VAR17:=EMA(VAR16,5);
VAR18:=(((0 - 2) * (VAR16 - VAR17)) * 3.8);
DRAWTEXT((CROSS(VAR18,MA(VAR18,3)) AND (VAR16 > VAR17)),HIGH,'情天纵!!'),COLOR10FFFF;
VAR19:=((((2 * CLOSE) + LOW) + HIGH) / 4);
VAR1R1:=EMA(CLOSE,8);
VAR2R1:=EMA(CLOSE,20);
STICKLINE((VAR1R1 > VAR2R1),VAR2R1,VAR1R1,2,1),COLORFFFF00;
VAR3S:=SMA(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),14,1);
JJS:=(HIGH - REF(HIGH,1));
VAR9S:=(REF(LOW,1) - LOW);
VAR7S:=SMA(IF(((JJS > 0) AND (JJS > VAR9S)),JJS,0),12,1);
VAR8S:=SMA(IF(((VAR9S > 0) AND (VAR9S > JJS)),VAR9S,0),12,1);
VAR10S:=((VAR7S * 100) / VAR3S);
VARCS:=((VAR8S * 100) / VAR3S);
VARAS:=SMA(((ABS((VARCS - VAR10S)) / (VARCS + VAR10S)) * 100),12,1);
VARBS:=((VARAS + REF(VARAS,5)) / 2);
VARDS:=((SUM((HIGH - OPEN),12) / SUM((OPEN - LOW),12)) * 100);
VARES:=((SUM(MAX(0,(HIGH - REF(CLOSE,1))),12) / SUM(MAX(0,(REF(CLOSE,1) - LOW)),12)) * 100);
VARFS:=((AMOUNT / VOL) / 100);
VAR15S:=(((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7);
VAR11S:=((SUM(AMOUNT,5) / VARFS) / 100);
VAR12S:=((SUM(AMOUNT,13) / VARFS) / 100);
VAR13S:=((SUM(AMOUNT,34) / VARFS) / 100);
VAR14S:=((SUM(AMOUNT,209) / VARFS) / 100);
VAR5S:=(((REF(VOL,1) + REF(VOL,2)) + REF(VOL,3)) + REF(VOL,4));
VAR16S:=(VAR5S / CAPITAL);
VAR17S:=(((VOL / CAPITAL) * VAR15S) + (VAR16S * REF(VARFS,1)));
CYC5:=IF((DATE < 1500501),DMA(VAR15S,(VOL / VAR11S)),0);
CYC13:=IF((DATE < 1500501),DMA(VAR15S,(VOL / VAR12S)),0);
CYC34:=IF((DATE < 1500501),DMA(VAR15S,(VOL / VAR13S)),0);
CYC无穷大:=IF((DATE < 1500501),DMA(VAR15,(VOL / CAPITAL)),0);
VAR18S:=((100 * (CLOSE - CYC5)) / CYC5);
VAR19S:=((100 * (CL |