联盟短线主图--不是精品我不发,短线公式
{公称名称: 联盟短线主图}
input:P2(13,0,100),K8(55,6,99);
强势关注区:MA(CLOSE,P2),colorFF00;
A1:=((WINNER((CLOSE - ((CLOSE * 5) / 100))) - WINNER((CLOSE - ((CLOSE * 60) / 100)))) * 100);
PARTLINE((A1 > 50),强势关注区),LINETHICK2,colorFF;
DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,'散户联盟会员专用(www.fxjgsw.com)'),ALIGN4,colorCCFFFF;
RSV:=(((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
RSV24:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),POINTDOT,LINETHICK3,colorFFFF;
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
AA:=(0 - ((100 * (趋势线 - CLOSE)) / 趋势线));
AC:=EMA(AA,5);
STICKLINE((((CLOSE >= OPEN) AND (AA >= 0)) AND (AA < AC)),OPEN,CLOSE,4.3,0),colorFFFF;
STICKLINE((((OPEN > CLOSE) AND (AA >= 0)) AND (AA < AC)),CLOSE,OPEN,4.3,0),colorFFFF;
STICKLINE((((CLOSE >= OPEN) AND (AA >= 0)) AND (AA < AC)),CLOSE,HIGH,0.5,1),colorFFFF;
STICKLINE((((CLOSE >= OPEN) AND (AA >= 0)) AND (AA < AC)),OPEN,LOW,0.5,1),colorFFFF;
STICKLINE((((OPEN > CLOSE) AND (AA >= 0)) AND (AA < AC)),CLOSE,LOW,0.5,0),colorFFFF;
STICKLINE((((OPEN > CLOSE) AND (AA >= 0)) AND (AA < AC)),OPEN,HIGH,0.5,0),colorFFFF;
VAR1:=(EMA(CLOSE,12) - EMA(CLOSE,26));
VAR2:=EMA(VAR1,50);
VAR3:=(2 * (VAR1 - VAR2));
LAOLI1:=(EMA(CLOSE,12) - EMA(CLOSE,26));
LAOLI2:=EMA(VAR1,50);
DRAWICON(((CROSS(LAOLI1,LAOLI2) AND (VAR3 > REF(VAR3,1))) AND (VAR3 > 0)),(LOW * 0.97),12);
DRAWTEXT(((CROSS(LAOLI1,LAOLI2) AND (VAR3 > REF(VAR3,1))) AND (VAR3 > 0)),(LOW * 0.97),' 短1'),colorFF;
VAR1:=((((CLOSE * 2) + HIGH) + LOW) / 4);
SK:=(EMA(VAR1,13) - EMA(VAR1,73));
SD:=EMA(SK,2);
DRAWTEXT(((((CROSS(SK,SD) AND (SK < (0 - 0.04))) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) >= 0.03)) OR (CROSS(SK,SD) AND (SK <= (0 - 0.14)))) OR ((CROSS(SK,SD) AND (SK <= 0.05)) AND (((VOL / MA(VOL,5)) > 2) OR ((CLOSE / REF(CLOSE,1)) > 0.035)))),(LOW * 0.999),'*短2'),colorFF;
VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);
VAR4Y:=REF(CLOSE,1);
VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);
VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE - VAR4Y)),12,1)) * 100);
VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);
VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);
VAR9Y:=SMA(VAR8Y,3,1);
VARAY:=SMA(VAR9Y,3,1);
VARBY:=((3 * VAR9Y) - (2 * VARAY));
VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));
VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20)));
DRAWICON((CROSS(76,VAR5Y) AND (VAR3Y > 5)),(HIGH * 1.0099),5),colorFFFFFF;
DRAWTEXT((CROSS(76,VAR5Y) AND (VAR3Y > 5)),(HIGH * 1.02),'短清仓');
VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);
VARFY:=(0 - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10));
DRAWICON(CROSS(VARFY,(0 - 9)),(LOW * 0.998),4);
NLX:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));
VAR3C:=EMA(NLX,1);
VAR4C:=REF(NLX,1);
QSM:=(((((CLOSE + (0.618 * REF(CLOSE,1))) + (0.382 * REF(CLOSE,2))) + (0.236 * REF(CLOSE,3))) + (0.146 * REF(CLOSE,4))) / 2.382);
修正价:=QSM;
GAO:=(SYSPARAM(4) - SYSPARAM(5));
TIAOJIE:=IF((GAO >= 1),IF((GAO >= 5),2,1),0.618);
ZD1:=(修正价 + (((SMA(MAX((修正价 - REF(修正价,1)),0),5,1) / SMA(ABS((修正价 - REF(修正价,1))),5,1)) * TIAOJIE) - (TIAOJIE * 0.5)));
ZD2:=(修正价 + (((SMA(MAX((修正价 - REF(修正价,1)),0),5,1) / SMA(ABS((修正价 - REF(修正价,1))),5,1)) * 100) - 50));
短线敏感度:IF((CLOSE > 100),ZD2,ZD1),LINETHICK1,PRECISION2,colorFF00FF;
SM:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
操作线:SM,colorFF00FF;
PARTLINE((CLOSE >= SM),SM),LINETHICK2,colorFF00FF;
PARTLINE((CLOSE < SM),SM),LINETHICK1,colorFF0000;
C1:=REF(CLOSE,1);
C2:=HHV(C1,2);
C3:=LLV(C1,1);
ET:=HHV(C1,2);
ET1:=REF(ET,1);
XB:=LLV(C1,1);
XB1:=REF(XB,1);
M:=BARSLAST(((CLOSE < XB) AND (C1 >= XB1)));
M11:=REF(M,1);
N9:=BARSLAST(((CLOSE > ET) AND (C1 <= ET1)));
N1:=REF(N9,1);
M21:=(BARSLAST((((M - N9) > 0) AND (M11 <= N1))) + 1);
N2:=(BARSLAST((((N9 - M) > 0) AND (N1 <= M11))) + 1);
ET2:=HHV(ET,M21);
XB2:=LLV(XB,N2);
A:=IF((((M - N9) > 0) AND (M11 <= N1)),1,IF((((N9 - M) > 0) AND (N1 <= M11)),0,2));
H1:=IF(((M - N9) > 0),CLOSE,ET2);
H2:=IF((A = 1),CLOSE,C2);
H3:=IF(((M - N9) < 0),CLOSE,XB2);
H4:=IF((A = 1),CLOSE,XB2);
H5:=IF((((M - N9) > 0) OR (A = 1)),CLOSE,H3);
明天重点位:REF(H5,1),LINETHICK0;
限制:=(EMA((((((((HIGH + CLOSE) / 2) + LOW) + ((CLOSE + LOW) / 2)) / 3) - EMA(LLV((((((HIGH + CLOSE) / 2) + LOW) + ((CLOSE + LOW) / 2)) / 3),89),2)) / (EMA(HHV((((((HIGH + CLOSE) / 2) + LOW) + ((CLOSE + LOW) / 2)) / 3),21),2) - EMA(LLV((((((HIGH + CLOSE) / 2) + LOW) + ((CLOSE + LOW) / 2)) / 3),89),2))),8) * 100);
平衡:=SMA(EMA(SMA(((CLOSE + LOW) / 2),3,1),3),5,1);
DRAWICON((FILTER((((平衡 > REF(平衡,1)) AND (HHV(MA(((HIGH + CLOSE) / 2),13),10) < REF(HHV(MA(((HIGH + CLOSE) / 2),13),10),1))) AND (((CLOSE + LOW) / 2) > REF(((CLOSE + LOW) / 2),1))),5) AND (限制 < 88)),(LOW * 0.968),4),ALIGN0;
DRAWTEXT((FILTER((((平衡 > REF(平衡,1)) AND (HHV(MA(((HIGH + CLOSE) / 2),13),10) < REF(HHV(MA(((HIGH + CLOSE) / 2),13),10),1))) AND (((CLOSE + LOW) / 2) > REF(((CLOSE + LOW) / 2),1))),5) AND (限制 < 88)),(LOW * 0.98),' 短3'),ALIGN0,colorFF00FF;
LC:=REF(CLOSE,1);
TR:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW)));
ATR:=SMA(TR,20,1);
AA:=(HHV(HIGH,K8) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
B3B:=BARSLAST(B3);
SS:=CROSS(MAX(AA,MA(CLOSE,13)),CLOSE);
SS1:=(((SS AND ((B3B < B2B) OR (B2B < B1B))) AND (SSSB > B1B)) AND (COUNT(SS,B2B) < 2));
SS1B:=BARSLAST(SS1);
SS2:=((((SS AND (SS1B < SSSB)) AND (B3B < B2B)) AND (SS1B > 0)) AND (COUNT(SS,B2B) < 3));
SSSS:=(SSS AND (REF(SSSB,1) > REF(B1B,1)));
DRAWTEXT((B1 = 1),(LOW - 0.25),'*短强1'),colorFF;
DRAWTEXT((B2 = 1),(LOW - 0.25),'*短强2'),colorFF;
DRAWTEXT((B3 = 1),(LOW - 0.25),'*短强3'),colorFF;
DRAWTEXT((SS1 = 1),(HIGH + 0.25),'*短跑'),colorFF00;
DRAWTEXT((SS2 = 1),(HIGH + 0.25),'*短跑'),colorFF00;
DRAWTEXT((SSSS = 1),(HIGH + 0.25),'*短跑'),colorFF00;
N:=IF(((STRNCMP(STKNAME,'*ST',3) = 0) OR (STRNCMP(STKNAME,'ST',2) = 0)),55,80);
NZZM:=(((((((((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 1000) >= N) AND ((CLOSE / EMA(CLOSE,220)) < 1.4)) AND HHV(VOL,20)) AND (EMA(CLOSE,240) > REF(EMA(CLOSE,240),1))) AND (EMA(CLOSE,30) > REF(EMA(CLOSE,30),1))) AND (CLOSE > EMA(CLOSE,120)));
DRAWICON(NZ |