找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 117|回复: 1

指标编写问答11学习的宝藏

[复制链接]
发表于 2021-12-25 01:06 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
56.问:
      涨停板公式,可以调节参数N天共有哪些股票涨停?
   答(懒汉):
      count(ref(c,1)*1.1-c<0.005,N)>0;




57.问:
      如何指定具体哪一天涨停
   答(懒汉):
      t:=barssince(date=m);//m--日期参数。如2005年5月17日,则M=1050517
      ref(ref(c,1)*1.1-c<0.005,t);




58.问:
      五日线上穿十日线K线显示红色,五日线下破十日线K线显示绿色。成分析家公式函数语言。
   答(馨芸):
      ma(c,5);
      ma(c,10);
      STICKLINE(cross(ma(c,5),ma(c,10)),CLOSE,OPEN,8,0),COLORred;
      STICKLINE(cross(ma(c,5),ma(c,10)),HIGH,LOW,0.8,0),COLORred;
      STICKLINE(cross(ma(c,10),ma(c,5)),CLOSE,OPEN,8,0),COLORgreen;
      STICKLINE(cross(ma(c,10),ma(c,5)),HIGH,LOW,0.8,0),COLORgreen;
   答(懒汉):
      m:ma(c,5),colorgreen;
      m1:=ma(c,10);
      if(m>m1,m,m1),colorred;
      m1;
   答(了无痕):
      将芸班的公式变一下形就可以了........
      {变色K线}
      ma(c,5);
      ma(c,10);
      STICKLINE(ma(c,5)>ma(c,10),CLOSE,OPEN,8,0),COLORred;
      STICKLINE(ma(c,5)>ma(c,10),HIGH,LOW,0,0),COLORred;
      STICKLINE(ma(c,10)>=ma(c,5),CLOSE,OPEN,8,0),COLORgreen;
      STICKLINE(ma(c,10)>=ma(c,5),HIGH,LOW,0,0),COLORgreen;




59.问:
      请问在分析家上什么函数可以代替TROUGHBARS这个未来函数?
   答(知无不言):
      分析家中有这个“TROUGHBARS 前M个波谷位置”的函数。




60.问:
      求助,请将其改为5.0

      M1: EMA(CLOSE,3);
      M2: EMA(CLOSE,8);
      M3: EMA(M2,13);
      M4: EMA(M2,55);
      Var1:=EMA(M3,55);
      M5: EMA(M4,81), , ;
      M6: EMA(Var1,144), ,  COLORRED;
      Var2:=(REF(HIGH,1)+REF(LOW,1))/2;
      Var3:=MA(CLOSE,N)+2*STD(CLOSE,N);
      DRAWICON(CROSS(Var2,Var3),HIGH*1.035,1);
      DRAWTEXT(CROSS(Var2,Var3),HIGH*1.02,'卖出'), ,COLORBLUE;
      Var4:=REF(CLOSE,1);
      Var5:=SMA(MAX(CLOSE-Var4,0),N1,1)/SMA(ABS(CLOSE-Var4),N1,1)*100;
      Var6:=CROSS(N2,Var5);
      Var7:=FILTER(Var6,4);
      DRAWICON(Var7,HIGH*1.035,1);
      DRAWTEXT(Var7,HIGH*1.02,'卖出'), , COLORBLUE;
      A7:=(2*C+H+L)/4;
      Var10:=LLV(LOW,34);
      Var11:=HHV(HIGH,34);
      SK:=EMA((A7-Var1)/(Var2-Var1)*100,7);
      SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
      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,'●买进') COLOR0099ff;
      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,'●买进') COLOryellow;
      D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
      DRAWTEXT(if(CLOSE<D and VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
          AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底')coloryellow;
   答(khkkh ):
       M1: EMA(CLOSE,3);
       M2: EMA(CLOSE,8);
       M3: EMA(M2,13);
       M4: EMA(M2,55);
       Var1:=EMA(M3,55);
       M5: EMA(M4,81) ;
       M6: EMA(Var1,144),   COLORRED;
       Var2:=(REF(HIGH,1)+REF(LOW,1))/2;
       Var3:=MA(CLOSE,N)+2*STD
       SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
       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,'●买进'), COLOR0099ff;
       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,'●买进'), COLOryellow;
       D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
       DRAWTEXT(if(CLOSE<D and VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
          AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'),coloryellow;


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-9-20 18:34 , Processed in 0.088311 second(s), Total 10, Slave 9 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表