将超短趋势和发财翻番组合指标合并为一个公式
2020/4/26 18:26:48
公式编写说明:
请老师帮忙将 (超短趋势) 公式中的‘白色倒三角线’加入‘第二个公式’的 黄色线 下面,谢谢!!!!!!! (超短趋势)公式:N:=160;M:=130;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买关注:IF(走势-AA6<-65,0,30); 第二个公式: 参数: N: 0 100 5AA:="RSI.RSI1"(3,14,24);BB:="RSI.RSI2"(3,140,24);二线差RSI:IF((BB-AA)/AA>N,1.5,0),STICK,LINETHICK2,COLORRED;KMD2:=MA(C,13)>1.15*C;KMD3:=C<0.70*REF(C,26);KMD4:=C<0.97*MA(C,2);KMD5:=KMD2 AND KMD3 AND KMD4;KMD6:=CROSS(0.5,KMD5);KMD7:=CROSS(KMD6,0.5);KMD8:=BARSLAST(KMD7=1);KMD9:=KMD8<=5 AND C<REF(C,KMD7);KMD6 OR KMD9;VAR09:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);极品底:=(MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04;STICKLINE(极品底,0,1,1.5,0)COLORFFFF00 ;XG:VAR09<=8; VAR1:=SMA(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),14,1);VAR2:=(HIGH - REF(HIGH,1));VAR3:=(REF(LOW,1) - LOW);VAR4:=SMA(IF(((VAR2 > 0) AND (VAR2 > VAR3)),VAR2,0),12,1);VAR5:=SMA(IF(((VAR3 > 0) AND (VAR3 > VAR2)),VAR3,0),12,1);VAR6:=((VAR4 * 100) / VAR1);VAR7:=((VAR5 * 100) / VAR1);VAR8:=SMA(((ABS((VAR7 - VAR6)) / (VAR7 + VAR6)) * 100),12,1);VAR9:=((VAR8 + REF(VAR8,5)) / 2);VARA:=((SUM((HIGH - OPEN),12) / SUM((OPEN - LOW),12)) * 100);VARB:=((SUM(MAX(0,(HIGH - REF(CLOSE,1))),12) / SUM(MAX(0,(REF(CLOSE,1) - LOW)),12)) * 100);VARC:=((AMOUNT / VOL) / 100);VARD:=(((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7);VARE:=((SUM(AMOUNT,5) / VARC) / 100);VARF:=((SUM(AMOUNT,13) / VARC) / 100);VAR10:=((SUM(AMOUNT,34) / VARC) / 100);VAR11:=((SUM(AMOUNT,209) / VARC) / 100);VAR12:=(((REF(VOL,1) + REF(VOL,2)) + REF(VOL,3)) + REF(VOL,4));VAR13:=(VAR12 / CAPITAL);VAR14:=(((VOL / CAPITAL) * VARD) + (VAR13 * REF(VARC,1)));VAR15:=DMA(VARD,(VOL / VARE));VAR16:=DMA(VARD,(VOL / VARF));VAR17:=DMA(VARD,(VOL / VAR10));VAR18:=DMA(VARD,(VOL / CAPITAL));VAR19:=MA(HHV(HIGH,488),18);VAR1A:=MA(HHV(HIGH,220),18);VAR1B:=MA(HHV(HIGH,98),18);VAR1C:=MA(LLV(LOW,488),18);VAR1D:=MA(LLV(LOW,220),18);VAR1E:=MA(LLV(LOW,98),18);VAR1F:=MA((((((((VAR1C * 0.96) + (VAR1D * 0.96)) + (VAR1E * 0.96)) + (VAR19 * 0.558)) + (VAR1A * 0.558)) + (VAR1B * 0.558)) / 6),18);VAR20:=MA((((((((VAR1C * 1.25) + (VAR1D * 1.23)) + (VAR1E * 1.2)) + (VAR19 * 0.55)) + (VAR1A * 0.55)) + (VAR1B * 0.65)) / 6),18);VAR21:=MA((((((((VAR1C * 1.3) + (VAR1D * 1.3)) + (VAR1E * 1.3)) + (VAR19 * 0.68)) + (VAR1A * 0.68)) + (VAR1B * 0.68)) / 6),18);VAR22:=MA((((((VAR1F * 3) + (VAR20 * 2)) + VAR21) / 6) * 1.738),18);VAR23:=IF((DATE <= 1031231),VAR22,(VAR22 * DAY));VAR24:=LOW;VAR25:=REF(LOW,1);VAR26:=((SMA(ABS((VAR24 - VAR25)),3,1) / SMA(MAX((VAR24 - VAR25),0),3,1)) * 100);VAR27:=MA(IF(((CLOSE * 1.35) <= VAR23),(VAR26 * 10),(VAR26 / 10)),3);VAR28:=LLV(LOW,30);VAR29:=HHV(VAR27,30);VAR2A:=IF((LOW <= VAR28),((VAR27 + (VAR29 * 2)) / 2),0);买入:(MA(VAR2A AND (CLOSE < COST(1)),3) AND ((((CLOSE - VAR16) / VAR16) * 100) < (2 - 13))),,LINETHICK2;趋势:=(EMA(((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1))),5) / 100);欢喜:IF((((((((REF(CLOSE,13) - CLOSE) / REF(CLOSE,13)) * 100) > 15) AND ((SUM((VOL / CAPITAL),13) * 100) < 18)) AND (((VOL / CAPITAL) * 100) < 2.5)) AND ((((REF(CLOSE,1) - CLOSE) / REF(CLOSE,1)) * 100) < 8)),0.7,0),,COLORYELLOW,LINETHICK2;
公式源码示例:
白色倒三角线改为正向!!!
AA:="RSI.RSI1"(3,14,24);
BB:="RSI.RSI2"(3,140,24);
二线差RSI:IF((BB-AA)/AA>5,1.5,0),STICK,LINETHICK2,COLORRED;
KMD2:=MA(C,13)>1.15*C;
KMD3:=C<0.70*REF(C,26);
KMD4:=C<0.97*MA(C,2);
KMD5:=KMD2 AND KMD3 AND KMD4;
KMD6:=CROSS(0.5,KMD5);
KMD7:=CROSS(KMD6,0.5);
KMD8:=BARSLAST(KMD7=1);
KMD9:=KMD8<=5 AND C<REF(C,KMD7);
KMD6 OR KMD9;
VAR09:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
极品底:=(MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04;
STICKLINE(极品底,0,1,1.5,0)COLORFFFF00 ;
XG:VAR09<=8;
VAR1:=SMA(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),14,1);
VAR2:=(HIGH - REF(HIGH,1));
VAR3:=(REF(LOW,1) - LOW);
VAR4:=SMA(IF(((VAR2 > 0) AND (VAR2 > VAR3)),VAR2,0),12,1);
VAR5:=SMA(IF(((VAR3 > 0) AND (VAR3 > VAR2)),VAR3,0),12,1);
VAR6:=((VAR4 * 100) / VAR1);
VAR7:=((VAR5 * 100) / VAR1);
VAR8:=SMA(((ABS((VAR7 - VAR6)) / (VAR7 + VAR6)) * 100),12,1);
VAR9:=((VAR8 + REF(VAR8,5)) / 2);
VARA:=((SUM((HIGH - OPEN),12) / SUM((OPEN - LOW),12)) * 100);
VARB:=((SUM(MAX(0,(HIGH - REF(CLOSE,1))),12) / SUM(MAX(0,(REF(CLOSE,1) - LOW)),12)) * 100);
VARC:=((AMOUNT / VOL) / 100);
VARD:=(((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7);
VARE:=((SUM(AMOUNT,5) / VARC) / 100);
VARF:=((SUM(AMOUNT,13) / VARC) / 100);
VAR10:=((SUM(AMOUNT,34) / VARC) / 100);
VAR11:=((SUM(AMOUNT,209) / VARC) / 100);
VAR12:=(((REF(VOL,1) + REF(VOL,2)) + REF(VOL,3)) + REF(VOL,4));
VAR13:=(VAR12 / CAPITAL);
VAR14:=(((VOL / CAPITAL) * VARD) + (VAR13 * REF(VARC,1)));
VAR15:=DMA(VARD,(VOL / VARE));
VAR16:=DMA(VARD,(VOL / VARF));
VAR17:=DMA(VARD,(VOL / VAR10));
VAR18:=DMA(VARD,(VOL / CAPITAL));
VAR19:=MA(HHV(HIGH,488),18);
VAR1A:=MA(HHV(HIGH,220),18);
VAR1B:=MA(HHV(HIGH,98),18);
VAR1C:=MA(LLV(LOW,488),18);
VAR1D:=MA(LLV(LOW,220),18);
VAR1E:=MA(LLV(LOW,98),18);
VAR1F:=MA((((((((VAR1C * 0.96) + (VAR1D * 0.96)) + (VAR1E * 0.96)) + (VAR19 * 0.558)) + (VAR1A * 0.558)) + (VAR1B * 0.558)) / 6),18);
VAR20:=MA((((((((VAR1C * 1.25) + (VAR1D * 1.23)) + (VAR1E * 1.2)) + (VAR19 * 0.55)) + (VAR1A * 0.55)) + (VAR1B * 0.65)) / 6),18);
VAR21:=MA((((((((VAR1C * 1.3) + (VAR1D * 1.3)) + (VAR1E * 1.3)) + (VAR19 * 0.68)) + (VAR1A * 0.68)) + (VAR1B * 0.68)) / 6),18);
VAR22:=MA((((((VAR1F * 3) + (VAR20 * 2)) + VAR21) / 6) * 1.738),18);
VAR23:=IF((DATE <= 1031231),VAR22,(VAR22 * DAY));
VAR24:=LOW;
VAR25:=REF(LOW,1);
VAR26:=((SMA(ABS((VAR24 - VAR25)),3,1) / SMA(MAX((VAR24 - VAR25),0),3,1)) * 100);
VAR27:=MA(IF(((CLOSE * 1.35) <= VAR23),(VAR26 * 10),(VAR26 / 10)),3);
VAR28:=LLV(LOW,30);
VAR29:=HHV(VAR27,30);
VAR2A:=IF((LOW <= VAR28),((VAR27 + (VAR29 * 2)) / 2),0);
买入:(MA(VAR2A AND (CLOSE < COST(1)),3) AND ((((CLOSE - VAR16) / VAR16) * 100) < (2 - 13))),,LINETHICK2;
趋势:=(EMA(((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1))),5) / 100);
欢喜:IF((((((((REF(CLOSE,13) - CLOSE) / REF(CLOSE,13)) * 100) > 15) AND ((SUM((VOL / CAPITAL),13) * 100) < 18)) AND (((VOL / CAPITAL) * 100) < 2.5)) AND ((((REF(CLOSE,1) - CLOSE) / REF(CLOSE,1)) * 100) < 8)),0.7,0),,COLORYELLOW,LINETHICK2;
N:=160;
M:=130;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VARC2:=REF(LOW,1);
VARC3:=SMA(ABS(LOW-VARC2),3,1)/SMA(MAX(LOW-VARC2,0),3,1)*100;
VARC4:=EMA(IF(CLOSE*1.3,VARC3*10,VARC3/10),3);
VARC5:=LLV(LOW,30);
VARC6:=HHV(VARC4,30);
VARC7:=IF(MA(CLOSE,58),1,0);
VARC8:=EMA(IF(LOW<=VARC5,(VARC4+VARC6*2)/2,0),3)/618*VARC7;
VARC9:=IF(VARC8>100,100,VARC8);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
AA6:=SMA(AA3,21,8);
买关注:IF(走势-AA6<-65,1.5,0),COLORWHITE;
看股 吧公式 www.kangub a.com
其它股票公式列表