首页 > 问答热点>正文

vol成交量成金叉指标(先月线macd金叉,周线量价符合条件的公式,通达信怎么写?)

中亿财经网 gengxing 2023-09-02 15:57:07

1. 先月线macd金叉,周线量价符合条件的公式,通达信怎么写?

在通达信中,可以使用公式语言编写公式来筛选符合条件的股票。下面是一个筛选先月线MACD金叉、周线量价符合条件的通达信公式:bM4中亿财经网财经门户

```CbM4中亿财经网财经门户

// 先月线MACD金叉bM4中亿财经网财经门户

REF(MACD(12,26,9),1) < REF(MACD(12,26,9),2) AND MACD(12,26,9) > 0 AND REF(MACD(12,26,9),1) < 0bM4中亿财经网财经门户

// 周线量价符合条件bM4中亿财经网财经门户

VOL() > MA(VOL,20) * 1.5 AND CLOSE() > MA(CLOSE,20) AND C > O AND (H - L) / L < 0.05 AND HHV(HIGH,6) == HIGH AND LLV(LOW,6) == LOWbM4中亿财经网财经门户

```bM4中亿财经网财经门户

上述公式中,第一部分是先月线MACD金叉的筛选条件,其中MACD(12,26,9)表示计算12日EMA与26日EMA的差值,再用9日EMA作为其信号线。第二部分是周线量价符合条件的筛选条件,其中VOL()表示成交量,CLOSE()表示收盘价,C表示当前价,O表示开盘价,H表示最高价,L表示最低价,MA表示简单移动平均线,HHV表示最高价的最高值,LLV表示最低价的最低值。bM4中亿财经网财经门户

在通达信中,可以通过“自定义指标”功能将上述公式导入到系统中,并将其应用到股票列表中进行筛选。需要注意的是,公式只是筛选条件的一部分,还需要结合市场走势等因素进行综合分析,才能做出正确的投资决策。bM4中亿财经网财经门户

2. rsj指标源码?

rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。bM4中亿财经网财经门户

  //基础指标公式bM4中亿财经网财经门户

  50,DOTLINE;20;80;bM4中亿财经网财经门户

  DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));bM4中亿财经网财经门户

  DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));bM4中亿财经网财经门户

  DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;bM4中亿财经网财经门户

  CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);bM4中亿财经网财经门户

  LC:=REF(WMA((2*CC+HH+LL)/4,3),1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;bM4中亿财经网财经门户

  DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;bM4中亿财经网财经门户

  IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;bM4中亿财经网财经门户

  威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;bM4中亿财经网财经门户

  IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;bM4中亿财经网财经门户

  IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;bM4中亿财经网财经门户

  导入软件之后的基本走势图形有:bM4中亿财经网财经门户

//买卖指标公式bM4中亿财经网财经门户

  N1:=6;bM4中亿财经网财经门户

  N2:=6;bM4中亿财经网财经门户

  N3:=6;bM4中亿财经网财经门户

  LC:=REF(CLOSE,1);bM4中亿财经网财经门户

  RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;bM4中亿财经网财经门户

  RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;bM4中亿财经网财经门户

  RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;bM4中亿财经网财经门户

  MA60:MA(C,60);bM4中亿财经网财经门户

  MA5:MA(C,5);bM4中亿财经网财经门户

  MA10:MA(C,10);bM4中亿财经网财经门户

  MA20:MA(C,20);bM4中亿财经网财经门户

  A:20;bM4中亿财经网财经门户

  D:80;bM4中亿财经网财经门户

  买:=RSI1<20 OR RSI1<80 AND C>REF(C,1)AND VOLREF(MA60,1) AND MA5>REF(MA5,1)AND MA10>REF(MA10,1)AND MA20>REF(MA20,1);bM4中亿财经网财经门户

  DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;bM4中亿财经网财经门户

  卖:=RSI1>80 AND VOL>REF(VOL,1);bM4中亿财经网财经门户

  DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;bM4中亿财经网财经门户

//精确买卖点公式bM4中亿财经网财经门户

  LC := REF(CLOSE,1);bM4中亿财经网财经门户

  R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;bM4中亿财经网财经门户

  K:=r-REF(r,1);bM4中亿财经网财经门户

  STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;bM4中亿财经网财经门户

  STICKLINE(k5.5,5,7,2),colorgreen;bM4中亿财经网财经门户

  x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;bM4中亿财经网财经门户

  y:=((k5.5)>0)*8;bM4中亿财经网财经门户

//趋势分析bM4中亿财经网财经门户

  VAR1:=HHV(HIGH,33);bM4中亿财经网财经门户

  VAR2:=LLV(LOW,33);bM4中亿财经网财经门户

  A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;bM4中亿财经网财经门户

  价格线:EMA(HHV(A,3),1),colorgreen;bM4中亿财经网财经门户

  va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;bM4中亿财经网财经门户

  va2:=SMA(va1,9,1),colorwhite;bM4中亿财经网财经门户

  趋势线:SMA(va2,6,1),colorff00ff;bM4中亿财经网财经门户

  va4:=3*va2-2*趋势线,colorff00ff;bM4中亿财经网财经门户

  撑压线:WMA((va2+趋势线+va4)/3,60),colorred;bM4中亿财经网财经门户

  LC:= REF(CLOSE,1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;bM4中亿财经网财经门户

  卖线:85,LINETHICK02,POINTDOT,Color15FF15;bM4中亿财经网财经门户

  界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;bM4中亿财经网财经门户

  买线:20,LINETHICK02,POINTDOT,Color28FFFF;bM4中亿财经网财经门户

3. 先月线macd金叉,周线量价符合条件的公式,通达信怎么写?

在通达信中,可以使用公式语言编写公式来筛选符合条件的股票。下面是一个筛选先月线MACD金叉、周线量价符合条件的通达信公式:bM4中亿财经网财经门户

```CbM4中亿财经网财经门户

// 先月线MACD金叉bM4中亿财经网财经门户

REF(MACD(12,26,9),1) < REF(MACD(12,26,9),2) AND MACD(12,26,9) > 0 AND REF(MACD(12,26,9),1) < 0bM4中亿财经网财经门户

// 周线量价符合条件bM4中亿财经网财经门户

VOL() > MA(VOL,20) * 1.5 AND CLOSE() > MA(CLOSE,20) AND C > O AND (H - L) / L < 0.05 AND HHV(HIGH,6) == HIGH AND LLV(LOW,6) == LOWbM4中亿财经网财经门户

```bM4中亿财经网财经门户

上述公式中,第一部分是先月线MACD金叉的筛选条件,其中MACD(12,26,9)表示计算12日EMA与26日EMA的差值,再用9日EMA作为其信号线。第二部分是周线量价符合条件的筛选条件,其中VOL()表示成交量,CLOSE()表示收盘价,C表示当前价,O表示开盘价,H表示最高价,L表示最低价,MA表示简单移动平均线,HHV表示最高价的最高值,LLV表示最低价的最低值。bM4中亿财经网财经门户

在通达信中,可以通过“自定义指标”功能将上述公式导入到系统中,并将其应用到股票列表中进行筛选。需要注意的是,公式只是筛选条件的一部分,还需要结合市场走势等因素进行综合分析,才能做出正确的投资决策。bM4中亿财经网财经门户

4. rsj指标源码?

rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。bM4中亿财经网财经门户

  //基础指标公式bM4中亿财经网财经门户

  50,DOTLINE;20;80;bM4中亿财经网财经门户

  DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));bM4中亿财经网财经门户

  DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));bM4中亿财经网财经门户

  DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;bM4中亿财经网财经门户

  CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);bM4中亿财经网财经门户

  LC:=REF(WMA((2*CC+HH+LL)/4,3),1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;bM4中亿财经网财经门户

  DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;bM4中亿财经网财经门户

  IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;bM4中亿财经网财经门户

  威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;bM4中亿财经网财经门户

  IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;bM4中亿财经网财经门户

  IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;bM4中亿财经网财经门户

  导入软件之后的基本走势图形有:bM4中亿财经网财经门户

//买卖指标公式bM4中亿财经网财经门户

  N1:=6;bM4中亿财经网财经门户

  N2:=6;bM4中亿财经网财经门户

  N3:=6;bM4中亿财经网财经门户

  LC:=REF(CLOSE,1);bM4中亿财经网财经门户

  RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;bM4中亿财经网财经门户

  RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;bM4中亿财经网财经门户

  RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;bM4中亿财经网财经门户

  MA60:MA(C,60);bM4中亿财经网财经门户

  MA5:MA(C,5);bM4中亿财经网财经门户

  MA10:MA(C,10);bM4中亿财经网财经门户

  MA20:MA(C,20);bM4中亿财经网财经门户

  A:20;bM4中亿财经网财经门户

  D:80;bM4中亿财经网财经门户

  买:=RSI1<20 OR RSI1<80 AND C>REF(C,1)AND VOLREF(MA60,1) AND MA5>REF(MA5,1)AND MA10>REF(MA10,1)AND MA20>REF(MA20,1);bM4中亿财经网财经门户

  DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;bM4中亿财经网财经门户

  卖:=RSI1>80 AND VOL>REF(VOL,1);bM4中亿财经网财经门户

  DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;bM4中亿财经网财经门户

//精确买卖点公式bM4中亿财经网财经门户

  LC := REF(CLOSE,1);bM4中亿财经网财经门户

  R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;bM4中亿财经网财经门户

  K:=r-REF(r,1);bM4中亿财经网财经门户

  STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;bM4中亿财经网财经门户

  STICKLINE(k5.5,5,7,2),colorgreen;bM4中亿财经网财经门户

  x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;bM4中亿财经网财经门户

  y:=((k5.5)>0)*8;bM4中亿财经网财经门户

//趋势分析bM4中亿财经网财经门户

  VAR1:=HHV(HIGH,33);bM4中亿财经网财经门户

  VAR2:=LLV(LOW,33);bM4中亿财经网财经门户

  A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;bM4中亿财经网财经门户

  价格线:EMA(HHV(A,3),1),colorgreen;bM4中亿财经网财经门户

  va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;bM4中亿财经网财经门户

  va2:=SMA(va1,9,1),colorwhite;bM4中亿财经网财经门户

  趋势线:SMA(va2,6,1),colorff00ff;bM4中亿财经网财经门户

  va4:=3*va2-2*趋势线,colorff00ff;bM4中亿财经网财经门户

  撑压线:WMA((va2+趋势线+va4)/3,60),colorred;bM4中亿财经网财经门户

  LC:= REF(CLOSE,1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;bM4中亿财经网财经门户

  卖线:85,LINETHICK02,POINTDOT,Color15FF15;bM4中亿财经网财经门户

  界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;bM4中亿财经网财经门户

  买线:20,LINETHICK02,POINTDOT,Color28FFFF;bM4中亿财经网财经门户

5. rsj指标源码?

rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。bM4中亿财经网财经门户

  //基础指标公式bM4中亿财经网财经门户

  50,DOTLINE;20;80;bM4中亿财经网财经门户

  DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));bM4中亿财经网财经门户

  DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));bM4中亿财经网财经门户

  DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;bM4中亿财经网财经门户

  CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);bM4中亿财经网财经门户

  LC:=REF(WMA((2*CC+HH+LL)/4,3),1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;bM4中亿财经网财经门户

  DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;bM4中亿财经网财经门户

  IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;bM4中亿财经网财经门户

  威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;bM4中亿财经网财经门户

  IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;bM4中亿财经网财经门户

  IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;bM4中亿财经网财经门户

  导入软件之后的基本走势图形有:bM4中亿财经网财经门户

//买卖指标公式bM4中亿财经网财经门户

  N1:=6;bM4中亿财经网财经门户

  N2:=6;bM4中亿财经网财经门户

  N3:=6;bM4中亿财经网财经门户

  LC:=REF(CLOSE,1);bM4中亿财经网财经门户

  RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;bM4中亿财经网财经门户

  RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;bM4中亿财经网财经门户

  RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;bM4中亿财经网财经门户

  MA60:MA(C,60);bM4中亿财经网财经门户

  MA5:MA(C,5);bM4中亿财经网财经门户

  MA10:MA(C,10);bM4中亿财经网财经门户

  MA20:MA(C,20);bM4中亿财经网财经门户

  A:20;bM4中亿财经网财经门户

  D:80;bM4中亿财经网财经门户

  买:=RSI1<20 OR RSI1<80 AND C>REF(C,1)AND VOLREF(MA60,1) AND MA5>REF(MA5,1)AND MA10>REF(MA10,1)AND MA20>REF(MA20,1);bM4中亿财经网财经门户

  DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;bM4中亿财经网财经门户

  卖:=RSI1>80 AND VOL>REF(VOL,1);bM4中亿财经网财经门户

  DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;bM4中亿财经网财经门户

//精确买卖点公式bM4中亿财经网财经门户

  LC := REF(CLOSE,1);bM4中亿财经网财经门户

  R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;bM4中亿财经网财经门户

  K:=r-REF(r,1);bM4中亿财经网财经门户

  STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;bM4中亿财经网财经门户

  STICKLINE(k5.5,5,7,2),colorgreen;bM4中亿财经网财经门户

  x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;bM4中亿财经网财经门户

  y:=((k5.5)>0)*8;bM4中亿财经网财经门户

//趋势分析bM4中亿财经网财经门户

  VAR1:=HHV(HIGH,33);bM4中亿财经网财经门户

  VAR2:=LLV(LOW,33);bM4中亿财经网财经门户

  A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;bM4中亿财经网财经门户

  价格线:EMA(HHV(A,3),1),colorgreen;bM4中亿财经网财经门户

  va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;bM4中亿财经网财经门户

  va2:=SMA(va1,9,1),colorwhite;bM4中亿财经网财经门户

  趋势线:SMA(va2,6,1),colorff00ff;bM4中亿财经网财经门户

  va4:=3*va2-2*趋势线,colorff00ff;bM4中亿财经网财经门户

  撑压线:WMA((va2+趋势线+va4)/3,60),colorred;bM4中亿财经网财经门户

  LC:= REF(CLOSE,1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;bM4中亿财经网财经门户

  卖线:85,LINETHICK02,POINTDOT,Color15FF15;bM4中亿财经网财经门户

  界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;bM4中亿财经网财经门户

  买线:20,LINETHICK02,POINTDOT,Color28FFFF;bM4中亿财经网财经门户

6. 先月线macd金叉,周线量价符合条件的公式,通达信怎么写?

在通达信中,可以使用公式语言编写公式来筛选符合条件的股票。下面是一个筛选先月线MACD金叉、周线量价符合条件的通达信公式:bM4中亿财经网财经门户

```CbM4中亿财经网财经门户

// 先月线MACD金叉bM4中亿财经网财经门户

REF(MACD(12,26,9),1) < REF(MACD(12,26,9),2) AND MACD(12,26,9) > 0 AND REF(MACD(12,26,9),1) < 0bM4中亿财经网财经门户

// 周线量价符合条件bM4中亿财经网财经门户

VOL() > MA(VOL,20) * 1.5 AND CLOSE() > MA(CLOSE,20) AND C > O AND (H - L) / L < 0.05 AND HHV(HIGH,6) == HIGH AND LLV(LOW,6) == LOWbM4中亿财经网财经门户

```bM4中亿财经网财经门户

上述公式中,第一部分是先月线MACD金叉的筛选条件,其中MACD(12,26,9)表示计算12日EMA与26日EMA的差值,再用9日EMA作为其信号线。第二部分是周线量价符合条件的筛选条件,其中VOL()表示成交量,CLOSE()表示收盘价,C表示当前价,O表示开盘价,H表示最高价,L表示最低价,MA表示简单移动平均线,HHV表示最高价的最高值,LLV表示最低价的最低值。bM4中亿财经网财经门户

在通达信中,可以通过“自定义指标”功能将上述公式导入到系统中,并将其应用到股票列表中进行筛选。需要注意的是,公式只是筛选条件的一部分,还需要结合市场走势等因素进行综合分析,才能做出正确的投资决策。bM4中亿财经网财经门户

7. 先月线macd金叉,周线量价符合条件的公式,通达信怎么写?

在通达信中,可以使用公式语言编写公式来筛选符合条件的股票。下面是一个筛选先月线MACD金叉、周线量价符合条件的通达信公式:bM4中亿财经网财经门户

```CbM4中亿财经网财经门户

// 先月线MACD金叉bM4中亿财经网财经门户

REF(MACD(12,26,9),1) < REF(MACD(12,26,9),2) AND MACD(12,26,9) > 0 AND REF(MACD(12,26,9),1) < 0bM4中亿财经网财经门户

// 周线量价符合条件bM4中亿财经网财经门户

VOL() > MA(VOL,20) * 1.5 AND CLOSE() > MA(CLOSE,20) AND C > O AND (H - L) / L < 0.05 AND HHV(HIGH,6) == HIGH AND LLV(LOW,6) == LOWbM4中亿财经网财经门户

```bM4中亿财经网财经门户

上述公式中,第一部分是先月线MACD金叉的筛选条件,其中MACD(12,26,9)表示计算12日EMA与26日EMA的差值,再用9日EMA作为其信号线。第二部分是周线量价符合条件的筛选条件,其中VOL()表示成交量,CLOSE()表示收盘价,C表示当前价,O表示开盘价,H表示最高价,L表示最低价,MA表示简单移动平均线,HHV表示最高价的最高值,LLV表示最低价的最低值。bM4中亿财经网财经门户

在通达信中,可以通过“自定义指标”功能将上述公式导入到系统中,并将其应用到股票列表中进行筛选。需要注意的是,公式只是筛选条件的一部分,还需要结合市场走势等因素进行综合分析,才能做出正确的投资决策。bM4中亿财经网财经门户

8. rsj指标源码?

rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。bM4中亿财经网财经门户

  //基础指标公式bM4中亿财经网财经门户

  50,DOTLINE;20;80;bM4中亿财经网财经门户

  DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));bM4中亿财经网财经门户

  DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));bM4中亿财经网财经门户

  DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;bM4中亿财经网财经门户

  CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);bM4中亿财经网财经门户

  LC:=REF(WMA((2*CC+HH+LL)/4,3),1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;bM4中亿财经网财经门户

  DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;bM4中亿财经网财经门户

  IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;bM4中亿财经网财经门户

  SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;bM4中亿财经网财经门户

  威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;bM4中亿财经网财经门户

  IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;bM4中亿财经网财经门户

  IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;bM4中亿财经网财经门户

  导入软件之后的基本走势图形有:bM4中亿财经网财经门户

//买卖指标公式bM4中亿财经网财经门户

  N1:=6;bM4中亿财经网财经门户

  N2:=6;bM4中亿财经网财经门户

  N3:=6;bM4中亿财经网财经门户

  LC:=REF(CLOSE,1);bM4中亿财经网财经门户

  RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;bM4中亿财经网财经门户

  RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;bM4中亿财经网财经门户

  RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;bM4中亿财经网财经门户

  MA60:MA(C,60);bM4中亿财经网财经门户

  MA5:MA(C,5);bM4中亿财经网财经门户

  MA10:MA(C,10);bM4中亿财经网财经门户

  MA20:MA(C,20);bM4中亿财经网财经门户

  A:20;bM4中亿财经网财经门户

  D:80;bM4中亿财经网财经门户

  买:=RSI1<20 OR RSI1<80 AND C>REF(C,1)AND VOLREF(MA60,1) AND MA5>REF(MA5,1)AND MA10>REF(MA10,1)AND MA20>REF(MA20,1);bM4中亿财经网财经门户

  DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;bM4中亿财经网财经门户

  卖:=RSI1>80 AND VOL>REF(VOL,1);bM4中亿财经网财经门户

  DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;bM4中亿财经网财经门户

//精确买卖点公式bM4中亿财经网财经门户

  LC := REF(CLOSE,1);bM4中亿财经网财经门户

  R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;bM4中亿财经网财经门户

  K:=r-REF(r,1);bM4中亿财经网财经门户

  STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;bM4中亿财经网财经门户

  STICKLINE(k5.5,5,7,2),colorgreen;bM4中亿财经网财经门户

  x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;bM4中亿财经网财经门户

  y:=((k5.5)>0)*8;bM4中亿财经网财经门户

//趋势分析bM4中亿财经网财经门户

  VAR1:=HHV(HIGH,33);bM4中亿财经网财经门户

  VAR2:=LLV(LOW,33);bM4中亿财经网财经门户

  A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;bM4中亿财经网财经门户

  价格线:EMA(HHV(A,3),1),colorgreen;bM4中亿财经网财经门户

  va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;bM4中亿财经网财经门户

  va2:=SMA(va1,9,1),colorwhite;bM4中亿财经网财经门户

  趋势线:SMA(va2,6,1),colorff00ff;bM4中亿财经网财经门户

  va4:=3*va2-2*趋势线,colorff00ff;bM4中亿财经网财经门户

  撑压线:WMA((va2+趋势线+va4)/3,60),colorred;bM4中亿财经网财经门户

  LC:= REF(CLOSE,1);bM4中亿财经网财经门户

  RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;bM4中亿财经网财经门户

  RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;bM4中亿财经网财经门户

  卖线:85,LINETHICK02,POINTDOT,Color15FF15;bM4中亿财经网财经门户

  界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;bM4中亿财经网财经门户

  买线:20,LINETHICK02,POINTDOT,Color28FFFF;bM4中亿财经网财经门户

9. 通达信某均线穿某均线倍量阳指标源代码?

以下为通达信某均线穿某均线倍量阳指标的源代码:bM4中亿财经网财经门户

```bM4中亿财经网财经门户

输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;bM4中亿财经网财经门户

VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;bM4中亿财经网财经门户

VAR:UPP:DOUBLE,LOW:DOUBLE,B1:DOUBLE,B2:DOUBLE,B3:DOUBLE,B4:DOUBLE,B5:DOUBLE,B6:DOUBLE,B7:DOUBLE,B8:DOUBLE,B9:DOUBLE,B10:DOUBLE,B11:DOUBLE,B12:DOUBLE,B13:DOUBLE,B14:DOUBLE,B15:DOUBLE,B16:DOUBLE,B17:DOUBLE,B18:DOUBLE,B19:DOUBLE,B20:DOUBLE,B21:DOUBLE,B22:DOUBLE,B23:DOUBLE,B24:DOUBLE,B25:DOUBLE,B26:DOUBLE,B27:DOUBLE,B28:DOUBLE,B29:DOUBLE,B30:DOUBLE,B31:DOUBLE,B32:DOUBLE,B33:DOUBLE,B34:DOUBLE,B35:DOUBLE,B36:DOUBLE,B37:DOUBLE,B38:DOUBLE,B39:DOUBLE,B40:DOUBLE,B41:DOUBLE,B42:DOUBLE,B43:DOUBLE,B44:DOUBLE,B45:DOUBLE,B46:DOUBLE,B47:DOUBLE,B48:DOUBLE;bM4中亿财经网财经门户

VAR:BUY:INTEGER;bM4中亿财经网财经门户

IF BARSCOUNT>PERIOD THEN BEGINbM4中亿财经网财经门户

MA1=MA(CLOSE,M1);bM4中亿财经网财经门户

MA2=MA(CLOSE,M2);bM4中亿财经网财经门户

MA3=MA(CLOSE,M3);bM4中亿财经网财经门户

MA4=MA(CLOSE,M4);bM4中亿财经网财经门户

UPP=MA1+N1*STDEV(CLOSE,M1);bM4中亿财经网财经门户

LOW=MA1-N2*STDEV(CLOSE,M1);bM4中亿财经网财经门户

B1=CLOSE<MA1 AND CROSS(MA2,MA1);bM4中亿财经网财经门户

B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;bM4中亿财经网财经门户

B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;bM4中亿财经网财经门户

B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND bM4中亿财经网财经门户

(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);bM4中亿财经网财经门户

B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;bM4中亿财经网财经门户

B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;bM4中亿财经网财经门户

B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;bM4中亿财经网财经门户

B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;bM4中亿财经网财经门户

B9=CLOSE>MA1 AND MA1<=UPP AND MA2<MA1 AND (CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4) AND BARSSINCE(B4)=1;bM4中亿财经网财经门户

B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;bM4中亿财经网财经门户

LC = Ref(CLOSE,-1);bM4中亿财经网财经门户

TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));bM4中亿财经网财经门户

B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;bM4中亿财经网财经门户

B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;bM4中亿财经网财经门户

B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND bM4中亿财经网财经门户

CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;bM4中亿财经网财经门户

IF B11 OR B12 OR B13 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

B14 = MA(CLOSE,N1) > MA(CLOSE,N2);bM4中亿财经网财经门户

B15 = MA(CLOSE,N2) > MA(CLOSE,N3);bM4中亿财经网财经门户

B16 = MA(CLOSE,N3) > MA(CLOSE,N4);bM4中亿财经网财经门户

B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B18 = VOLUME > MA(VOLUME,PERIOD)*N4;bM4中亿财经网财经门户

B19 = CLOSE > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);bM4中亿财经网财经门户

B21 = SUM(B20,PERIOD-1) = PERIOD-1;bM4中亿财经网财经门户

B22 = REF(B21,1);bM4中亿财经网财经门户

IF B21 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

IF B22 THEN BUY = 1;bM4中亿财经网财经门户

ENDbM4中亿财经网财经门户

ELSE BUY = 0;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

BUY不为0时表示出现该指标的买入信号。bM4中亿财经网财经门户

10. 通达信某均线穿某均线倍量阳指标源代码?

以下为通达信某均线穿某均线倍量阳指标的源代码:bM4中亿财经网财经门户

```bM4中亿财经网财经门户

输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;bM4中亿财经网财经门户

VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;bM4中亿财经网财经门户

VAR:UPP:DOUBLE,LOW:DOUBLE,B1:DOUBLE,B2:DOUBLE,B3:DOUBLE,B4:DOUBLE,B5:DOUBLE,B6:DOUBLE,B7:DOUBLE,B8:DOUBLE,B9:DOUBLE,B10:DOUBLE,B11:DOUBLE,B12:DOUBLE,B13:DOUBLE,B14:DOUBLE,B15:DOUBLE,B16:DOUBLE,B17:DOUBLE,B18:DOUBLE,B19:DOUBLE,B20:DOUBLE,B21:DOUBLE,B22:DOUBLE,B23:DOUBLE,B24:DOUBLE,B25:DOUBLE,B26:DOUBLE,B27:DOUBLE,B28:DOUBLE,B29:DOUBLE,B30:DOUBLE,B31:DOUBLE,B32:DOUBLE,B33:DOUBLE,B34:DOUBLE,B35:DOUBLE,B36:DOUBLE,B37:DOUBLE,B38:DOUBLE,B39:DOUBLE,B40:DOUBLE,B41:DOUBLE,B42:DOUBLE,B43:DOUBLE,B44:DOUBLE,B45:DOUBLE,B46:DOUBLE,B47:DOUBLE,B48:DOUBLE;bM4中亿财经网财经门户

VAR:BUY:INTEGER;bM4中亿财经网财经门户

IF BARSCOUNT>PERIOD THEN BEGINbM4中亿财经网财经门户

MA1=MA(CLOSE,M1);bM4中亿财经网财经门户

MA2=MA(CLOSE,M2);bM4中亿财经网财经门户

MA3=MA(CLOSE,M3);bM4中亿财经网财经门户

MA4=MA(CLOSE,M4);bM4中亿财经网财经门户

UPP=MA1+N1*STDEV(CLOSE,M1);bM4中亿财经网财经门户

LOW=MA1-N2*STDEV(CLOSE,M1);bM4中亿财经网财经门户

B1=CLOSE<MA1 AND CROSS(MA2,MA1);bM4中亿财经网财经门户

B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;bM4中亿财经网财经门户

B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;bM4中亿财经网财经门户

B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND bM4中亿财经网财经门户

(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);bM4中亿财经网财经门户

B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;bM4中亿财经网财经门户

B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;bM4中亿财经网财经门户

B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;bM4中亿财经网财经门户

B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;bM4中亿财经网财经门户

B9=CLOSE>MA1 AND MA1<=UPP AND MA2<MA1 AND (CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4) AND BARSSINCE(B4)=1;bM4中亿财经网财经门户

B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;bM4中亿财经网财经门户

LC = Ref(CLOSE,-1);bM4中亿财经网财经门户

TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));bM4中亿财经网财经门户

B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;bM4中亿财经网财经门户

B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;bM4中亿财经网财经门户

B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND bM4中亿财经网财经门户

CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;bM4中亿财经网财经门户

IF B11 OR B12 OR B13 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

B14 = MA(CLOSE,N1) > MA(CLOSE,N2);bM4中亿财经网财经门户

B15 = MA(CLOSE,N2) > MA(CLOSE,N3);bM4中亿财经网财经门户

B16 = MA(CLOSE,N3) > MA(CLOSE,N4);bM4中亿财经网财经门户

B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B18 = VOLUME > MA(VOLUME,PERIOD)*N4;bM4中亿财经网财经门户

B19 = CLOSE > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);bM4中亿财经网财经门户

B21 = SUM(B20,PERIOD-1) = PERIOD-1;bM4中亿财经网财经门户

B22 = REF(B21,1);bM4中亿财经网财经门户

IF B21 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

IF B22 THEN BUY = 1;bM4中亿财经网财经门户

ENDbM4中亿财经网财经门户

ELSE BUY = 0;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

BUY不为0时表示出现该指标的买入信号。bM4中亿财经网财经门户

11. 通达信某均线穿某均线倍量阳指标源代码?

以下为通达信某均线穿某均线倍量阳指标的源代码:bM4中亿财经网财经门户

```bM4中亿财经网财经门户

输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;bM4中亿财经网财经门户

VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;bM4中亿财经网财经门户

VAR:UPP:DOUBLE,LOW:DOUBLE,B1:DOUBLE,B2:DOUBLE,B3:DOUBLE,B4:DOUBLE,B5:DOUBLE,B6:DOUBLE,B7:DOUBLE,B8:DOUBLE,B9:DOUBLE,B10:DOUBLE,B11:DOUBLE,B12:DOUBLE,B13:DOUBLE,B14:DOUBLE,B15:DOUBLE,B16:DOUBLE,B17:DOUBLE,B18:DOUBLE,B19:DOUBLE,B20:DOUBLE,B21:DOUBLE,B22:DOUBLE,B23:DOUBLE,B24:DOUBLE,B25:DOUBLE,B26:DOUBLE,B27:DOUBLE,B28:DOUBLE,B29:DOUBLE,B30:DOUBLE,B31:DOUBLE,B32:DOUBLE,B33:DOUBLE,B34:DOUBLE,B35:DOUBLE,B36:DOUBLE,B37:DOUBLE,B38:DOUBLE,B39:DOUBLE,B40:DOUBLE,B41:DOUBLE,B42:DOUBLE,B43:DOUBLE,B44:DOUBLE,B45:DOUBLE,B46:DOUBLE,B47:DOUBLE,B48:DOUBLE;bM4中亿财经网财经门户

VAR:BUY:INTEGER;bM4中亿财经网财经门户

IF BARSCOUNT>PERIOD THEN BEGINbM4中亿财经网财经门户

MA1=MA(CLOSE,M1);bM4中亿财经网财经门户

MA2=MA(CLOSE,M2);bM4中亿财经网财经门户

MA3=MA(CLOSE,M3);bM4中亿财经网财经门户

MA4=MA(CLOSE,M4);bM4中亿财经网财经门户

UPP=MA1+N1*STDEV(CLOSE,M1);bM4中亿财经网财经门户

LOW=MA1-N2*STDEV(CLOSE,M1);bM4中亿财经网财经门户

B1=CLOSE<MA1 AND CROSS(MA2,MA1);bM4中亿财经网财经门户

B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;bM4中亿财经网财经门户

B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;bM4中亿财经网财经门户

B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND bM4中亿财经网财经门户

(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);bM4中亿财经网财经门户

B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;bM4中亿财经网财经门户

B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;bM4中亿财经网财经门户

B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;bM4中亿财经网财经门户

B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;bM4中亿财经网财经门户

B9=CLOSE>MA1 AND MA1<=UPP AND MA2<MA1 AND (CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4) AND BARSSINCE(B4)=1;bM4中亿财经网财经门户

B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;bM4中亿财经网财经门户

LC = Ref(CLOSE,-1);bM4中亿财经网财经门户

TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));bM4中亿财经网财经门户

B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;bM4中亿财经网财经门户

B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;bM4中亿财经网财经门户

B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND bM4中亿财经网财经门户

CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;bM4中亿财经网财经门户

IF B11 OR B12 OR B13 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

B14 = MA(CLOSE,N1) > MA(CLOSE,N2);bM4中亿财经网财经门户

B15 = MA(CLOSE,N2) > MA(CLOSE,N3);bM4中亿财经网财经门户

B16 = MA(CLOSE,N3) > MA(CLOSE,N4);bM4中亿财经网财经门户

B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B18 = VOLUME > MA(VOLUME,PERIOD)*N4;bM4中亿财经网财经门户

B19 = CLOSE > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);bM4中亿财经网财经门户

B21 = SUM(B20,PERIOD-1) = PERIOD-1;bM4中亿财经网财经门户

B22 = REF(B21,1);bM4中亿财经网财经门户

IF B21 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

IF B22 THEN BUY = 1;bM4中亿财经网财经门户

ENDbM4中亿财经网财经门户

ELSE BUY = 0;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

BUY不为0时表示出现该指标的买入信号。bM4中亿财经网财经门户

12. 通达信某均线穿某均线倍量阳指标源代码?

以下为通达信某均线穿某均线倍量阳指标的源代码:bM4中亿财经网财经门户

```bM4中亿财经网财经门户

输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;bM4中亿财经网财经门户

VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;bM4中亿财经网财经门户

VAR:UPP:DOUBLE,LOW:DOUBLE,B1:DOUBLE,B2:DOUBLE,B3:DOUBLE,B4:DOUBLE,B5:DOUBLE,B6:DOUBLE,B7:DOUBLE,B8:DOUBLE,B9:DOUBLE,B10:DOUBLE,B11:DOUBLE,B12:DOUBLE,B13:DOUBLE,B14:DOUBLE,B15:DOUBLE,B16:DOUBLE,B17:DOUBLE,B18:DOUBLE,B19:DOUBLE,B20:DOUBLE,B21:DOUBLE,B22:DOUBLE,B23:DOUBLE,B24:DOUBLE,B25:DOUBLE,B26:DOUBLE,B27:DOUBLE,B28:DOUBLE,B29:DOUBLE,B30:DOUBLE,B31:DOUBLE,B32:DOUBLE,B33:DOUBLE,B34:DOUBLE,B35:DOUBLE,B36:DOUBLE,B37:DOUBLE,B38:DOUBLE,B39:DOUBLE,B40:DOUBLE,B41:DOUBLE,B42:DOUBLE,B43:DOUBLE,B44:DOUBLE,B45:DOUBLE,B46:DOUBLE,B47:DOUBLE,B48:DOUBLE;bM4中亿财经网财经门户

VAR:BUY:INTEGER;bM4中亿财经网财经门户

IF BARSCOUNT>PERIOD THEN BEGINbM4中亿财经网财经门户

MA1=MA(CLOSE,M1);bM4中亿财经网财经门户

MA2=MA(CLOSE,M2);bM4中亿财经网财经门户

MA3=MA(CLOSE,M3);bM4中亿财经网财经门户

MA4=MA(CLOSE,M4);bM4中亿财经网财经门户

UPP=MA1+N1*STDEV(CLOSE,M1);bM4中亿财经网财经门户

LOW=MA1-N2*STDEV(CLOSE,M1);bM4中亿财经网财经门户

B1=CLOSE<MA1 AND CROSS(MA2,MA1);bM4中亿财经网财经门户

B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;bM4中亿财经网财经门户

B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;bM4中亿财经网财经门户

B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND bM4中亿财经网财经门户

(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);bM4中亿财经网财经门户

B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;bM4中亿财经网财经门户

B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;bM4中亿财经网财经门户

B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;bM4中亿财经网财经门户

B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;bM4中亿财经网财经门户

B9=CLOSE>MA1 AND MA1<=UPP AND MA2<MA1 AND (CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4) AND BARSSINCE(B4)=1;bM4中亿财经网财经门户

B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;bM4中亿财经网财经门户

LC = Ref(CLOSE,-1);bM4中亿财经网财经门户

TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));bM4中亿财经网财经门户

B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;bM4中亿财经网财经门户

B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 ANDbM4中亿财经网财经门户

CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;bM4中亿财经网财经门户

B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND bM4中亿财经网财经门户

CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;bM4中亿财经网财经门户

IF B11 OR B12 OR B13 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

B14 = MA(CLOSE,N1) > MA(CLOSE,N2);bM4中亿财经网财经门户

B15 = MA(CLOSE,N2) > MA(CLOSE,N3);bM4中亿财经网财经门户

B16 = MA(CLOSE,N3) > MA(CLOSE,N4);bM4中亿财经网财经门户

B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B18 = VOLUME > MA(VOLUME,PERIOD)*N4;bM4中亿财经网财经门户

B19 = CLOSE > MA(CLOSE,PERIOD);bM4中亿财经网财经门户

B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);bM4中亿财经网财经门户

B21 = SUM(B20,PERIOD-1) = PERIOD-1;bM4中亿财经网财经门户

B22 = REF(B21,1);bM4中亿财经网财经门户

IF B21 THENbM4中亿财经网财经门户

BEGINbM4中亿财经网财经门户

IF B22 THEN BUY = 1;bM4中亿财经网财经门户

ENDbM4中亿财经网财经门户

ELSE BUY = 0;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

END;bM4中亿财经网财经门户

BUY不为0时表示出现该指标的买入信号。bM4中亿财经网财经门户