公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 252|回复: 0

[编写教程] 指标编写小常识,小技巧。也

[复制链接]
发表于 2023-9-8 23:22:17 | 显示全部楼层 |阅读模式

立即注册,结交更多股友,获取更多金钻指标,让你轻松遨游股市。

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

x
常用语句:
0018--今收盘对于N日内最低收盘价的涨幅(%)
  
  (C-LLV(C,N))/LLV(C,N)*100;
-------------------------------------------------------------------------------  
  0019--今收盘对于N日内最高收盘价的跌幅(%)
  
  (HHV(C,N)-C)/HHV(C,N)*100;
  
-------------------------------------------------------------------------------  
  0020--股价在过去N日内运行空间的相对位置
  
  (C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
  
------------------------------------------------------------------------------- 
  0021--股价上方N1%至N2%处的筹码(%)
  
  AA:=WINNER(C+C*N2/100)*100;
  BB:=WINNER(C+C*N1/100)*100;
  AA-BB
------------------------------------------------------------------------------- 
  0022--股价下方N1%至N2%处的筹码(%)
  
  (WINNER(C-C*N1/100)-WINNER(C-C*N2/100))*100;
  
------------------------------------------------------------------------------- 
  0023--收盘价N%处的套牢盘
  
  100-(WINNER(C*N/100))*100;
------------------------------------------------------------------------------- 
  0024--收盘价N%处的获利盘
  
  WINNER(C*N/100)*100;
-------------------------------------------------------------------------------
  0025--下影线
  
  (MIN(C,O)-L)/(H-L);
------------------------------------------------------------------------------- 
  0026--上影线
  
  (H-MAX(C,O))/(H-L)
------------------------------------------------------------------------------- 
  0027--本周期的涨跌幅
  
  (C-REF(C,1))/REF(C,1)*100;
------------------------------------------------------------------------------- 
  0028--振幅
  
  (H-L)/L*100;
------------------------------------------------------------------------------- 
  0029--均线金叉
  
  CROSS(MA(C,N),MA(C,M));{N< M}
  
------------------------------------------------------------------------------- 
  0030--均线死叉
  
  CROSS(MA(C,M),MA(C,N));{N< M}
-------------------------------------------------------------------------------
  0031--均线多头排列
  
  A1:=MA(C,N1);
  A2:=MA(C,N2);
  A3:=MA(C,N3);
  A4:=MA(C,N4);
  COUNT(A1>A2 AND A2>A3 AND A3>A4,3);
  
-------------------------------------------------------------------------------
  0032--均线空头排列
  A1:=MA(C,N1);
  A2:=MA(C,N2);
  A3:=MA(C,N3);
  A4:=MA(C,N4);
  COUNT(A1< A2 AND A2< A3 AND A3< A4,3);
------------------------------------------------------------------------------- 
  0033--N日均线向下
  
  AA:=MA(C,N);
  BB:=REF(AA,1);
  AA< BB
-------------------------------------------------------------------------------
  0034--N日均线向上
  
  AA:=MA(C,N);
  BB:=REF(AA,1);
  AA>BB
------------------------------------------------------------------------------- 
  0035--N日均线走平
  
  AA:=MA(C,N);
  BB:=REF(AA,1);
  AA=BB
-------------------------------------------------------------------------------
  0036--向前N日至M日出现过均线死叉(P1< P2)
  
  AA:=MA(C,P1);
  BB:=MA(C,P2);
  CC:=REF(CROSS(BB,AA),N);
  COUNT(CC,M);
------------------------------------------------------------------------------- 
  0037--今日成交量大于N日以来的均量
  
  VOL>MA(VOL,N);
------------------------------------------------------------------------------- 
  0038--低位密集
  
  A1:=COST(85);
  A2:=COST(15);
  A3:=A1-A2;
  A4:=(A1+A2)/2;
  A5:=A3/A4*1000,JC-JL[DATACOUNT]),COLORYELLOW;//收盘价趋势线,只画线,不显示数值
  
  通式:
  
  曲线X叠加曲线Y
  
  BX:=HHV(X,N)-LLV(X,N);
  BY:=HHV(Y,N)-LLV(Y,N);
  BI:=BX/BY;
  B:=BI[DATACOUNT];
  FX:=X/REF(X,1);
  JX:=REF(X,1)*(1+A*FX)*B/A;
  XL:=LLV(JX,N);
  曲线Y:Y;
  曲线X:X,LINETHICK0;//曲线X的值
  PARTLINE(C,JX-XL[DATACOUNT]);//曲线X的线



金死叉间最大值、最小值求法:
  
金死叉之间的最大值求法:
  A1:=CROSS("MACD.MACD",0);
  A2:=BARSLAST(A1);
  A3:=HHVBARS("MACD.MACD" ,A2+1);
  A4:=BACKSET(REF(A3>=1,1) AND "MACD.MACD"0,高值,4);
  
金死叉之间的最小值求法:
  B1:=CROSS(0,"MACD.MACD");
  B2:=BARSLAST(B1);
  B3:=LLVBARS("MACD.MACD" ,B2+1);
  B4:=BACKSET(REF(B3>=1,1) AND "MACD.MACD">0,B3);
  B5:=BACKSET(REF(B4=0,1) AND B4=1,2);
  低值:IF(FILTER(B5,2),"MACD.MACD",0);
  DRAWICON(低值
我知道答案 本帖寻求最佳答案回答被采纳后将获得系统奖励10 股币 , 目前已有0人回答
回复

使用道具 举报

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

本版积分规则

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