郎少 发表于 2010-1-25 10:45
FD5 [最佳买入点] <BR>LC:=REF(CLOSE,1);<BR>RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);<BR>TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);<BR>HD:=(HIGH - REF(HIGH,1));<BR>LD:=(REF(LOW,1) - LOW);<BR>DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);<BR>DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);<BR>PDI:=((DMP * 100) / TR1);<BR>MDI:=((DMM * 100) / TR1);<BR>ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);<BR>AV:=(RSI5 + ADX);<BR>DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);<BR>WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));<BR>NEWVOL:=(RSI5 - WR10);<BR>最佳买入:=(AV + NEWVOL);<BR>买入选股:IF(CROSS(最佳买入,0),4,0),STICK,COLOR00FFFF,LINETHICK2;<BR>VARA1:=SMA(买入选股,3,1);<BR>VARA2:=SMA(VARA1,3,1),COLOR0000FF;<BR>VARA3:=SMA(VARA2,3,1),COLOR00FFFF;<BR>建仓买点:IF(CROSS(VARA2,VARA3) AND (VARA2<40),5,0* 10000),COLOR0000FF,LINETHICK1;<BR>STICKLINE(建仓买点,0,1.5,6,0),COLORFF80FF;<BR>STICKLINE(建仓买点,0.5,2.8,2,0),COLOR3000FF;<BR>RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50); <BR>K:=SMA(RSV,3,1); <BR>D:=SMA(K,3,1); <BR>J:=3*K-2*D; <BR>X:=LLV(J,2)=LLV(J,8); <BR>最佳买入时机: IF(CROSS(J,3),1,0),STICK,COLORFFFF00;<BR>STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;<BR>STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;<BR>STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;<BR>机构建仓: IF(最佳买入<5,-0.5,0),STICK,COLOR00FF00,LINETHICK1; <BR>机构建仓日:STICKLINE(机构建仓,0,-1,4,1),COLOR00FF00,LINETHICK5;<BR>趋势:3*SMA((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2,COLORFF99FF,NODRAW;<BR>备钱: IF(趋势<=20,-0.8,0),COLORD0D0D0,STICK,LINETHICK3;<BR>快买: IF(趋势<=10,1,0),COLORFF38FF,STICK,LINETHICK3;<BR>BIAS1:=(C-MA(C,6))/MA(C,6)*100,COLORFFDDCC;<BR>BIAS2:(C-MA(C,13))/MA(C,13)*100,COLORFFFFFF,LINETHICK1;<BR>BIAS3:=(C-MA(C,26))/MA(C,26)*100,COLORFFFFFF,LINETHICK1;<BR>乖离:(BIAS1+2*BIAS2+3*BIAS3)/6,COLOR00FFFF;<BR>乖离超限:MA(乖离,3),COLORFF80FF;<BR>STICKLINE(CROSS(乖离,乖离超限) AND 乖离超限<-9,-4,0,1,1),COLORFFFFFF;<BR>STICKLINE(CROSS(乖离超限,乖离) AND 乖离>10,6,0,3,0),COLORFF88FF;<BR>DRAWBAND(MA(乖离,1),RGB(240,120,40),MA(乖离超限,1),RGB(256,200,20));<BR>警跌:IF(BIAS2<REF(BIAS2,1),BIAS2,DRAWNULL),COLORFF6128,LINETHICK3;<BR>回升:IF(BIAS2>REF(BIAS2,1),BIAS2,DRAWNULL),COLOR00FFFF,LINETHICK3;<BR>R:SMA(MAX(CLOSE- REF(C,1),0),6,1)/SMA(ABS(CLOSE- REF(C,1)),6,1)*100,COLORFFCCFF,NODRAW;<BR>R2:SMA(MAX(CLOSE- REF(C,1),0),13,1)/SMA(ABS(CLOSE- REF(C,1)),13,1)*100,COLOR00CCFF,NODRAW;<BR>STICKLINE(CROSS(R2,R) AND R2>78,2,0,3,-1),COLOR30FFFF;<BR>CC:=(C-REF(C,1))/REF(C,1)*100>1.2;<BR>DD:=L<MA(C,5)*0.921;<BR>EE:=V<MA(V,5)*1.5;<BR>老鼠仓:=(L<(AMOUNT/V)*0.9) AND CC AND DD AND EE,LINETHICK0,COLOR0099FF;<BR>DRAWTEXT(老鼠仓,-5,'老鼠仓'),COLORFFFFFF;<BR>搏击:=IF((CLOSE>REF(CLOSE,1)),88,0);<BR>VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (搏击>0),91,0),NODRAW;<BR>DRAWTEXT(FILTER((VAR4AA>90),45),-3,'搏击 '),COLORFFFF00;<BR>选底:TROUGHBARS(3,15,1)<4,NODRAW;<BR>DRAWTEXT(FILTER(选底=1,3),-2,'底部'),COLOR00FF00;<BR>头部:=IF((PEAKBARS(3,15,1)<10)=1,2,0);<BR>快逃:=IF(头部>REF(头部,1),H,0),COLORWHITE,NODRAW;<BR>DRAWTEXT(快逃=H,6,'头部'),COLOR0000FF,LINETHICK1;<BR>STICKLINE(CROSS(乖离,BIAS1) AND BIAS2>15,乖离,0,1,0),COLOR3300FF;<BR>DRAWICON(CROSS(乖离,BIAS1*0.382),-1,1),COLORGR肚儿歪 发表于 2010-1-25 12:02
<P>谢谢郎版提供公式.会有试试看</P>天之涯 发表于 2010-1-25 12:31
当前公式 : 最佳买入点 (条件选股公式) <BR>错误句 : FD5 [最佳买入点] <BR>LC:=REF(CLOSE,1) <BR>详细信息 : 在变量 LC 前又错误的定义一次变量! <BR>错误起始位置 : 19 ; 长度: 2七月里的冬天 发表于 2010-1-25 15:38
公式中未来函数较多,使用要小心。天天都有好心情 发表于 2010-1-28 20:53
<P>郎少管理员您好!为什么把第一和第末句删掉才能用,对使用有影响吗?谢谢</P>旺旺精彩 发表于 2010-4-9 18:19
阳光好友 发表于 2010-5-8 21:08
但不能看到它的优点呀。为什么呢追风的少年 发表于 2010-5-9 23:08
<FIELDSET><LEGEND><B>天天都有好心情 </B>于 2010-1-28 20:53:38 在大作中提到</LEGEND><P>郎少管理员您好!为什么把第一和第末句删掉才能用,对使用有影响吗?谢谢</P></FIELDSET>
大槐树 发表于 2010-5-10 14:37
ddddddddddddddddd千羽 发表于 2010-5-16 00:11
<P>有未来函数 新手还是慎用的好</P>健康就快乐 发表于 2010-9-21 22:39
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK博飞 发表于 2010-9-24 19:23
COLORGR 改成【COLORGREEN】李理 发表于 2016-9-17 08:25
谢谢郎版提供公式随梦而飞 发表于 2016-9-18 20:47
顶急急急急急急随梦而飞 发表于 2016-9-18 20:48
顶急急急
页:
[1]
2