581.問(wèn):
求高手幫編一個(gè)連續(xù)三天以上收陰的選股公式
答(了無(wú)痕):
{連陰>=3天}
XG:COUNT(C<O OR C=O AND C<=REF(C,1),3)=3;
{陰十字也算陰}
582.問(wèn):
誰(shuí)有 70萬(wàn) 組合的源碼
答(阿耀):
我收集的
上去:ema(c,n1),colorred;
下來(lái):ema(c,n2),colorgreen;
中間:ema(下來(lái),n2),colorwhite,linethick2;
Varf1:=COUNT(CROSS(上去,中間),2)=1;
Varf2:=COUNT(CROSS(下來(lái),中間),2)=1;
ZAI:=FILTER(Varf1 AND Varf2,2);
DRAWTEXT(zai,中間,'¤再上去'),colorwhite;
DRAWTEXT(cross(上去,下來(lái)),下來(lái),'★上去↑'),colorred;
DRAWTEXT(cross(下來(lái),上去),下來(lái),'☆下來(lái)↓'),colorgreen;
Vv2:=REF(close,1);
Vv3:=SMA((close-Vv2),6,1)/SMA(ABS(close-Vv2),6,1)*100;
DRAWICON(ref(vv3,1)>81 and vv3<80,high,5);
DRAWTEXT(ref(vv3,1)>81 and vv3<80,high*1.39,'做頂↓'),coloryellow;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),colorred;
VarA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VarB:=EMA(0.667*REF(VarA,1)+0.333*VarA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VarA>=VarB and VarA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入');
Varr1:=SMA(MAX(CLOSE-ref(c,1),0),6,1)/SMA(ABS(CLOSE-ref(c,1)),6,1)*100;
DRAWICON(CROSS(82,Varr1),HIGH*1.05,5);//2
DRAWTEXT(CROSS(82,Varr1),high*1.08,'做頂↓'),coloryellow;
Var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
Var2:=REF(Var1,1);
Var3:=SMA(MAX(Var1-Var2,0),10,1)/SMA(ABS(Var1-Var2),10,1)*100;
HY3:=IF(COUNT(Var3<20,5)>=1 AND COUNT(Var1=LLV(Var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(hy3,low,'▲注意買入'),colorred;
n1 3/1/100 n2 5/1/100主圖 我n1選8 n2選60
583.問(wèn):
Var3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1),15,1));
Var4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1),15,1));
t7:=Var3>REF(Var4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
想要一個(gè)選出下面信號(hào)的粗選股公式出來(lái):
B7:=DRAWTEXT(t7 and COUNT(t7,30)=1,30,'☆注意 '),COLORYELLOW;
答(了無(wú)痕):
Var3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1),15,1));
Var4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))
*100,20,1),15,1));
t7:=Var3>REF(Var4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
XG:t7 and COUNT(t7,30)=1;
584.問(wèn):
如下式中:請(qǐng)幫寫:
1.zq1天數(shù)內(nèi),漲幅>ref(漲幅,1)時(shí)陽(yáng)線漲幅和。
2..zq1天數(shù)內(nèi),漲幅<ref(漲幅,1)時(shí)陰線跌幅和.
b:=ma(c,30);
jc:=refx(cross(b,ma(b,2)+0.0001) or cross(ma(b,2),b+0.0001) ,1);
zq1:BARSLAST(jc=1),LINETHICK0;
zf:=(c-ref(c,1))/ref(c,1)*100;
漲幅:sum(zf,zq1),Color0000FF,linethick1;
z1:=漲幅>ref(漲幅,1);
z2:=漲幅<ref(漲幅,1);
答(wzlhm ):
b:=ma(c,30);
jc:=refx(cross(b,ma(b,2)+0.0001) or cross(ma(b,2),b+0.0001) ,1);
zq1:BARSLAST(jc=1)+1,LINETHICK0;
zf:=(c-ref(c,1))/ref(c,1)*100;
漲幅:sum(zf,zq1),Color0000FF,linethick1;
z1:=漲幅>ref(漲幅,1);
z2:=漲幅<ref(漲幅,1);
{以上是你原來(lái)的代碼}
陽(yáng)線漲幅和:SUM(z1*zf*ISUP,zq1);{1.zq1天數(shù)內(nèi),漲幅>ref(漲幅,1)時(shí)陽(yáng)線漲幅和。}
陰線跌幅和:SUM(z2*zf*ISDOWN,zq1);{ 2..zq1天數(shù)內(nèi),漲幅<ref(漲幅,1)時(shí)陰線跌幅和.}
585.問(wèn):
比如說(shuō)我編一個(gè)關(guān)于K線的指標(biāo),可是如果全在圖上標(biāo)出文字,那圖面就太復(fù)雜了。能不能 等光標(biāo)移到那里,他才在光標(biāo)位置顯示"早晨之星"之類的?
答(雪狐):
是這樣!
smd:=BACKSET(REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),3);
DRAWTEXT( smd and SYSPARAM(1)=BARSCOUNT(c) ,l,'早晨之星'),SHIFT1 ,ALIGN1,
COLORyellow;
586.問(wèn):
這個(gè)公式應(yīng)該怎么寫[分析家]
KDJ指標(biāo)的日、周、月同時(shí)出現(xiàn)低位金叉?
答(一鳴):
{KDJ指標(biāo)的日、周、月同時(shí)出現(xiàn)低位金叉 }
input:n1(20),n2(30);
K1:="KDJ.K#DAY";
D1:="KDJ.D#DAY";
K2:="KDJ.K#WEEK";
D2:="KDJ.D#WEEK";
K3:="KDJ.K#MONTH";
D3:="KDJ.D#MONTH";
ck:=ref(k1,1)<=n1 and k2<=n2 and k3<=n2;
ck and cross(k1,k2+0.0009) and k2>d2 and k3>d3;
{真正同時(shí)金叉應(yīng)該這樣寫:(但選出股票的機(jī)率低)
ckw:=ref(cross(k2,d2+0.0009),barslast(k2<>ref(k2,1)));
ckm:=ref(cross(k3,d3+0.0009),barslast(k3<>ref(k3,1)));
ck and cross(k1,k2+0.0009) and ckw and ckm;}
587.問(wèn):
均線從粘連開(kāi)始發(fā)散這個(gè)公式怎么寫?
答(一鳴):
總覺(jué)得成功率不高,參考看看
{二十條均線的粘合度以三個(gè)點(diǎn)以內(nèi),然后向上發(fā)散}
ema10:=ema(c,10); ema20:=ema(c,20); ema30 :=ema(c,30); ema40 :=ema(c,40); ema50:=ema(c,50);
ema60:=ema(c,60); ema70:=ema(c,70); ema80:=ema(c,80); ema90:=ema(c,90); ema100:=ema(c,100);
ema110:=ema(c,110); ema120:=ema(c,120); ema130:=ema(c,130); ema140:=ema(c,140); ema150:=ema(c,150);
ema160:=ema(c,160); ema170:=ema(c,170); ema180:=ema(c,180); ema190:=ema(c,190); ema200:=ema(c,200);
k1:=max(ema10,max(ema20,max( ema30 ,max(ema40 ,max(ema50 ,max(ema60 ,max(ema70 ,
max(ema80,max(ema90 ,max(ema100,max(ema110,max( ema120 ,max(ema130,max( ema140 ,
max(ema150 ,max(ema160,max( ema170 ,max(ema180 ,max(ema190, ema200)))))))))))))))))));
k2:=min(ema10,min(ema20,min( ema30 ,min(ema40 ,min(ema50 ,min(ema60 ,min(ema70 ,
min(ema80,min(ema90 ,min(ema100,min(ema110,min( ema120 ,min(ema130,min( ema140 ,
min(ema150 ,min(ema160,min( ema170 ,min(ema180 ,min(ema190, ema200)))))))))))))))))));
k3:=ema10>ema20 and ema20>ema30 and ema30> ema40 and ema40> ema50 and ema50> ema60
and ema60>ema70 and ema70> ema80 and ema80>ema90 and ema90> ema100 and ema100>ema110
and ema110> ema120 and ema120>ema130 and ema130>ema140 and ema140> ema150 and
ema150> ema160 and ema160>ema170 and ema170>ema180 and ema180>ema190 and ema190>ema200 ;
k4:=ema10>ref(ema10,1) and ema20>ref(ema20,1) and ema30>ref(ema30,1) and ema40>ref(ema40,1) and
ema50>ref(ema50,1) and ema60>ref(ema60,1) and ema70>ref(ema70,1) and ema80>ref(ema80,1) and
ema90>ref(ema90,1) and ema100>ref(ema100,1) and ema110>ref(ema110,1) and ema120>ref(ema120,1) and
ema130>ref(ema130,1) and ema140>ref(ema140,1) and ema150>ref(ema150,1) and ema160>ref(ema160,1) and
ema170>ref(ema170,1) and ema180>ref(ema180,1) and ema190>ref(ema190,1) and ema200>ref(ema200,1);
k5:=barslast(k1/k2<=1.03)<=10;
cross(k3,0.5) and k4 and k5;
答(一鳴):
干脆再做一個(gè)均線數(shù)量可調(diào)整,愛(ài)用幾條線,就用幾條線,
在公式中轉(zhuǎn)來(lái)轉(zhuǎn)去,真的有點(diǎn)暈了
{二十條均線的粘合度在三個(gè)點(diǎn)以內(nèi),然后向上發(fā)散,
均線數(shù)量可調(diào),要用幾條就用幾條}
input:n(20,2,20);//n條均線
e1:=ema(c,10); e2:=ema(c,20); e3:=ema(c,30); e4:=ema(c,40); e5:=ema(c,50);
e6:=ema(c,60); e7:=ema(c,70); e8:=ema(c,80); e9:=ema(c,90); e10:=ema(c,100);
e11:=ema(c,110); e12:=ema(c,120); e13:=ema(c,130); e14:=ema(c,140); e15:=ema(c,150);
e16:=ema(c,160); e17:=ema(c,170); e18:=ema(c,180); e19:=ema(c,190); e20:=ema(c,200);
k1:=max(e1,max(e2,max( e3*(n>=3) ,max(e4 *(n>=4),max(e5*(n>=5) ,max(e6*(n>=6) ,
max(e7*(n>=7) ,max(e8*(n>=8),max(e9*(n>=9) ,max(e10*(n>=10),max(e11*(n>=11),
max( e12*(n>=12) ,max(e13*(n>=13),max( e14*(n>=14) ,max(e15*(n>=15) ,max(e16*(n>=16),
max( e17*(n>=17) ,max(e18*(n>=18) ,max(e19*(n>=19), e20*(n>=20))))))))))))))))))));
k2:=min(e1,min(e2,min( e3+(n<3)*10000 ,min(e4+(n<4)*10000 ,min(e5+(n<5)*10000 ,
min(e6+(n<6)*10000 ,min(e7+(n<7)*10000 ,min(e8+(n<8)*10000,min(e9+(n<9)*10000 ,
min(e10+(n<10)*10000,min(e11+(n<11)*10000,min( e12+(n<12)*10000 ,min(e13+(n<13)*10000,
min( e14+(n<14)*10000 ,min(e15 +(n<15)*10000,min(e16+(n<16)*10000,min( e17 +(n<17)*10000,
min(e18+(n<18)*10000 ,min(e19+(n<19)*10000, e20+(n<20)*10000)))))))))))))))))));
k3:=e1>e2 and if(n>=3,e2>e3,c>0) and if(n>=4,e3> e4,c>0) and if(n>=5,e4> e5,c>0) and if(n>=6,e5> e6,c>0) and
if(n>=7,e6>e7,c>0) and if(n>=8,e7> e8,c>0) and if(n>=9,e8>e9,c>0) and if(n>=10,e9> e10,c>0) and if(n>=11,e10>e11,c>0) and
if(n>=12,e11> e12,c>0) and if(n>=13,e12>e13,c>0) and if(n>=14,e13>e14,c>0) and if(n>=15,e14> e15,c>0) and if(n>=16,e15> e16,c>0)
and if(n>=17,e16>e17,c>0) and if(n>=18,e17>e18,c>0) and if(n>=19,e18>e19,c>0) and if(n>=20,e19>e20,c>0) ;
k4:=e1>ref(e1,1) and e2>ref(e2,1) and if(n>=3,e3>ref(e3,1),c>0) and if(n>=4,e4>ref(e4,1),c>0) and if(n>=5,e5>ref(e5,1),c>0) and
if(n>=6,e6>ref(e6,1),c>0) and if(n>=7,e7>ref(e7,1),c>0) and if(n>=8,e8>ref(e8,1),c>0) and if(n>=9, e9>ref(e9,1),c>0) and
if(n>=10,e10>ref(e10,1),c>0) and if(n>=11,e11>ref(e11,1),c>0) and if(n>=12,e12>ref(e12,1),c>0) and if(n>=13,e13>ref(e13,1),c>0) and
if(n>=14,e14>ref(e14,1),c>0) and if(n>=15, e15>ref(e15,1),c>0) and if(n>=16,e16>ref(e16,1),c>0) and if(n>=17,e17>ref(e17,1),c>0) and
if(n>=18,e18>ref(e18,1),c>0) and if(n>=19,e19>ref(e19,1),c>0) and if(n>=20,e20>ref(e20,1),c>0) ;
k5:=barslast(k1/k2<=1.03)<=10;
cross(k3,0.5) and k4 and k5;
588.問(wèn):
請(qǐng)問(wèn)分析家的“PARTLINE(x2,x2>x3,rgb(255,0,0),x2<x3,rgb(0,0,255));”如何轉(zhuǎn)換成飛 狐的語(yǔ)句
答(知無(wú)不言):
PARTLINE(x2>x3,x2);
PARTLINE(x2<x3,x2);
答( zjxu58 ):
PARTLINE(x2>x3,x2),COLORRED;
PARTLINE(x2<x3,x2),COLORBLUE;
加上了顏色代碼;
589.問(wèn):
幫忙把下面的"長(zhǎng)線牛股(分析家)"公式改編成飛狐公式?
MA1:EMA(CLOSE,21),color00ff00;
MA2:EMA(CLOSE,120),colorred ;
頂:MA(CLOSE,30) + 2*STD(CLOSE,60), COLORYELLOW,pointdot, linethick2 ;
底:MA(CLOSE,30) - 2*STD(CLOSE,60) ,COLORYELLOW ,pointdot, linethick2;
STICKLINE(MA1>MA2,MA1,MA2,1,0),colorFF66FF ;
STICKLINE(MA2>MA1,MA1,MA2,1,0),color00FF00 ;
轉(zhuǎn)向:ZIG(3,10), colorFF3300 ;
MA3:MA(CLOSE,2),colorred,LINETHICK2;
答(041013);
飛狐可以引用
590.問(wèn):
做一個(gè)上漲了一段,上穿過(guò)250天均線后,又回探250天均線的指標(biāo)!
答(一鳴):
{上漲了一段,上穿過(guò)250天均線后,又回探250天均線}
m1:=ma(c,250);
k1:=barslast(cross(c,ma(c,250)));
c/m1<1.005 and ref(all(c>m1,k1),1) and hhv(h/m1,k1+1)>=1.01;
591.問(wèn):
求助如何把技術(shù)指標(biāo)改為選股指標(biāo)
VarF:=TROUGHBARS(3,15,1)<4;
升跌:EMA((C/MA((2*C+H+L)/4,30)-1)*100,3)colorstick;
PARTLINE(C,升跌)colorgreen;
PARTLINE(C,0)colorred,linethick2;
STICKLINE(FILTER(VarF=1,5),50,0,10,0)colorblue;
DRAWICON(FILTER(VarF=1,5),50,1);
DRAWTEXT(FILTER(VarF=1,5),25,'閃電出擊')coloryellow;
條件是“閃電出擊'
答( 簡(jiǎn)單·趨勢(shì) ):
{閃電出擊}
VarF:=TROUGHBARS(3,15,1)<4;
FILTER(VarF=1,5);
看看是不是這個(gè)信號(hào)
答(知無(wú)不言):
VarF:TROUGHBARS(3,15,1)<4;
用了ZIG類函數(shù),未正確理解ZIG類函數(shù)的特點(diǎn)前,不要輕易根據(jù)信號(hào)進(jìn)行交易。
592.問(wèn):
編一個(gè)MACD選股公式,MACD的快線高于慢線,快線下跌,不跌破慢線上調(diào),同時(shí)MACD的快線 和慢線都高于0軸,股價(jià)高于60日平均線。
答(知無(wú)不言):
diff:="macd.diff";
dea:="macd.dea";
c>ma(c,60)and diff>ref(diff,1)and ref(diff,1)<ref(diff,2)and dea>0 and diff>dea ;
593.問(wèn):
怎么樣用分析家顯示120分鐘K線
答(yyzzqq):
用多日線。
594.問(wèn):
下面是背離的主圖,能不能幫我改一下錯(cuò)誤,改成分析家的呀
MA3:MA(CLOSE,3);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(diff,dea),1));
B1:=REF(C,A1+1)>C AND REF(diff,A1+1)DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),colorgreen;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k:=SMA(RSV,3,1);
d:=SMA(k,3,1);
A2:=BARSLAST(REF(CROSS(k,d),1));
B2:=REF(C,A2+1)>C AND REF(k,A2+1)DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),coloryellow;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),colorcyan;
C1:=BARSLAST(REF(CROSS(dea,diff),1));
D1:=REF(C,C1+1)diff AND CROSS(dea,diff);
DRAWTEXT(IF(D1>0,1,0),H+0.1,'MACD頂背'),colorwhite;
C2:=BARSLAST(REF(CROSS(d,K),1));
D2:=REF(C,C2+1)k AND CROSS(d,K);
DRAWTEXT(IF(D2>0,1,0),H+0.25,'KDJ頂背'),colorwhite;
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)RSI1 AND CROSS(RSI2,RSI1);
DRAWTEXT(IF(D3>0,1,0),H+0.4,'RSI頂背'),colormagenta;
答(yyzzqq):
MA3:MA(CLOSE,3);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(diff,dea),1));
B1:=REF(C,A1+1)>C AND REF(diff,A1+1);
DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),colorgreen;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k:=SMA(RSV,3,1);
d:=SMA(k,3,1);
A2:=BARSLAST(REF(CROSS(k,d),1));
B2:=REF(C,A2+1)>C AND REF(k,A2+1);DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),coloryellow;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1);DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),colorcyan;
C1:=BARSLAST(REF(CROSS(dea,diff),1));
D1:=REF(C,C1+1)>C AND CROSS(dea,diff);
DRAWTEXT(IF(D1>0,1,0),H+0.1,'MACD頂背'),colorwhite;
C2:=BARSLAST(REF(CROSS(d,K),1));
D2:=REF(C,C2+1)>C AND CROSS(d,K);
DRAWTEXT(IF(D2>0,1,0),H+0.25,'KDJ頂背'),colorwhite;
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)>C AND CROSS(RSI2,RSI1);
DRAWTEXT(IF(D3>0,1,0),H+0.4,'RSI頂背'),colormagenta;
595.問(wèn):
誰(shuí)能提供結(jié)構(gòu)波浪公式原碼
答(無(wú)名山人):
想要一樣的在這. (分析家公式)
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高點(diǎn)}
A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低點(diǎn)}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低點(diǎn)出現(xiàn)在同一K線上時(shí)可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{過(guò)濾后低點(diǎn)}
L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{過(guò)濾后高點(diǎn)}
DRAWLINE(LD,L,HD,H,0),coloryellow,LINETHICK1,POINTDOT;
DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT;
J1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1);
DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORWHITE,LINETHICK1,POINTDOT;
A3:=H<REF(H,REF(BARSLAST(HD),1)+1);
B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));
D3:=A3 AND B3 AND HD; E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2); HH:=E3>REF(E3,1);{找出全部長(zhǎng)期高點(diǎn)}
A4:=L>REF(L,REF(BARSLAST(LD),1)+1);
B4:=REF(L,REF(BARSLAST(LD),1)+1)<REF(L,REF(BARSLAST(LD),1)+2+REF(BARSLAST(LD),REF(BARSLAST(LD),1)+2));
D4:=A4 AND B4 AND LD;E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);LL:=E4>REF(E4,1);{找出全部長(zhǎng)期低點(diǎn)}
DRAWICON(HH,H,10),ALIGN1; DRAWICON(LL,L,12),ALIGN1;
H3:=HH OR BARSTATUS=2 OR BARSCOUNT(C)=1;{后面進(jìn)行過(guò)濾,方法同前.只是不用考慮高低點(diǎn)出現(xiàn)在同一K線}
X3:=REF(BARSLAST(H3),1)+1;F3:=BACKSET(H3 AND COUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(10,20)),X3));
G3:=F3>REF(F3,1);I3:=BACKSET(G3,2);LZ:=I3>REF(I3,1);{長(zhǎng)期低點(diǎn),也可供引用}
L4:=LZ OR BARSTATUS=2 OR BARSCOUNT(C)=1;
X4:=REF(BARSLAST(L4),1)+1;F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));
G4:=F4>REF(F4,1); I4:=BACKSET(G4,2); HZ:=I4>REF(I4,1);{長(zhǎng)期高點(diǎn),也可供引用}
DRAWLINE(HZ,H,LZ,L,0),COLORGREEN,LINETHICK1;
DRAWLINE(LZ,L,HZ,H,0),COLORRED,LINETHICK1;{長(zhǎng)期連線}
K1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);K2:=K1>REF(K1,1);
DRAWLINE(K2,IF(HZ,H,L),BARSTATUS=2,C,0),COLORGREEN,LINETHICK1;
低一:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
一低:=低一>REF(低一,1);
低二:=BACKSET(一低,REF(BARSLAST(LD),1)+2);
二低:=低二>REF(低二,1);
DRAWLINE(二低,L,一低,L,1),COLORMAGENTA,LINETHICK1;
高一:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
一高:=高一>REF(高一,1);
高二:=BACKSET(一高,REF(BARSLAST(HD),1)+2);
二高:=高二>REF(高二,1);
DRAWLINE(二高,H,一高,H,1),COLORMAGENTA,LINETHICK1;
前一低:REF(L,BARSLAST (一低)),COLORYELLOW,POINTDOT,LINETHICK2;
前二低:REF(L,BARSLAST (二低)),COLORFF66FF,POINTDOT,LINETHICK2;
前一高:REF(H,BARSLAST(一高)),COLORFFEEBB,POINTDOT,LINETHICK2;
前二高:REF(H,BARSLAST(二高)),COLORFF0000,POINTDOT,LINETHICK2;
短高:= REF(H,BARSLAST(一高));
短低:= REF(L,BARSLAST(一低));
短比:(C-短低)/(短高-短低),LINETHICK0;
常數(shù):=REF(INDEXC,BARSLAST(一低))/REF(C,BARSLAST(一低));
疊1:INDEXC/常數(shù),color008eFF,LINETHICK0;
PARTLINE(疊1,1),color008eFF;
常數(shù)2:=REF(INDEXC,BARSLAST(二低))/REF(C,BARSLAST(二低));
疊2:INDEXC/常數(shù)2,color008eFF,LINETHICK0;
PARTLINE(疊2,1),color008eFF;
s:=NUMTOSTRN(DAYS1970-DATETOD1970(REF(DATE,BARSLAST(LD))),0);
s1:=NUMTOSTRN(DAYS1970-DATETOD1970(REF(DATE,BARSLAST(HD))),0);
s2:=NUMTOSTRN(H,2);
s3:=NUMTOSTRN(L,2);
{DRAWTEXT(HD,1.02*H,s),COLORGREEN;
DRAWTEXT(LD,0.98*L,s1),COLORRED;
DRAWTEXT(HD,H*(1+0.002),s2),COLORff9933,ALIGN0;
DRAWTEXT(LD,L*(1.001-0.002),s3),COLORYELLOW,ALIGN0;}
DRAWTEXT(D1,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORff9933;
DRAWTEXT(二高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(D2,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
DRAWTEXT(二低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
var3:=(CLOSE+HIGH+LOW)/3;
A:=EMA(var3,10);
B:=REF(A,1);
PARTLINE( B,A>B,RGB(255,0,0),A<B,RGB(0,255,0),1,RGB(0,0,255)),linethick2;
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,8);
趨勢(shì):MA(CLOSE,5),COLORWHITE,LINETHICK2;
答(冰綠茶12):
新結(jié)構(gòu)波浪 FXJ50用 附原碼
{以下語(yǔ)句為FXJ50新結(jié)構(gòu)波浪 n=2}
A1:=REF(HIGH,3)=HHV(HIGH,N*3+1);
B1:=FILTER(A1,3);
C1:=BACKSET(B1,3+1);
D1:=FILTER(C1,3);{高點(diǎn)}
A2:=REF(LOW,3)=LLV(LOW,N*3+1);
B2:=FILTER(A2,3);
C2:=BACKSET(B2,3+1);
D2:=FILTER(C2,3);{低點(diǎn)}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;{高低點(diǎn)出現(xiàn)在同一K線上時(shí)可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2));
H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{過(guò)濾后低點(diǎn)}
L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{過(guò)濾后高點(diǎn)}
{以上語(yǔ)句為新結(jié)構(gòu)波浪}
A3:=H<REF(H,REF(BARSLAST(HD),1)+1);
B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));
D3:=A3 AND B3 AND HD; E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);
HH:=E3>REF(E3,1) ;{找出全部長(zhǎng)期高點(diǎn)}
A4:=L>REF(L,REF(BARSLAST(LD),1)+1);
B4:=REF(L,REF(BARSLAST(LD),1)+1)<REF(L,REF(BARSLAST(LD),1)+2+REF(BARSLAST(LD),REF(BARSLAST(LD),1)+2));
D4:=A4 AND B4 AND LD; E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);
LL:=E4>REF(E4,1);{找出全部長(zhǎng)期低點(diǎn)}
H3:=HH OR BARSTATUS=2 OR BARSCOUNT(C)=1; {后面進(jìn)行過(guò)濾,方法同前。只是不用考慮高低點(diǎn)出現(xiàn)在同一K線}
X3:=REF(BARSLAST(H3),1)+1;
F3:=BACKSET(H3 AND COUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(10,20)),X3));
G3:=F3>REF(F3,1);
I3:=BACKSET(G3,2);
LZ:=I3>REF(I3,1); {長(zhǎng)期低點(diǎn),也可供引用}
L4:=LZ OR BARSTATUS=2 OR BARSCOUNT(C)=1;
X4:=REF(BARSLAST(L4),1)+1;
F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));
G4:=F4>REF(F4,1); I4:=BACKSET(G4,2); HZ:=I4>REF(I4,1);{長(zhǎng)期高點(diǎn),也可供引用}
{以下是十條趨勢(shì)線原碼}
低一:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
一低:=低一>REF(低一,1);
低二:=BACKSET(一低,REF(BARSLAST(LD),1)+2);
二低:=低二>REF(低二,1);
低三:=BACKSET(二低,REF(BARSLAST(LD),1)+2);
三低:=低三>REF(低三,1);
低四:=BACKSET(三低,REF(BARSLAST(LD),1)+2);
四低:=低四>REF(低四,1);
低五:=BACKSET(四低,REF(BARSLAST(LD),1)+2);
五低:=低五>REF(低五,1);
低六:=BACKSET(五低,REF(BARSLAST(LD),1)+2);
六低:=低六>REF(低六,1);
高一:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
一高:=高一>REF(高一,1);
高二:=BACKSET(一高,REF(BARSLAST(HD),1)+2);
二高:=高二>REF(高二,1);
高三:=BACKSET(二高,REF(BARSLAST(HD),1)+2);
三高:=高三>REF(高三,1);
高四:=BACKSET(三高,REF(BARSLAST(HD),1)+2);
四高:=高四>REF(高四,1);
高五:=BACKSET(四高,REF(BARSLAST(HD),1)+2);
五高:=高五>REF(高五,1);
高六:=BACKSET(五高,REF(BARSLAST(HD),1)+2);
六高:=高六>REF(高六,1);
前一低:REF(L,BARSLAST(一低)),COLORGREEN,POINTDOT,LINETHICK2;
前二低:REF(L,BARSLAST(二低)),COLORGREEN,POINTDOT,LINETHICK2;
前三低:REF(L,BARSLAST(三低)),COLORGREEN,POINTDOT,LINETHICK2;
前四低:REF(L,BARSLAST(四低)),COLORGREEN,POINTDOT,LINETHICK2;
前五低:REF(L,BARSLAST(五低)),COLORGREEN,POINTDOT,LINETHICK2;
前六低:REF(L,BARSLAST(六低)),COLORGREEN,POINTDOT,LINETHICK2;
前一高:REF(H,BARSLAST(一高)),COLORRED,POINTDOT,LINETHICK2;
前二高:REF(H,BARSLAST(二高)),COLORRED,POINTDOT,LINETHICK2;
前三高:REF(H,BARSLAST(三高)),COLORRED,POINTDOT,LINETHICK2;
前四高:REF(H,BARSLAST(四高)),COLORRED,POINTDOT,LINETHICK2;
前五高:REF(H,BARSLAST(五高)),COLORRED,POINTDOT,LINETHICK2;
前六高:REF(H,BARSLAST(六高)),COLORRED,POINTDOT,LINETHICK2;
DRAWLINE(二低,L,一低,L,1),COLORYELLOW,LINETHICK1;
DRAWLINE(三低,L,二低,L,1),COLORYELLOW,LINETHICK1;
DRAWLINE(四低,L,三低,L,1),COLORYELLOW,LINETHICK1;
DRAWLINE(五低,L,四低,L,1),COLORYELLOW,LINETHICK1;
DRAWLINE(六低,L,五低,L,1),COLORYELLOW,LINETHICK1;
DRAWLINE(二高,H,一高,H,1),COLORFF00FF,LINETHICK1;
DRAWLINE(三高,H,二高,H,1),COLORFF00FF,LINETHICK1;
DRAWLINE(四高,H,三高,H,1),COLORFF00FF,LINETHICK1;
DRAWLINE(五高,H,四高,H,1),COLORFF00FF,LINETHICK1;
DRAWLINE(六高,H,五高,H,1),COLORFF00FF,LINETHICK1;
DRAWTEXT(一低 or 二低 or 三低 or 四低 or 五低 or 六低 ,L*0.98,'.'),COLOR000000;
DRAWTEXT(一高 or 二高 or 三高 or 四高 or 五高 or 六高 ,H*1.02,'.'),COLOR000000;
DRAWTEXT(一高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(二高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(三高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(四高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(五高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(六高,H,NUMTOSTRN(BARSLAST(LD),0)+'天'+NUMTOSTRN(h,2)),ALIGN1,VALIGN2,COLORYELLOW;
DRAWTEXT(一低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
DRAWTEXT(二低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
DRAWTEXT(三低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
DRAWTEXT(四低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
DRAWTEXT(五低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
DRAWTEXT(六低,L,NUMTOSTRN(BARSLAST(HD),0)+'天'+NUMTOSTRN(L,2)),ALIGN1,COLORYELLOW;
596.問(wèn):
能否將買點(diǎn)改成條件選股公式
Var1:=BARSCOUNT(CLOSE)*3.142/180;
A2: SIN(Var1*8)*100;
A3: COS(Var1*8)*100;
X1: 0;
Var1:=MA(CLOSE,5);
Var2:=MA(CLOSE,10);
Var3:=MA(CLOSE,20);
Var4:=MA(CLOSE,30);
Var5:=(Var1+Var2+Var3+Var4)/4;
Var6:=(Var5-REF(Var5,5))/REF(Var5,5)*1500;
Var7:=(Var5-REF(Var5,5))/REF(Var5,5)*1500;
Var8:=EMA(Var6,8);
底部注意: STICKLINE(Var6>REF(Var6,1) AND Var6<0 AND Var6<Var8,Var6,0,5,0);
低位轉(zhuǎn)強(qiáng): STICKLINE(Var8>REF(Var8,1) AND Var6<0 AND Var6>Var8,Var8,0,5,0),
COLORYELLOW;
買點(diǎn): STICKLINE(Var6>REF(Var6,1) AND Var6>0 AND Var8<0,Var6,Var8,10,0);
DRAWICON(FILTER(Var6>REF(Var6,1) AND Var6>0 AND Var8<0,30),-140,4);
DRAWTEXT(FILTER(Var6>REF(Var6,1) AND Var6>0 AND Var8<0,30),-140,'->買
點(diǎn)'),COLORred;
堅(jiān)定持股: STICKLINE(Var8>REF(Var8,1) AND Var8>0,Var6,0,5,0),COLORred;
謹(jǐn)慎觀望: STICKLINE(Var6<REF(Var6,1) AND Var8>REF(Var8,1)
AnD Var6>0,Var6,Var8,10,0);
果斷持幣: STICKLINE(Var6<REF(Var6,1) AND Var6<Var8,Var6,Var8,5,1),COLORCYAN;
答(achen):
江恩選股原碼
Var1:=MA(CLOSE,5);
Var2:=MA(CLOSE,10);
Var3:=MA(CLOSE,20);
Var4:=MA(CLOSE,30);
Var5:=(Var1+Var2+Var3+Var4)/4;
Var6:=(Var5-REF(Var5,5))/REF(Var5,5)*1500;
Var7:=(Var5-REF(Var5,5))/REF(Var5,5)*1500;
Var8:=EMA(Var6,8);
買點(diǎn): Var6>REF(Var6,1) AND Var6>0 AND Var8<0;
597.問(wèn):
是否可以請(qǐng)幫我寫個(gè)公式:MACD里的MACD在DIFF和DEA在沒(méi)有死亡交叉的前提下,
MACD柱狀線回落后又重新放大的公式。在放大的時(shí)候,信號(hào)要用大于0的箭頭表示出
來(lái), MACD的曲線,就不要寫在上面了
答(流光之星):
{12\26\9\5\5}
DIFF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
MACD:2*(DIFF-DEA), COLORSTICK;
aa:=cross(diff,dea);
aaa:=barslast(aa)=N1;
bb:=ma(macd,N);
cc:=( ref(bb,0)>ref(bb,1) and ref(bb,1)>ref(bb,2) and ref(bb,2)>ref(bb,3) and ref(bb,3)>
ref(bb,4) and ref(bb,4)>ref(bb,5) );
dd:=( ref(bb,5)<ref(bb,6) and ref(bb,6)<ref(bb,7) and ref(bb,7)<ref(bb,8) and ref(bb,8)<ref
(bb,9) );
eee:if(aaa and cc and dd,1,0),linethick0,precis0;
drawicon(aaa and cc and dd,0.5,4);
{選股與評(píng)價(jià)用EEE>0,N1、N自調(diào);cc、DD是放大與縮小的區(qū)間,自改};
598.問(wèn):
寫一個(gè)換手率指標(biāo)能夠看到一個(gè)月,三個(gè)月,半年,一年的換手率
答(流光之星):
AA:=DATE>=D;
BB:=DATE<=D1;
累計(jì)換手率%:sum(if(AA and BB,vol,0),0)*100/capital;
累計(jì)換手率2%:sum(vol,X)*100/capital;
{D=1050101,D1=1050519;05.01.01日--05.05.19日;
X=30,30日累計(jì)換手}
599.問(wèn):
問(wèn)題: 相信很多FXJ用戶和我一樣,不會(huì)太注意計(jì)算結(jié)果準(zhǔn)確性的問(wèn)題,
因?yàn)檎f(shuō)實(shí)話,我想那么幾位小數(shù)點(diǎn)不會(huì)有太大的影響,可實(shí)際卻是這樣的:
a:amout;
b:amout/10;
c:amout*100/100;
這三組數(shù)據(jù)理應(yīng)是相等的——a=b*10=c;可實(shí)際在分析家中結(jié)果會(huì)如何,試一下。我暈死過(guò)去,
也沒(méi)差這么多的,原本以為C差一點(diǎn)是正常的,因?yàn)榉糯罅?00倍在先,可能超出計(jì)算大數(shù)(放在
B股里是a=c可以證明),沒(méi)想到實(shí)際情況比較糟糕,在做除運(yùn)算時(shí),6位數(shù)就過(guò)不了要出錯(cuò);
鉆心蟲(chóng)說(shuō)超過(guò)2的24次方就會(huì)出錯(cuò),d:16777217+1,軟件會(huì)顯示16777216,這個(gè)我已經(jīng)證實(shí)了,
奇怪的是在測(cè)試B股時(shí),隨便舉例:e:3435782/10,軟件會(huì)顯示343578.188、還有183117/10,
會(huì)顯示18311.699,怪的是,這種變化沒(méi)有規(guī)律,不是數(shù)值大于某個(gè)值時(shí)一定出錯(cuò),好像是隨機(jī)的。
這是不是代表我們用AMOUNT/常數(shù)、或是做統(tǒng)計(jì)、求和,得到的最后值都要打個(gè)問(wèn)號(hào)了?
看似小的誤差對(duì)測(cè)試平臺(tái)最后造成的累計(jì)影響大不大?如何解決
答(竹林):
“e:3435782/10,軟件會(huì)顯示343578.188、還有183117/10,會(huì)顯示18311.699”
好像是四舍五入的緣故。你看343578.188后面的0.188進(jìn)到個(gè)位不就是2,343578.188*
10 等于3435782。
答(jsyjsybt):
分析家和飛狐都存在這個(gè)問(wèn)題,原因是分析家和飛狐都采用單精度實(shí)數(shù)(Float)
進(jìn)行運(yùn)算,目的是為了提高軟件的執(zhí)行速度,而單精度實(shí)數(shù)只有最多七位有效數(shù)字,
第七位之后的數(shù)就是隨機(jī)的,所以就會(huì)出現(xiàn)這種情況。但對(duì)測(cè)試不會(huì)產(chǎn)生影響。如
果用雙精度實(shí) 數(shù)運(yùn)算就不會(huì)有這種現(xiàn)象!打開(kāi)十字光標(biāo)移動(dòng),每只股票都會(huì)有這種
現(xiàn)象
600.問(wèn):
一根水平線的兩個(gè)點(diǎn)怎樣編寫?我用的《分析家》。
答(知無(wú)不言):
在圖形上繪制直線段。
用法:
DRAWLINE(COND1,PRICE1,COND2,PRICE2,EXPAND),當(dāng)COND1條件滿足時(shí),在PRICE1位置畫直線起點(diǎn),
當(dāng)COND2條件滿足時(shí),在PRICE2位置畫直線終點(diǎn),EXPAND為延長(zhǎng)類型。
例如:DRAWILINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),LOW,1)表示
在創(chuàng)20天新高與創(chuàng)20天新低之間畫直線并且向右延長(zhǎng)。