|
|

楼主 |
发表于 2005-3-5 04:38
|
显示全部楼层
泉水兄这一贴的总结,我编了个公式看了看,条件如下:
1〕当日或前一日出紫阳;
2〕J翻红;
3〕DIF翻红或上涨;
4〕DIF>DEA;
5〕C<E40;
不太灵,好像有些默认条件没有给出:(
附原码:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
T1:=DIF>REF(DIF,1) AND DIF>DEA;
PARTLINE(DIF,DIF>REF(DIF,1),RGB(255,50,0),DIF<ref(DIF,1),RGB(255,255,255));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);D:=SMA(K,3,1);
J:=3*K-2*D;T2:=J>REF(J,1);T3:=C<EMA(C,40);
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C<REF(O,1) AND f<0,1,0);
p1:=今小昨;
今小前:=IF(C<REF(O,2) AND f<0,1,0);
p2:=今小前;
TT4:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1;
T4:=TT4 OR REF(TT4,1);
XG:IF(T1 AND T2 AND T3 AND T4,0.1,0),COLORAAAAAA;
泉水: DRAWICON(XG=0.1,0.1,1); |
|
|