LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD 》 0) AND (HD 》 LD)),HD,0),10);
DMM:=SUM(IF(((LD 》 0) AND (LD 》 HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
最佳買入:=(AV + NEWVOL);
最佳買入選股:=(CROSS(最佳買入,0));
DRAWICON(最佳買入選股,50,1);
RSVA:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);
KA:=SMA(RSVA,3,1);
DA:=SMA(KA,3,1);
JA:=3*KA-2*DA;
XB:=LLV(JA,2)=LLV(JA,8);
最佳買入時(shí)機(jī):= (CROSS(JA,3));
DRAWICON(最佳買入時(shí)機(jī),50,25);
DRAWTEXT(ISLASTBAR,50,‘--最佳買入’);
{短線套利}
MA18:=MA(C,21);
加碼價(jià):=((C-REF(MA18,1))/18+MA18)*1.004;
短線套利:=(CROSS(C,加碼價(jià)) AND 加碼價(jià)》REF(加碼價(jià),1));
DRAWICON(短線套利,20,1);
{短炒公式}
VARO:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
DRAWICON(VARO《-9 AND VARO》 REF (VARO,1),20,26);
{DRAWICON(短底,20,26);}
DRAWTEXT(ISLASTBAR,20,‘--短線套利’);
{不求人}
{VAR1L:=(EMA(C,12)-EMA(C,26))*100+50;
VAR2L:=EMA(VAR1L,9);
VAR3L:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR4L:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5L:=SMA(VAR4L,13,8);
VAR6L:=SMA(VAR3L,21,8);
VAR7L:=MA(C,80)-MA(C,10)/7;
VAR8L:=EMA(C,5);
VAR9L:=MA((LLV(C,9))*1.1,14);
VAR10L:=2*VAR9L-VAR8L-C*0.1;
VAR11L:=IF(((VAR8L-VAR10L)*5》0),(POW((VAR8L-VAR10L)*5,2))/10,(-1*(POW((VAR8L-VAR10L)*(5),2)))/(10));
VAR12L:=IF((VAR11L》0),VAR11L-0,12);
VAR13L:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
趨勢(shì):=CEILING(SMA(VAR5,13,8)),LINETHICK0.02;
看底:=(趨勢(shì)-VAR6《-65);
頂峰:=(趨勢(shì)-VAR6》85);
黃金區(qū):=VAR13《8;}
{DRAWICON(黃金區(qū),90,1);}
{STICKLINE(VAR13《8,88,93,5,0.2),COLOR51FFFF;
操盤線:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORBLUE;
DRAWICON(FILTER(趨勢(shì)《REF(趨勢(shì),1)AND 趨勢(shì)》75 OR CROSS(趨勢(shì),操盤線)
AND 趨勢(shì)《REF(趨勢(shì),1)AND 操盤線》60,5),90,2);
DRAWICON(FILTER(CROSS(趨勢(shì),VAR12)AND 趨勢(shì)《REF(趨勢(shì),2)AND C》REF(C,1)
OR 趨勢(shì)》REF(趨勢(shì),1)AND 趨勢(shì)《35 AND C》REF(C,1),5),90,1);
DRAWTEXT(ISLASTBAR,90,‘--不求人’);}
{賭漲停}
MA5:=MA(C,5);
MA10T:=MA(C,10);
MA30:=MA(C,30);
ZX:=(MA5+MA10T)/2;
QSXS:=MA5》=MA30 AND MA30》REF(MA30,1);
GD:=ZX》=REF(ZX,1) AND REF(ZX,1)《REF(ZX,2);
YB:=C》REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
賭漲停:=買 AND MA5》REF(MA5,1);
DRAWICON(賭漲停,100,13);
{KDJ買點(diǎn)}
RSVV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);
K5:=SMA(RSVV,3,1);
D5:=SMA(K5,3,1);
J5:=3*K5-2*D5;
J1:=REVERSE(J5);
AA:=REF(MA(C,1),10)》REF(MA(C,60),10);
KDJ買點(diǎn):=CROSS(J5,J1) AND AA,;
DRAWICON(KDJ買點(diǎn),100,1);
DRAWTEXT(ISLASTBAR,98,‘--KDJ買,賭停’);
{收銀臺(tái)}
QVAR2:=IF((HIGH+LOW《=REF(HIGH,1)+REF(LOW,1)),0,MAX(ABS(HIGH-REF(HIGH,1)),
ABS(LOW-REF(LOW,1))));
QVAR3:=IF((HIGH+LOW》=REF(HIGH,1)+REF(LOW,1)),0,MAX(ABS(HIGH-REF(HIGH,1)),
ABS(LOW-REF(LOW,1))));
QVAR4:=(SUM(QVAR2,13))/(SUM(QVAR2,13)+SUM(QVAR3,13));
QVAR5:=(SUM(QVAR3,13))/(SUM(QVAR3,13)+SUM(QVAR2,13));
QVAR9:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1));
QVARA:=100-(3)*(SMA((rmkc.cn(OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1));
QVARB:=(QVAR9《REF(QVARA,1)) AND (VOL》REF(VOL,1)) AND (CLOSE》REF(CLOSE,1));
{QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
QVAR1C:=SMA(QVAR1B,13,8);
QVAR1D:=SMA(QVAR1A,21,8);}
生意上門:=SMA(QVAR1C,13,8);
收銀臺(tái):=(生意上門-QVAR1D《-65);
DRAWICON(收銀臺(tái),60,1);
AAS1:=FILTER((COUNT((生意上門-QVAR1D《(-65)),3)=3),34);
收銀:=AAS1;
DRAWICON(收銀,60,26);
QVAR1E:=(CLOSE+OPEN+HIGH+LOW)/(4);
AAA:=QVARB AND (COUNT(QVARB,1)=1) AND (生意上門《80);
VAR1Z:=(((EMA(CLOSE,5))/(EMA(EMA(CLOSE,9),16))《=0.85000002)
AND ((CLOSE)/(REF(CLOSE,1))》0.90499997) AND ((CLOSE)/(REF(CLOSE,1))《1.05)
AND (((VOL)/(CAPITAL))*(100)《5),50,0);
買賣順意:=MA((((-100))*(HHV(HIGH,34)-CLOSE))/(HHV(HIGH,34)-LLV(LOW,34))+100,5);
VAR3Z:=(((-100))*(HHV(HIGH,50)-CLOSE))/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR4Z:=(((-100))*(HHV(HIGH,70)-CLOSE))/(HHV(HIGH,70)-LLV(LOW,70))+100;
VAR5Z:=(((CLOSE-MA(CLOSE,34))/(MA(CLOSE,34)))*(100)+10)*(5);
VAR6Z:=(((CLOSE-MA(CLOSE,50))/(MA(CLOSE,50)))*(100)+10)*(5);
VAR7Z:=(((CLOSE-MA(CLOSE,70))/(MA(CLOSE,70)))*(100)+10)*(5);
VAR8Z:=(買賣順意+VAR3Z+VAR4Z+VAR5Z+VAR6Z+VAR7Z)/(6);
VAR21:=MA(CLOSE,80)-(MA(CLOSE,13))/(3);
VAR22:=MA((CLOSE-VAR21)/(VAR21),1);
VAR23:=(EMA(VAR22,12))*(0.69999998);
VAR24:=EMA(VAR22,3);
VAR25:=((LLV(VAR24-VAR23,12)》0));
VAR26:=FILTER((COUNT((VAR25《(-20)),3)=3),34);
順意:=VAR26;
DRAWICON(順意,60,1);
DRAWTEXT(ISLASTBAR,60,‘--收銀臺(tái)’);
{絕地反擊}
VAR1P:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR2P:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR3P:=(SMA(VAR2P,3,1)-18)*1.55;
VAR4P:=SMA(VAR3P,3,1);
VAR5P:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
VAR6P:=SMA(VAR5P,10,1);
VAR7P:=(EMA(SMA(VAR6P,8,1),34)-25)*2.6;
VAR8P:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR9P:=POW(MA(LOW,5),2)+MA(LOW,5);
VARAP:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARBP:=((VAR8P-LLV(VAR9P,64))/(HHV(VARAP,64)-LLV(VAR9P,64))*150+65-10)/2;
VARCP:=SMA(VARBP,3,1)*1.5-46;
VARDP:=SMA(VARCP,3,1);
VAREP:=3*VARCP-2*VARDP;
VARFP:=(VAR1P+VAR2P+VAR5P)/3;
VAR10P:=((VAR3P+VAR3P+VAR6P+VARCP)/4-15)*1.67;
VAR11P:=((VAR4P+VAR4P+VAR7P+VARDP)/4-15)*1.67;
VAR12P:=((VAR1P+VAR5P*2+VARFP+VAR10P+VAR11P+VARBP+VARCP+VARDP+VAREP)/10-15)*1.67;
VAR13P:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
VAR14P:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
VAR15P:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
VAR16P:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
VAR17P:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
VAR18P:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
VAR19P:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
VAR1AP:=((VAR13P*8+VAR14P*8+VAR15P*8+VAR16P+VAR17P+VAR18P+VAR19P)/28-0.1)*185;
VAR1B:=SMA(VAR1AP,3,1);
VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;
VARA1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80;
VARB1:=SMA(VARA1,7,1);
VARC1:=SMA(VARB1,5,1);
英雄:=IF(CROSS(VARBP,VARCP) AND VARBP《20,100,0);
VAR2N:=LLV(LOW,3)《=LLV(LOW,60);
VAR3N:=C》O AND (C/O》1.03 OR C》1.03*REF(C,1));
絕地反擊:IF(VAR2N AND VAR3N,90,0)COLOR00FF00;
準(zhǔn)備反擊:=VAR2N;
反擊:=VAR2N AND VAR3N;
DRAWICON(準(zhǔn)備反擊,90,1);
DRAWICON(反擊,90,13);
DRAWICON(英雄,90,25);
DRAWTEXT(ISLASTBAR,90,‘--絕地反擊’);
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)