财神到了主图(飞狐)
<p>input:N(27,1,100),N1(7,1,100),N2(19,1,100);<br />HH:=HHV(H,10);<br />
LL:=LLV(L,10);<br />
AA:=SMA(C,13,2);<br />
DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)<REF(AA,2) AND REF(AA,2)<REF(AA,3),HH,'激进买入'),COLORRED;<br />
DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)>REF(AA,2),HH,'激进持股'),COLOR0066FF;<br />
DRAWTEXT(ISLASTBAR=1 AND AA<REF(AA,1) AND REF(AA,1)>REF(AA,2),HH,'激进卖出'),COLORGREEN;<br />
A1:=MA(C,13);<br />
ZX:=REF(A1,13/2+1);<br />
DRAWTEXT(ISLASTBAR=1 AND CROSS(C,ZX),LL,'稳健买入'),COLORRED;<br />
DRAWTEXT(ISLASTBAR=1 AND C>ZX AND REF(C,1)>REF(ZX,1),LL,'稳健持股'),COLOR0066FF;<br />
DRAWTEXT(ISLASTBAR=1 AND C<ZX AND REF(C,1)>REF(ZX,1),LL,'稳健卖'),COLORGREEN;<br />
VAR1111:=FORCAST(CLOSE,5);<br />
VAR1:=1;<br />
平衡线:=(EMA(EMA(EMA(HIGH,3),3),1) * VAR1);<br />
VAR2:=(平衡线 * 0.85);<br />
临界线:WMA(CLOSE,10),LINETHICK2;<br />
VAR1:=POW((CLOSE - 临界线),1);<br />
VAR2:=MA(VAR1,3);<br />
VAR3:=SQRT(VAR2);<br />
支撑线:=(临界线 - (1.96 * VAR3));<br />
PARTLINE((临界线 < REF(临界线,1)),临界线),LINETHICK2,colorFF00;<br />
VAR1Z:=(((CLOSE - OPEN) / OPEN) * 100);<br />
VAR2Z:=REF(CLOSE,1);<br />
VAR3Z:=((SMA(MAX((CLOSE - VAR2Z),0),6,1) / SMA(ABS((CLOSE - VAR2Z)),6,1)) * 100);<br />
VAR4Z:=(COUNT((VAR3Z < 20),20) >= 1);<br />
DRAWTEXT(((VAR1Z > 9) AND VAR4Z),LOW,'★屠龙'),LINETHICK4,colorFFFF;<br />
JJJ:=(((CLOSE + HIGH) + LOW) / 3);<br />
AA:=EMA(JJJ,3);<br />
BB:=REF(AA,1);<br />
持股:DRAWICON((AA > BB),BB,12);<br />
VAR3:=REF(CLOSE,1);<br />
VAR4:=REF(CLOSE,2);<br />
VAR5:=REF(CLOSE,3);<br />
VAR6:=REF(CLOSE,9);<br />
VAR7:=HHV(CLOSE,9);<br />
VAR8:=LLV(CLOSE,9);<br />
VARC:=(((VAR3 = VAR8) AND (CLOSE >= VAR4)) OR ((((VAR4 = VAR8) AND (VAR3 <= VAR5)) AND (VAR4 < VAR6)) AND (CLOSE >= VAR3)));<br />
黄色买入:STICKLINE(VARC,(VAR3 * 0.94),(VAR4 * 0.94),25,16),colorFFFF;<br />
VAR1:=((REF(HIGH,1) + REF(LOW,1)) / 2);<br />
VAR2:=((REF(HIGH,1) + REF(LOW,1)) / 2);<br />
VAR3:=(MA(CLOSE,N) + (2 * STD(CLOSE,N)));<br />
DRAWICON(CROSS(VAR2,VAR3),(HIGH * 1.035),3);<br />
DRAWTEXT(CROSS(VAR2,VAR3),(HIGH * 1.02),'卖出1'),colorFF00;<br />
VAR4:=REF(CLOSE,1);<br />
VAR5:=((SMA(MAX((CLOSE - VAR4),0),N1,1) / SMA(ABS((CLOSE - VAR4)),N1,1)) * 100);<br />
VAR6:=CROSS(N2,VAR5);<br />
VAR7:=FILTER(VAR6,4);<br />
A7:=((((2 * CLOSE) + HIGH) + LOW) / 4);<br />
VAR10:=LLV(LOW,34);<br />
VAR11:=HHV(HIGH,34);<br />
SK:=EMA((((A7 - VAR1) / (VAR2 - VAR1)) * 100),7);<br />
SD:=EMA(((0.667 * REF(SK,1)) + (0.333 * SK)),5);<br />
DRAWTEXT(IF((((((COUNT((CLOSE < REF(CLOSE,1)),8) / 8) > (6 / 10)) AND (VOL >= (1.5 * MA(VOL,5)))) AND COUNT((SK >= SD),3)) AND (REF(LOW,1) = LLV(LOW,120))),1,0),LOW,'●买进1'),color99FF;<br />
DRAWTEXT(IF((((((((((COUNT((CLOSE < REF(CLOSE,1)),13) / 13) > (6 / 10)) AND COUNT((SK > SD),6)) AND (REF(LOW,5) = LLV(LOW,120))) AND REF((CLOSE >= OPEN),4)) AND REF((CLOSE > OPEN),3)) AND REF((CLOSE > OPEN),2)) AND REF((OPEN > CLOSE),1)) AND (OPEN > REF(CLOSE,1))),1,0),LOW,'●买进2'),colorFFFF;<br />
VAR12:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));<br />
DRAWTEXT(IF(((((CLOSE < VAR12) AND ((VOL / 240) > (MA(VOL,5) / 240))) AND (CLOSE > (REF(CLOSE,1) * 1.08))) AND (CLOSE < (MA(CLOSE,13) * 1.3))),1,0),LOW,'●抄底'),colorFFFF;<br />
VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);<br />
M8:=VOL;<br />
主力:=(SUM((VAR11 * M8),3) / SUM(M8,3));<br />
散户:=主力;<br />
M1:=LLV(散户,5);<br />
VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);<br />
M8:=VOL;<br />
M5:=(SUM((VAR11 * M8),1) / SUM(M8,1));<br />
M13:=(SUM((VAR11 * M8),5) / SUM(M8,5));<br />
M21:=(SUM((VAR11 * M8),13) / SUM(M8,13));<br />
主力:=(SUM((VAR11 * M8),3) / SUM(M8,3));<br />
Y:=(SUM((VAR11 * M8),21) / SUM(M8,21));<br />
U1:=M5;<br />
U3:=M13;<br />
散户:=主力;<br />
XX1:=M21;<br />
C5:=((U3 > 散户) AND (散户 > XX1));<br />
C8:=IF((C5 > 0),LLV(U3,5),HHV(散户,5));<br />
C13:=IF((C5 > 0),LLV(散户,8),HHV(散户,5));<br />
VAR1118:=IF((C5 > 0),LLV(XX1,13),HHV(散户,5));<br />
M1:=LLV(散户,20);<br />
DRAWTEXT((M1 = REF(M1,1)),M1,'┬'),LINETHICK5,colorCC33FF;<br />
DRAWTEXT(((REF(M1,1) < REF(M1,2)) AND (M1 = REF(M1,1))),M1,'★'),colorFF;<br />
STICKLINE((CLOSE < OPEN),HIGH,LOW,1,0),color8800;<br />
STICKLINE((CLOSE < OPEN),HIGH,LOW,0,0),colorFF00;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,8,0),color8800;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,7,0),color9900;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,6,0),colorAA00;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,5,0),colorBB00;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,4,0),colorCC00;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,3,0),colorDD00;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,2,0),colorEE00;<br />
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,1,0),colorFF00;<br />
STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),colorFF;<br />
STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),colorEEFF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),colorFF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),color22FF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color44FF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color66FF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color88FF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),colorAAFF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),colorCCFF;<br />
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),colorEEFF;<br />
VAR22:=((LLV(LOW,3) = LLV(LOW,3)) AND (CLOSE >= (OPEN * 1.04)));<br />
VAR333:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));<br />
VAR44:=(VAR22 AND VAR333);<br />
VAR55:=BARSLAST(VAR333);<br />
VAR66:=BARSLAST(VAR44);<br />
VAR77:=IF((VAR66 > 0),(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100),0);<br />
VAR88:=SUM(VAR77,1);<br />
VAR93:=IF((VAR55 > 3),(0 - 2),0);<br />
DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW,1),colorFF;<br />
DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW,8),colorFF;<br />
DRAWTEXTEX(sysparam(3)=BARPOS,0,10,8,'【代码:'+STKLABEL+' 名称:'+STKNAME+'】'),Colorcyan;<br />
DRAWTEXT((BARPOS = SYSPARAM(2)),HIGH,('所属板块:' + BLKNAME)+ '\n')ALIGN4,colorred;<br />
variable:wday='星期六';<br />
wday:='星期日';<br />
wday:='星期一';<br />
wday:='星期二';<br />
wday:='星期三';<br />
wday:='星期四';<br />
wday:='星期五';<br />
fy:=year;<br />
fm:=month;<br />
fd:=day;<br />
wd:=weekday;<br />
p:=SYSPARAM(1);<br />
DRAWTEXTex(c,0,300,1,<br />
numtostr(fy,0)+'年'+numtostr(fm,0)+'月'<br />
+numtostr(fd,0)+'日,'+wday+1]+'\n'),COLORyellow;<br />
DRAWTEXTEX(1,1,20,880,' 耐 心 等 待 时 机'),COLORRED;<br />
DRAWTEXTEX(1,1,20,150,'决 策 在 人 脑 严 格 执 行 纪 律'),COLORRED;<br />
X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);<br />
Y:=EMA(CLOSE,10);<br />
DRAWTEXT(CROSS(Y,X),(LOW * 0.95),'←安全C级'),COLORRED;<br />
VAR1:=LLV(LOW,21);<br />
VAR2:=HHV(HIGH,21);<br />
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);<br />
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);<br />
DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);<br />
VAR3:=LLV(LOW,55);<br />
VAR4:=HHV(HIGH,34);<br />
VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);<br />
VAR6:=((AK + VAR5) / 2);<br />
VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);<br />
VAR8:=EMA(VAR6,5);<br />
BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);<br />
AB:=CROSS(AK1,AK);<br />
BB1:=(CROSS(AK1,BB) AND (BB < 30));<br />
CD:=(BB1 * 0.6);<br />
DRAWTEXT((CD = 0.6),(LOW * 0.95),'←安全A级'),COLORGREEN;<br />
DRAWTEXT((AB = 1),(LOW * 0.97),'←安全 B 级'),COLOR33CC99,COLORYELLOW;<br />
压力:MA(REF(HHV(C,30),1),2),COLORGREEN;<br />
支撑:MA(REF(LLV(C,30),1),2),COLORRED;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLORFF6600;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORFF7700;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORFF9900;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORFFBB00;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORFFCC00;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFFDD00;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFEE00;<br />
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFFF00;<br />
{立体柱子:红色}<br />
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000033;<br />
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;<br />
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;<br />
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;<br />
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;<br />
VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF (C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2) =HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3) =HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);<br />
红持:var9Q,color0000ff,LINETHICK0;<br />
{立体柱子:红色}<br />
STICKLINE(VAR9Q,C,(O+C)/2,8,0),COLOR000044;<br />
STICKLINE(VAR9Q,C,(O+C)/2,7,0),COLOR000055;<br />
STICKLINE(VAR9Q,C,(O+C)/2,6,0),COLOR000066;<br />
STICKLINE(VAR9Q,C,(O+C)/2,5,0),COLOR000077;<br />
STICKLINE(VAR9Q,C,(O+C)/2,4,0),COLOR000099;<br />
STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR0000BB;<br />
STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000DD;<br />
STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000FF;<br />
VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);<br />
粉变:varaQ,colorff99ff,LINETHICK0;<br />
STICKLINE(VARAQ,C,(O+C)/2,8,0),COLORFF11FF;<br />
STICKLINE(VARAQ,C,(O+C)/2,7,0),COLORFF22FF;<br />
STICKLINE(VARAQ,C,(O+C)/2,6,0),COLORFF33FF;<br />
STICKLINE(VARAQ,C,(O+C)/2,5,0),COLORFF55FF;<br />
STICKLINE(VARAQ,C,(O+C)/2,4,0),COLORFF77FF;<br />
STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF99FF;<br />
STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFFBBFF;<br />
STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFFDDFF;<br />
VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3))OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);<br />
银灰跌:varbQ,color888888,LINETHICK0;<br />
{立体柱子:银色}<br />
STICKLINE(VARBQ,C,(O+C)/2,8,0),COLOR333333;<br />
STICKLINE(VARBQ,C,(O+C)/2,7,0),COLOR444444;<br />
STICKLINE(VARBQ,C,(O+C)/2,6,0),COLOR555555;<br />
STICKLINE(VARBQ,C,(O+C)/2,5,0),COLOR777777;<br />
STICKLINE(VARBQ,C,(O+C)/2,4,0),COLOR999999;<br />
STICKLINE(VARBQ,C,(O+C)/2,3,0),COLORBBBBBB;<br />
STICKLINE(VARBQ,C,(O+C)/2,2,0),COLORDDDDDD;<br />
STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORFFFFFF;<br />
VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4)AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);<br />
绿买:varcQ,color00ff00,LINETHICK0;<br />
{立体柱子:绿色}<br />
STICKLINE(VARCQ,O,(O+C)/2,8,0),COLOR004400;<br />
STICKLINE(VARCQ,O,(O+C)/2,6,0),COLOR005500;<br />
STICKLINE(VARCQ,O,(O+C)/2,5,0),COLOR007700;<br />
STICKLINE(VARCQ,O,(O+C)/2,4,0),COLOR009900;<br />
STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR00BB00;<br />
STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00DD00;<br />
STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00FF00;<br />
VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4)AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF (C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);<br />
蓝抛:vardQ,colorff9900,LINETHICK0;<br />
{立体柱子:深蓝色}<br />
STICKLINE(VARDQ,O,(O+C)/2,8,0),COLORFF1100;<br />
STICKLINE(VARDQ,O,(O+C)/2,7,0),COLORFF2200;<br />
STICKLINE(VARDQ,O,(O+C)/2,6,0),COLORFF3300;<br />
STICKLINE(VARDQ,O,(O+C)/2,5,0),COLORFF5500;<br />
STICKLINE(VARDQ,O,(O+C)/2,4,0),COLORFF7700;<br />
STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF9900;<br />
STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFFBB00;<br />
STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFDD00;<br />
{立体柱子:金色}<br />
ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,8,0),color004444;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,7,0),color005555;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,6,0),color006666;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,5,0),color007777;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,4,0),color009999;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,3,0),color00BBBB;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,2,0),color00DDDD;<br />
STICKLINE(ZDF>9.8,OPEN,CLOSE,1,0),color00FFFF;<br />
Z:=(CLOSE > REF(CLOSE,1));<br />
成功:((((((((((((((((((((((((((((((ALL(Z,1) + ALL(Z,2)) +<br />
ALL(Z,3)) + ALL(Z,4)) + ALL(Z,5)) + ALL(Z,6)) + ALL(Z,7)) +<br />
ALL(Z,8)) + ALL(Z,10)) + ALL(Z,11)) + ALL(Z,12)) + ALL(Z,13)) +<br />
ALL(Z,14)) + ALL(Z,15)) + ALL(Z,16)) + ALL(Z,17)) + ALL(Z,18)) +<br />
ALL(Z,19)) + ALL(Z,20)) + ALL(Z,21)) + ALL(Z,22)) + ALL(Z,23)) +<br />
ALL(Z,24)) + ALL(Z,25)) + ALL(Z,26)) + ALL(Z,27)) + ALL(Z,28)) +<br />
ALL(Z,29)) + ALL(Z,30)) + ALL(Z,31)) + ALL(Z,32)),LINETHICK0,colorFF;<br />
D:=(CLOSE < REF(CLOSE,1));<br />
失败:((((((((((((((((((((((((((((((ALL(D,1) +<br />
ALL(D,2)) + ALL(D,3)) + ALL(D,4)) + ALL(D,5)) +<br />
ALL(D,6)) + ALL(D,7)) + ALL(D,8)) + ALL(D,10)) +<br />
ALL(D,11)) + ALL(D,12)) + ALL(D,13)) + ALL(D,14)) +<br />
ALL(D,15)) + ALL(D,16)) + ALL(D,17)) + ALL(D,18)) +<br />
ALL(D,19)) + ALL(D,20)) + ALL(D,21)) + ALL(D,22)) +<br />
ALL(D,23)) + ALL(D,24)) + ALL(D,25)) + ALL(D,26)) +<br />
ALL(D,27)) + ALL(D,28)) + ALL(D,29)) + ALL(D,30)) +<br />
ALL(D,31)) + ALL(D,32)),LINETHICK0,colorFF00;<br />
XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);<br />
XL3:=CROSS(XL2,(0 - 20));<br />
DRAWTEXT((XL3 > 0),(LOW - 0.2),'←绝对底部');<br />
VAR2S:=(2*CLOSE+HIGH+LOW)/4;<br />
VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);<br />
VAR4S:=LLV(LOW,5);<br />
VAR5S:=HHV(HIGH,4);<br />
散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;<br />
xx:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;<br />
DRAWTEXT(CROSS(散户,xx) AND 散户<30,L-0.05,'←吸'),COLORRED;<br />
VAR1R:=LLV(LOW,2)=LLV(LOW,16) AND CLOSE>=OPEN*1.04;<br />
VAR2R:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;<br />
VAR3R:=VAR1R AND VAR2R;<br />
DRAWTEXT(VAR3R,LOW,'-→逢低买入 '),colorFFFF;<br />
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);<br />
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);<br />
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.99),'←---大胆搏 '),COLORYELLOW;<br />
SHORT:=12;<br />
LONG:=26;<br />
M:=9;<br />
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);<br />
DEA:=EMA(DIFF,M);<br />
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;<br />
DRAWTEXT(低位金叉,L*0.92,'*低位金叉'),COLORF00FF0;<br />
SHORT:=12;<br />
LONG:=26;<br />
M:=9;<br />
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);<br />
DEA:=EMA(DIFF,M);<br />
A1:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));<br />
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(A1=2,21)=1;<br />
DRAWTEXT(二次金叉,L*0.90,'*二次金叉'),COLORYELLOW;<br />
QC:=REF(CLOSE,1);<br />
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);<br />
K:=SMA(RSV,3,1);<br />
D:=SMA(K,3,1);<br />
YX:=((CLOSE>QC) AND C>O);<br />
D1:=REF(D,1);<br />
DRAWTEXT((((D1<30) AND CROSS(K,D)) AND YX),(LOW * 0.96),'*短买!'),COLORYELLOW;<br />
VAR4A:=EMA(CLOSE,3);<br />
DRAWTEXT(COUNT(REF(VAR4A,1)<REF(VAR4A,2),5)=5 AND VAR4A>REF(VAR4A,1),L*0.96,'出拳'),colorred;<br />
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;<br />
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;<br />
DRAWTEXT(CROSS(DA-DB,0),L*0.98,'★B'),COLORMAGENTA;<br />
AA1:=MA(C,5);<br />
BB1:=MA(C,15);<br />
AF:=CROSS(AA1,BB1);<br />
DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;</p>
<p></p>
<p> </p>
页:
[1]