一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

編寫公式 疑難問題1000例(8)

 wcx111 2015-02-07


 

 

 


73.問:
      幫我編寫一個市凈率公式,公式很簡單,但我不知道誰和誰比啦
   答(多多):
       參考市凈率=最新收盤價/ 上年末每股凈資產(chǎn)
       c/FINANCE(34);2005-9-30 17:31:00 zmr666


 
74.問:
      能否遍一個分析家的資金K線
   答(馨蕓):
      無法知道資金K線思路,但三豐老師的OL類似,我加上紅黑K棒的紅黑量,另是以KD決定的紅黑量,請 參考(飛狐)
       KS:=(C-MA(C,13))/MA(C,13)*(-100);
       RKS:=REF(KS,1);
       MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;
       閉視:STICKLINE(KS>=8,H,L,0,1),colorwhite,linethick2;
       毀粟:STICKLINE(MLS=1,H,L,0,1),colormagenta,linethick2;
       STICKLINE(C>=O,C,O,8,0) COLORred;
       STICKLINE(C<=O,C,O,8,0) COLORgreen;
       STICKLINE(KS>=8,O,C,8,1),colorwhite,linethick2;
       STICKLINE(MLS=1,O,C,8,1),colormagenta,linethick2;
       EMA(C,10)colorcyan;
       EMA(KS/10+EMA(C,10),3)colorff8888,linethick2;
       RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
       短K:=SMA(RSV,3,1),LINETHICK0 ,COLORWHITE;
       短D:=SMA(短K,3,1),LINETHICK1 ,COLORYELLOW;
       BB:=HHV(VOL,SYSPARAM(3)-SYSPARAM(2));
       HH:=SYSPARAM(4);
       LL:=SYSPARAM(5);
       TT:=IF(HH-LL<4,0.5,1);
       STICKLINE(c>=o,vol/BB*4.8*TT+LL,LL,4,1)color9090EE;
       STICKLINE(c<o,vol/BB*4.8*TT+LL,LL,4,1)COLORblue;
       // STICKLINE(短K>=短D,vol/BB*3.8*TT+LL,LL,4,1)color9090EE;
       // STICKLINE(短K<短D,vol/BB*3.8*TT+LL,LL,4,1)COLORgreen;
       ma(vol/BB*4.8*TT+LL,3);
       ma(vol/BB*4.8*TT+LL,13);
       ...............
       KS:=(C-MA(C,13))/MA(C,13)*(-100);
       RKS:=REF(KS,1);
       MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;
       閉視:STICKLINE(KS>=8,H,L,0,1),colorwhite,linethick2;
       毀粟:STICKLINE(MLS=1,H,L,0,1),colormagenta,linethick2;
       STICKLINE(C>=O,C,O,8,0) COLORred;
       STICKLINE(C<=O,C,O,8,0) COLORgreen;
       STICKLINE(KS>=8,O,C,8,1),colorwhite,linethick2;
       STICKLINE(MLS=1,O,C,8,1),colormagenta,linethick2;
       EMA(C,10)colorcyan;
       EMA(KS/10+EMA(C,10),3)colorff8888,linethick2;
       RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
       短K:=SMA(RSV,3,1),LINETHICK0 ,COLORWHITE;
       短D:=SMA(短K,3,1),LINETHICK1 ,COLORYELLOW;
       BB:=HHV(VOL,SYSPARAM(3)-SYSPARAM(2));
       HH:=SYSPARAM(4);
       LL:=SYSPARAM(5);
       TT:=IF(HH-LL<4,0.5,1);
       // STICKLINE(c>=o,vol/BB*4.8*TT+LL,LL,4,1)color9090EE;
       // STICKLINE(c<o,vol/BB*4.8*TT+LL,LL,4,1)COLORblue;
       STICKLINE(短K>=短D,vol/BB*3.8*TT+LL,LL,4,1)color9090EE;
       STICKLINE(短K<短D,vol/BB*3.8*TT+LL,LL,4,1)COLORgreen;
       ma(vol/BB*4.8*TT+LL,3);
       ma(vol/BB*4.8*TT+LL,13);
      說明:量的部分有SYSPARAM(4),SYSPARAM(5)兩個函數(shù)無法改為分析家
75.問:
      求助改個DZH
      Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
      機(jī)構(gòu)做空能量線: SMA(Var1,3,1),colorgreen;
      Var2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
      機(jī)構(gòu)做多能量線: SMA(Var2,5,1)-8,colorred;
      SETLINEWIDTH(20,1,1),COLORWHITE;
      SETLINEWIDTH(80,1,1),COLORWHITE;
     
Y0:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,STICKONLY,COLORRED;
      Y1:if(Y0>23.16,Y0,0),CIRCLEDOT;
      Y2:SETLINEWIDTH(10,1,1);
      Y3:SETLINEWIDTH(21,1,1);
   答(大慶老楊):
      原公式有問題。SETLINEWIDTH 這一句軟件識別不了。刪除后可用,但與原公式有多大差別就不得而知了。
      Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
      機(jī)構(gòu)做空能量線: SMA(Var1,3,1),colorgreen;
      Var2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
      機(jī)構(gòu)做多能量線: SMA(Var2,5,1)-8,colorred;
      Y0:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,COLORRED;
      Y1:if(Y0>23.16,Y0,0),CIRCLEDOT;
76.問:
      請把次公式改為條件選股公式(條件是“低點(diǎn)”)。
      var1:=LLV(LOW,21);
      var2:=HHV(HIGH,21);
      快一: EMA((CLOSE-var1)/(var2-var1)*100,5),colorcyan;
      快:=EMA((CLOSE-var1)/(var2-var1)*50,13);
      D:= EMA(0.667*REF(快一,1)+0.333*快一,2);
      var3:=LLV(LOW,55);
      var4:=HHV(HIGH,34);
      var5:=EMA((CLOSE-var3)/(var4-var3)*100,3);
      var6:=(快+var5)/2;
      var7:=EMA(0.667*REF(var5,1)+0.333*快一,2);
      var8:=EMA(var6,5);
      慢:=EMA(0.667*REF(var8,1)+0.333*var8,2);
      快二:ma(快一,n1);
      慢一:慢, linethick1,colormagenta;
      慢二:快, linethick2, colorred ;
      DRAWICON(CROSS(快一 ,快 ) ,20 ,1 );
      DRAWTEXT(CROSS(快一 ,慢  ) and 慢 <30,ref(快一,1) , '低點(diǎn)' ),colorwhite;
   答(懶漢):
      var1:=LLV(LOW,21);
      var2:=HHV(HIGH,21);
      快一:= EMA((CLOSE-var1)/(var2-var1)*100,5),colorcyan;
      快:=EMA((CLOSE-var1)/(var2-var1)*50,13);
      D:= EMA(0.667*REF(快一,1)+0.333*快一,2);
      var3:=LLV(LOW,55);
      var4:=HHV(HIGH,34);
      var5:=EMA((CLOSE-var3)/(var4-var3)*100,3);
      var6:=(快+var5)/2;
      var7:=EMA(0.667*REF(var5,1)+0.333*快一,2);
      var8:=EMA(var6,5);
      慢:=EMA(0.667*REF(var8,1)+0.333*var8,2);
      CROSS(快一 ,慢  ) and 慢 <30;
77.問:
      編個大智慧公式,公式條件如下:
      1、兩個低點(diǎn)價差為0.32元以內(nèi);
      2、兩低點(diǎn)時間跨度應(yīng)大于10天,小于32天;
      3.是K線的雙底、平底形態(tài)
   答(懶漢):
      w2:=TROUGHBARS(4,10,2);
      L2:=TROUGH(4,10,2);
      w1:=TROUGHBARS(4,10,1);
      L1:=TROUGH(4,10,1);
      w2-w1>10 and w2-w1<32 and L2-L1<0.32
78.問:
      請幫我改成分析家公式洗盤結(jié)束指標(biāo)
    1、思想:主力在洗盤結(jié)束后是我們最佳介入時機(jī)。
    2、基本特征:個股走出長期大底;洗盤后會出現(xiàn)縮量現(xiàn)象。
    3、編譯公式:
    4、長期大底:我們用年線走上升趨勢為標(biāo)準(zhǔn),這是非常準(zhǔn)確的底部判斷方法。
     X:=MA(INDEXC,240); 大盤年線
     Y:=MA(CLOSE,240); 個股年線
     CJDD1:X/REF(X,1)*(Y-REF(Y,1));個股超級大底
     XPJS:IF(VOL/CAPITAL<0.005 AND CJDD1>0,2*CJDD1,0);個股洗盤結(jié)束指標(biāo)。
   答(阿遠(yuǎn)):
       X:=MA(INDEXC,240); 大盤年線
       Y:=MA(CLOSE,240); 個股年線
       CJDD:X/REF(X,1)*(Y-REF(Y,1));個股超級大底
       XPJS:IF(VOL/CAPITAL<0.005 AND CJDD>0,2*CJDD,0);個股洗盤結(jié)束指標(biāo)。
79.問:
      編一用于大智慧的,拋物線ZHSAR指標(biāo)空轉(zhuǎn)多的條件選股公式
   答(廣州寶貝):
      C>(zhsar(10,2,20));
80.問:
      這是兩個通達(dá)信公式,麻煩斑竹給轉(zhuǎn)換成大智慧
     (1)SXM隨心買                                       
     VAR1:=ZIG(CLOSE,13);
     買:IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);    
     (2)子午線:
     M;1,300,24,
     A:1,300,5,
     RSV:=((HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*200)-125;
     空方主力:SMA(RSV,A,1);
     RSV1:=((CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*200)-105;
     多方主力:SMA(RSV1,A,1);
     WD:=CROSS(空方主力,-85);
     WD1:=CROSS(空方主力,多方主力);
     VAR1:=ZIG(CLOSE,13);
     天:(WD OR WD1,0,80);
     谷底:(WD OR WD1,0,-100);
     頂部賣: IF(REF(VAR1,2)<REF(VAR1,1) AND VAR1<REF(VAR1,1),0,40);
     底部買: IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);
   答(股海一粟):
      (1)SXM隨心買                                       
         VAR1:=ZIG(3,13);
         買:IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);    
      (2)子午線:
         M;1,300,24,
         A:1,300,5,
         RSV:=((HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*200)-125;
         空方主力:SMA(RSV,A,1);
         RSV1:=((CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*200)-105;
         多方主力:SMA(RSV1,A,1);
         WD:=CROSS(空方主力,-85);
         WD1:=CROSS(空方主力,多方主力);
         VAR1:=ZIG(3,13);
         天:80;
          0;
         谷底:-100;
         頂部賣: IF(REF(VAR1,2)<REF(VAR1,1) AND VAR1<REF(VAR1,1),0,40);
         底部買: IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);
      *友情提示:
          兩個公式有未來函數(shù)。
          第二個公式,已漲跌13%后才給你補(bǔ)上買賣信號
          第一個公式,完全沒用
81.問:
      編寫個OBV與股價在N個交易周期后行成背離走勢的選股公式嗎?最好是能排序指標(biāo). 分析家軟件
   答(馨蕓):
      仔細(xì)觀察許多股票,發(fā)現(xiàn)OBV與股價背離后的走勢關(guān)系不明顯,這樣的選股效果不佳,
      且我不熟分析家,建議你試試參考常用的macd,rsi,及kdj背離
      A1:=BARSLAST(ref(cross("macd.diff","macd.dea"),1));
      B1:=ref(c,A1+1)>c and ref("macd.diff",A1+1)<"macd.diff" and cross         
          
          ("macd.diff","macd.dea");
      DRAWTEXT(FILTER(B1>0,5),0,'MACD'),COLORGREEN,ALIGN0;;
      Stickline(FILTER(B1>0,5),-1,0,1,0),COLORGREEN;
      A2:=BARSLAST(ref(cross("kdj.k","kdj.d"),1));
      B2:=ref(c,A2+1)>c and ref("kdj.k",A2+1)<"kdj.k" and
cross("kdj.k","kdj.d");
      DRAWTEXT(FILTER(B2>0,5),0.5,'KDJ'),COLORYELLOW,ALIGN0;;
      Stickline(FILTER(B2>0,5),0.5,-1,1,0),COLORYELLOW;
      A3:=BARSLAST(ref(cross("RSI.RSI1","RSI.RSI2"),1));
      B3:=ref(c,A3+1)>c and ref("RSI.RSI1",A3+1)<"RSI.RSI1" and cross           
          
            ("RSI.RSI1","RSI.RSI2");
      DRAWTEXT(FILTER(B3>0,5),-0.25,'RSI'),COLORCYAN,ALIGN0;;
      Stickline(FILTER(B3>0,5),-1,-0.25,1,0),COLORCYAN;
      (FILTER(B1>0,5) or FILTER(B2>0,5) or FILTER(B3>0,5) )*3;
82.問:
     5日均線死叉10 日均線后在13天內(nèi)金叉10日均線,5、10兩均線在30日均線之上,且30日均線上行
   答(騎兵):
      sumbars(cross(ma(c,10),ma(c,5)),1)<13 and  ma(c,10)>ma(c,30) and
ma(c,5)>ma(c,30) and
           cross(ma(c,5),ma(c,10)) and ma(c,30)>ref(ma(c,30),1);
83.問:
      公式改為分析家的。
      計算:=REF(CLOSE,1)*0.865;
      再計算:=REF(CLOSE,13)*0.772;
      流通A:=100*VOL/CAPITAL;
      第二天買:IF((CLOSE-MIN(計算,再計算))/CLOSE<0.1 AND SUM(流通A,5)/5<1.8,10,            

                          0),colorgreen;
      STICKLINE(第二天買,0,30,8,0),COLOR0000AA;
   答(阿耀):
       試試,5.0可用
       計算:=REF(CLOSE,1)*0.865;
       再計算:=REF(CLOSE,13)*0.772;
       流通:=100*VOL/CAPITAL;
       第二天買:IF((CLOSE-MIN(計算,再計算))/CLOSE<0.1 AND SUM(流通,5)/5<1.8,10,            

                        0),colorgreen;
       STICKLINE(第二天買,0,30,8,0),COLOR0000AA;
84.問:
      求助變色拐點(diǎn)(分析家50公式)主圖改為通達(dá)信飛虎
        原碼:
        ma60:ma(c,60),color00ff00,linethick3;
        ma133:ma(c,133),colorff6633,linethick2;
        ma250:ma(c,250),color66dd66,linethick2;
        partline(ma60,ma60>ref(ma60,1),rgb(255,0,0)),linethick3;
        partline(ma133,ma133>ref(ma133,1),rgb(255,255,0)),linethick2;
        partline(ma250,ma250>ref(ma250,1),rgb(255,0,188)),linethick2;
    答(多多):
         飛狐的
        ma60:ma(c,60),color00ff00,linethick3;
        ma133:ma(c,133),colorff6633,linethick2;
        ma250:ma(c,250),color66dd66,linethick2;
        partline(ma60>ref(ma60,1),ma60) colorred,linethick3;
        partline(ma133>ref(ma133,1),ma133) coloryellow,linethick2;
        partline(ma250>ref(ma250,1),ma250) COLORMAGENTA,linethick2;
     答(zcy1990215 ):
         通達(dá)信:
         MA60:MA(C,60),COLOR00FF00,LINETHICK3;
         MA133:MA(C,133),COLORFF6633,LINETHICK2;
         MA250:MA(C,250),COLOR66DD66,LINETHICK2;
         IF(MA(C,60)>=REF(MA(C,60),1),MA(C,60),DRAWNULL),COLORRED,LINETHICK3;
        
IF(MA(C,133)>=REF(MA(C,133),1),MA(C,133),DRAWNULL),COLORYELLOW,LINETHICK2;
        
IF(MA(C,250)>=REF(MA(C,250),1),MA(C,250),DRAWNULL),COLORBC10FF,LINETHICK2;
85.問:
       關(guān)于動態(tài)函數(shù)---買賣量
       買一量,買二量,等,只能顯示最后一個數(shù)目
       怎樣才能得到每一分鐘的買賣量;
       怎樣得到全天的買賣量;
       還有委差,是同樣的,怎樣解決
   答(懶漢):
       別名: 委買量
       所屬類別: 行情函數(shù)  參數(shù)數(shù)量: 1
       取得委買1-委買3量。
       用法:
       BIDVOL(N),N取1--3
       (本函數(shù)僅個股在分筆成交分析周期有效)
       別名: 委賣量
       所屬類別: 行情函數(shù)  參數(shù)數(shù)量: 1
       取得委賣1-委賣3量。
       用法:
       ASKVOL(N),N取1--3
       (本函數(shù)僅個股在分筆成交分析周期有效)

小小的菜鳥 2007-9-18 05:34
 
86.問:
      幫我寫個選股公式,股價站在5日10日30日60日線上,通達(dá)信版
   答(懶漢):
      m:=ma(c,5);
      m1:=ma(c,10);
      m3:=ma(c,30);
      m6:=ma(c,60);
      cross(c,max(max(max(m,m1),m3),m6));
87.問:
      當(dāng)日成交量大于n日均量,收盤價大于開盤價 m%的選股公式
   答(懶漢):
      v>ma(v,n) and c>o*(1+m/100);
88.問:
      sysparam(5)
      這個函數(shù)轉(zhuǎn)換為分析家,該怎么換?
   答(馨蕓):
      分析家無相同功能函數(shù)可取代,用內(nèi)建循環(huán)易做,但分析家的內(nèi)建循環(huán)難用
89.問:
      請高手幫忙寫一個公式把MACD、KDJ編在一起
   答(廣州寶貝):
      DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);
      MACD:500*(DIFF-DEA)/EMA(C,30), colorred ,pointdot;
      RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;
      FK:=SMA(RSV,5,1);
      K20:SMA(FK,5,1), pointdot, COLORyellow;
      D20:SMA(K20,5,1), pointdot, COLORff9999;
      STICKLINE(K20>=D20,D20,K20,5,0), COLORyellow;
      STICKLINE(K20<=D20,D20,K20,5,0) ,COLORff9999;
      STICKLINE(MACD>=0,0,MACD,5,0) ,COLORred;
      STICKLINE(MACD<=0,0,MACD,5,0) ,COLORlime;
       我用章三豐公式改的。
    答(廣州寶貝):
       {KDJ+MACD}大智慧
       mm:=if(TYPE=0,2,150);
       DIFF1 := EMA(CLOSE,10) - EMA(CLOSE,21);
       diff:DIFF1*mm,coloryellow;
       DEA1  := EMA(DIFF1,7);
       DEA:DEA1*mm,coloryellow;
       MACD : 2*(DIFF1-DEA1)*mm, COLORSTICK;
       RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
       K1:=SMA(RSV,3,1);
       k:k1-50,COLOR00FF00;
       D1:=SMA(K1,3,1);
       d:d1-50,COLORFF9933;
       J:3*K1-2*D1-50,COLORFF00FF;
90.問:
      求助,條件A是N天來第一次滿足
   答(騎兵00):
      這樣嗎?
      sum(a,n)=1 and a;
   答(陽光大道):
      A AND NOT(EVERY(A,(N-BARSLAST(A))));
91.問:
     股價在年線以上運(yùn)行是如何表示?
   答(ploop8 ):
     c>ma(c,250);
92.問:
     哪位高手有分析家的 散戶線 的技術(shù)指標(biāo)
   答(鳳舞九洲):
     {input:m(60,3,120),n(30,3,120);}
     散戶線: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
     RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
     K:=SMA(RSV,3,1);
     D:=SMA(K,3,1);
     J:=3*K-2*D;
     起動:EMA(j,6),COLORYELLOW;
     操作指導(dǎo)線:60,COLORRED;
     Var1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
     Var2:=REF(LOW,1)*Var1;
     Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100*Var1;
     Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3)*Var1;
     Var5:=LLV(LOW,30)*Var1;
     Var6:=HHV(Var4,30)*Var1;
     Var7:=IF(MA(CLOSE,58),1,0)*Var1;
     Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7*Var1;
     Var9:=IF(Var8>100,100,Var8)*Var1;
     吸籌:STICKLINE(Var9>-150,0,Var9,6,1)*Var1,colormagenta;
93.問:
     誰能幫我寫一個在分析家主圖上顯示的....." 每股收益、流通盤、市盈率″
   答(鳳舞九洲):
      解:='凈資產(chǎn)='+NUMTOSTRN(FINANCE(35),2 )+' 收益='+ NUMTOSTRN(FINANCE(33),2)+' 公積金
 
     ='+NUMTOSTRN(FINANCE(18),2)+' 換手率='+ NUMTOSTRN(100*VOL/CAPITAL,2)+'%';
      盤:='總股本='+NUMTOSTRN(FINANCE(1) ,0 )+'萬股'+' 流通A股='+
NUMTOSTRN(FINANCE(7),0)+'
        萬股'+' 總資產(chǎn)='+NUMTOSTRN(FINANCE(10),2)+'千元'+' 股東數(shù)='+PROFFIN(5061 ,0); 
      if DISPSTATUS=2 then a:=BARPOS;
      if DISPSTATUS=1 then b:=BARPOS;
      d:=a-b;
      e:=hhv(h,d);
      DRAWTEXT(1, e*1.05,解),COLOR00FFFF,ALIGN2;
      DRAWTEXT(1, e*1.035,盤),COLORFFFF00,ALIGN2;
94.問:
      怎樣實現(xiàn)在K線主圖上顯示每個頭部的最高價?
   答(馨蕓):
      是這樣嗎?(飛狐)
       drawnumber(h=sysparam(4),h,h,2);
95.問:
      上面可能是我沒有表達(dá)清楚:是指每一次反彈(包括小反彈)所形成的頭部的最高價都顯示在主
圖上(也就是說只要是頭部,就顯示它的最高價)。而現(xiàn)在所有軟件的K線圖上所顯示的最高價只是這一屏的,它是隨著K線的放大與縮小而變化的。
   答(馨蕓):
       要標(biāo)出大小波的高低點(diǎn)值,就我所知只結(jié)構(gòu)波浪有此能力,但這是未來的,請小心使用, 結(jié)構(gòu)波浪  碼如下(飛狐)
       {n=3,1,100}
       A1:=REF(HIGH,3)=HHV(HIGH,2*n+1);
       B1:=FILTER(A1,3);
       C1:=BACKSET(B1,3+1);
       D1:=FILTER(C1,3);{高?}
       A2:=REF(LOW,3)=LLV(LOW,2*n+1);
       B2:=FILTER(A2,3);
       C2:=BACKSET(B2,3+1);
       D2:=FILTER(C2,3);{低?}
       E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
       E2:=(HIGH+LOW)/2;{高低?出?在同一K?上?可作取舍}
       H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR 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);{??后低?}
       L2:=LD OR ISLASTBAR 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);{??后高?}
       DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1;
       DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1;
       J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1);
       J2:=J1>REF(J1,1);
       DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST                
          
                (LD),H,L),0),COLORWHITE,LINETHICK1;
       drawnumber(hd,h*1.01,h,2);
       drawnumber(ld,l*0.99,L,2);
       stickline(hd,h,h,47,0),shift2,colorgreen;
       stickline(ld,l,l,47,0),shift2,colorred; 2005-9-30 17:37:00 zmr666

小小的菜鳥 2007-9-18 05:35
 
BIAS:="EXPLORER.BIAS";
      BIAS2:="EXPLORER.BIAS(2)";
      這兩句話什么意思?引用函數(shù)為什么通不過?(在50222版本下)
   答(懶漢):
      BIAS:="EXPLORER.BIAS";
      BIAS2:="EXPLORER.BIAS(2)";
      這是引用指標(biāo)線
      格式  "公式名.指標(biāo)線名"
      所屬類別: 控制語句  參數(shù)數(shù)量: 0
      引用操作符
      例如:
      "INDIE.VAR"(P1,P2) 引用INDI指標(biāo)的VAR輸出,計算參數(shù)為P1,P2
      "SYSTEM.FMLNAME.ENTERLONG"(P1,P2) 引用交易系統(tǒng)FMLNAME的多頭買入信號
      "EXPLORER.FMLNAME"(P1,P2) 引用條件選股FMLNAME的選股信號
      "VOL##DAY" 引用日線數(shù)據(jù)的前一周期的VOL指標(biāo),數(shù)據(jù)類型有MIN1、MIN5、MIN15、MIN30、MIN60  
、DAY、WEEK、MONTH、YEAR、MULTIDAY、MULTIMIN、MULTISEC
      "MACD#WEEK"(26,10,5) 引用周線數(shù)據(jù)的MACD指標(biāo)
      "SZ000001$CLOSE" 引用SZ市場的000001證券的收盤價
      "DLLNAME@FNCNAME"(P1,P2) 引用DLLNAME.DLL的FNCNAME函數(shù),計算參數(shù)為P1,P2
97.問:
      如何把分級家的OBV公式里以收盤價的高低決定能量潮的漲跌改為以每日均價的高低決定?俺只看
到close可以代表收盤價,用啥來代表日均價來代替close
   答(懶漢):
      a:=amount/v/100;
      用a代替close
98.問:
      上面公式如何同下式結(jié)合?
      SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
   答(馨蕓):
      a:=amount/v/100;
      a1:SUM(IF(a>REF(a,1),VOL,IF(a<REF(a,1),-VOL,0)),0);
99.問:
      分析家選股公式:條件:選出股價站在30周均線上方,股票現(xiàn)價不超過30周均線價格上方20%(百 分比可調(diào))的股票。
   答(馨蕓):
      xx1.fnc
      aa30:ma(c,30);
------------------------------------
      {n=3,5,3(默認(rèn))}
      xx2.fnc
      bb:”xx1.aa30#week”;
      cc:count(cross(c,bb),5)=1 and count(c>bb,5)>=n and count(c<bb*1.2,5)=5;
    答(99801):
      a1:=c>ma(c,30);
      c>a1 and c/a1<1.2

 


    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    人妻内射在线二区一区| 欧美久久一区二区精品| 欧美日韩一区二区综合| 国产精品不卡一区二区三区四区 | 清纯少妇被捅到高潮免费观看| 一区二区三区日韩在线| 国产中文字幕一二三区| 国产精品美女午夜福利| 久久少妇诱惑免费视频| 国产老女人性生活视频| 男女午夜在线免费观看视频| 中文字幕日韩一区二区不卡| 亚洲精品成人福利在线| 欧美成人免费视频午夜色| 日本欧美视频在线观看免费| 一区二区三区亚洲国产| 激情内射日本一区二区三区| 国产精品亚洲欧美一区麻豆| 激情偷拍一区二区三区视频| 欧美黑人精品一区二区在线| 久久免费精品拍拍一区二区| 深夜少妇一区二区三区| 国产一区二区三区午夜精品 | 久久热在线视频免费观看| 91人妻久久精品一区二区三区 | 超薄肉色丝袜脚一区二区| 国产又大又猛又粗又长又爽| 国产精品不卡免费视频| 精品视频一区二区三区不卡| 亚洲中文字幕三区四区| 日韩一区二区三区观看| 91国自产精品中文字幕亚洲| 九九热这里只有精品哦| 国产日韩在线一二三区| 老鸭窝老鸭窝一区二区| 麻豆剧果冻传媒一二三区| 欧美日韩黑人免费观看| 日本欧美三级中文字幕| 欧美日韩亚洲精品在线观看| 国产欧美日韩精品一区二区| 邻居人妻人公侵犯人妻视频|