首页 > 问答热点>正文

通达信两线指标(sar指标与均线叠加怎样设置?)

中亿财经网 gengxing 2023-07-31 21:36:13

1. sar指标与均线叠加怎样设置?

通达信常用方法,在均线指标空白处点击右键,选主图指标,选叠加其它指标,单击,在常用指标中选SAR抛物线指标,单击确定,完成叠加。0S7中亿财经网财经门户

若要删除,在已叠加的SAR指标上单击选择,单击右键选择删除当前指标即可。0S7中亿财经网财经门户

如果有编程基础,也可以利用公式管理器完成叠加。具体的就是打开公式管理器,选均线系统公式,再将SAR指标公式粘贴在其后。0S7中亿财经网财经门户

2. 求通达信均线粘合首次出现多头排列选股公式?

XG:CROSS(((ABS(MA(C,5)-MA(C,10))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,20))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,20)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,20)))/C<0.09 AND0S7中亿财经网财经门户

MA(C,5)>REF(MA(C,5),1) AND0S7中亿财经网财经门户

MA(C,10)>REF(MA(C,10),1) AND0S7中亿财经网财经门户

MA(C,20)>REF(MA(C,20),1)AND0S7中亿财经网财经门户

MA(C,60)>REF(MA(C,60),1)),0.5);0S7中亿财经网财经门户

3. 通达信如何在主图显示黑牛均线?

1、打开主图底部工具栏,单击“技术指标”;0S7中亿财经网财经门户

2、单击“主图指标”,在弹窗中选择“黑牛均线”;0S7中亿财经网财经门户

3、然后调整一些配置参数,如移动平均周期、类型等;0S7中亿财经网财经门户

4、点击“确定”按钮,即可在主图中显示黑牛均线。0S7中亿财经网财经门户

4. 通达信的选股公式,一条均线在两个K线之间走平,如何编写呢?

是平就不代表绝对相等,何况出现绝对相等的机率并不高;所以,就按均线昨天的值与今天的值相差百分比来进行对比:0S7中亿财经网财经门户

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

LINE_1:=ABS(MA10-REF(MA10,1))/REF(MA10,1)*1000S7中亿财经网财经门户

LINE_2:=EVERY(LINE_1,2); { 判断LINE_1的情况是否一直存在,这里对比两天,你可以更改为多天 }0S7中亿财经网财经门户

XG:LINE_2; { 如果只判断一天,你可以将LINE_2改为LINE_1 } 0S7中亿财经网财经门户

5. 求通达信均线粘合首次出现多头排列选股公式?

XG:CROSS(((ABS(MA(C,5)-MA(C,10))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,20))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,20)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,20)))/C<0.09 AND0S7中亿财经网财经门户

MA(C,5)>REF(MA(C,5),1) AND0S7中亿财经网财经门户

MA(C,10)>REF(MA(C,10),1) AND0S7中亿财经网财经门户

MA(C,20)>REF(MA(C,20),1)AND0S7中亿财经网财经门户

MA(C,60)>REF(MA(C,60),1)),0.5);0S7中亿财经网财经门户

6. sar指标与均线叠加怎样设置?

通达信常用方法,在均线指标空白处点击右键,选主图指标,选叠加其它指标,单击,在常用指标中选SAR抛物线指标,单击确定,完成叠加。0S7中亿财经网财经门户

若要删除,在已叠加的SAR指标上单击选择,单击右键选择删除当前指标即可。0S7中亿财经网财经门户

如果有编程基础,也可以利用公式管理器完成叠加。具体的就是打开公式管理器,选均线系统公式,再将SAR指标公式粘贴在其后。0S7中亿财经网财经门户

7. 通达信的选股公式,一条均线在两个K线之间走平,如何编写呢?

是平就不代表绝对相等,何况出现绝对相等的机率并不高;所以,就按均线昨天的值与今天的值相差百分比来进行对比:0S7中亿财经网财经门户

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

LINE_1:=ABS(MA10-REF(MA10,1))/REF(MA10,1)*1000S7中亿财经网财经门户

LINE_2:=EVERY(LINE_1,2); { 判断LINE_1的情况是否一直存在,这里对比两天,你可以更改为多天 }0S7中亿财经网财经门户

XG:LINE_2; { 如果只判断一天,你可以将LINE_2改为LINE_1 } 0S7中亿财经网财经门户

8. sar指标与均线叠加怎样设置?

通达信常用方法,在均线指标空白处点击右键,选主图指标,选叠加其它指标,单击,在常用指标中选SAR抛物线指标,单击确定,完成叠加。0S7中亿财经网财经门户

若要删除,在已叠加的SAR指标上单击选择,单击右键选择删除当前指标即可。0S7中亿财经网财经门户

如果有编程基础,也可以利用公式管理器完成叠加。具体的就是打开公式管理器,选均线系统公式,再将SAR指标公式粘贴在其后。0S7中亿财经网财经门户

9. 通达信的选股公式,一条均线在两个K线之间走平,如何编写呢?

是平就不代表绝对相等,何况出现绝对相等的机率并不高;所以,就按均线昨天的值与今天的值相差百分比来进行对比:0S7中亿财经网财经门户

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

LINE_1:=ABS(MA10-REF(MA10,1))/REF(MA10,1)*1000S7中亿财经网财经门户

LINE_2:=EVERY(LINE_1,2); { 判断LINE_1的情况是否一直存在,这里对比两天,你可以更改为多天 }0S7中亿财经网财经门户

XG:LINE_2; { 如果只判断一天,你可以将LINE_2改为LINE_1 } 0S7中亿财经网财经门户

10. 角度观察副图指标公式?

通达信5日简单移动平均线和10日简单移动平均线角度代码。0S7中亿财经网财经门户

均线上升角度代表股价上攻力度,角度越大上攻力度越大,该指标可作为选股公式,根据自己需要设置参数,也可作为副图指标。0S7中亿财经网财经门户

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

角度10:ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

11. 角度观察副图指标公式?

通达信5日简单移动平均线和10日简单移动平均线角度代码。0S7中亿财经网财经门户

均线上升角度代表股价上攻力度,角度越大上攻力度越大,该指标可作为选股公式,根据自己需要设置参数,也可作为副图指标。0S7中亿财经网财经门户

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

角度10:ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

12. 角度观察副图指标公式?

通达信5日简单移动平均线和10日简单移动平均线角度代码。0S7中亿财经网财经门户

均线上升角度代表股价上攻力度,角度越大上攻力度越大,该指标可作为选股公式,根据自己需要设置参数,也可作为副图指标。0S7中亿财经网财经门户

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

角度10:ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

13. 通达信的选股公式,一条均线在两个K线之间走平,如何编写呢?

是平就不代表绝对相等,何况出现绝对相等的机率并不高;所以,就按均线昨天的值与今天的值相差百分比来进行对比:0S7中亿财经网财经门户

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

LINE_1:=ABS(MA10-REF(MA10,1))/REF(MA10,1)*1000S7中亿财经网财经门户

LINE_2:=EVERY(LINE_1,2); { 判断LINE_1的情况是否一直存在,这里对比两天,你可以更改为多天 }0S7中亿财经网财经门户

XG:LINE_2; { 如果只判断一天,你可以将LINE_2改为LINE_1 } 0S7中亿财经网财经门户

14. 通达信如何在主图显示黑牛均线?

1、打开主图底部工具栏,单击“技术指标”;0S7中亿财经网财经门户

2、单击“主图指标”,在弹窗中选择“黑牛均线”;0S7中亿财经网财经门户

3、然后调整一些配置参数,如移动平均周期、类型等;0S7中亿财经网财经门户

4、点击“确定”按钮,即可在主图中显示黑牛均线。0S7中亿财经网财经门户

15. 通达信如何在主图显示黑牛均线?

1、打开主图底部工具栏,单击“技术指标”;0S7中亿财经网财经门户

2、单击“主图指标”,在弹窗中选择“黑牛均线”;0S7中亿财经网财经门户

3、然后调整一些配置参数,如移动平均周期、类型等;0S7中亿财经网财经门户

4、点击“确定”按钮,即可在主图中显示黑牛均线。0S7中亿财经网财经门户

16. 求通达信均线粘合首次出现多头排列选股公式?

XG:CROSS(((ABS(MA(C,5)-MA(C,10))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,20))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,20)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,20)))/C<0.09 AND0S7中亿财经网财经门户

MA(C,5)>REF(MA(C,5),1) AND0S7中亿财经网财经门户

MA(C,10)>REF(MA(C,10),1) AND0S7中亿财经网财经门户

MA(C,20)>REF(MA(C,20),1)AND0S7中亿财经网财经门户

MA(C,60)>REF(MA(C,60),1)),0.5);0S7中亿财经网财经门户

17. 角度观察副图指标公式?

通达信5日简单移动平均线和10日简单移动平均线角度代码。0S7中亿财经网财经门户

均线上升角度代表股价上攻力度,角度越大上攻力度越大,该指标可作为选股公式,根据自己需要设置参数,也可作为副图指标。0S7中亿财经网财经门户

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

角度10:ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;0S7中亿财经网财经门户

18. 通达信如何在主图显示黑牛均线?

1、打开主图底部工具栏,单击“技术指标”;0S7中亿财经网财经门户

2、单击“主图指标”,在弹窗中选择“黑牛均线”;0S7中亿财经网财经门户

3、然后调整一些配置参数,如移动平均周期、类型等;0S7中亿财经网财经门户

4、点击“确定”按钮,即可在主图中显示黑牛均线。0S7中亿财经网财经门户

19. sar指标与均线叠加怎样设置?

通达信常用方法,在均线指标空白处点击右键,选主图指标,选叠加其它指标,单击,在常用指标中选SAR抛物线指标,单击确定,完成叠加。0S7中亿财经网财经门户

若要删除,在已叠加的SAR指标上单击选择,单击右键选择删除当前指标即可。0S7中亿财经网财经门户

如果有编程基础,也可以利用公式管理器完成叠加。具体的就是打开公式管理器,选均线系统公式,再将SAR指标公式粘贴在其后。0S7中亿财经网财经门户

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

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

```0S7中亿财经网财经门户

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

END0S7中亿财经网财经门户

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

END;0S7中亿财经网财经门户

END;0S7中亿财经网财经门户

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

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

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

```0S7中亿财经网财经门户

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

END0S7中亿财经网财经门户

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

END;0S7中亿财经网财经门户

END;0S7中亿财经网财经门户

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

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

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

```0S7中亿财经网财经门户

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

END0S7中亿财经网财经门户

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

END;0S7中亿财经网财经门户

END;0S7中亿财经网财经门户

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

23. 求通达信均线粘合首次出现多头排列选股公式?

XG:CROSS(((ABS(MA(C,5)-MA(C,10))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,20))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,10)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,20)-MA(C,60))+0S7中亿财经网财经门户

ABS(MA(C,5)-MA(C,20)))/C<0.09 AND0S7中亿财经网财经门户

MA(C,5)>REF(MA(C,5),1) AND0S7中亿财经网财经门户

MA(C,10)>REF(MA(C,10),1) AND0S7中亿财经网财经门户

MA(C,20)>REF(MA(C,20),1)AND0S7中亿财经网财经门户

MA(C,60)>REF(MA(C,60),1)),0.5);0S7中亿财经网财经门户

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

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

```0S7中亿财经网财经门户

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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;0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

BEGIN0S7中亿财经网财经门户

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

END0S7中亿财经网财经门户

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

END;0S7中亿财经网财经门户

END;0S7中亿财经网财经门户

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