实战真正有用的指标源码(521强庄起爆神器选股公式?)
1. 521强庄起爆神器选股公式?
521强庄起爆神器是一个股票选股工具,其选股公式主要基于以下几个方面:
资金流向:该工具会关注股票的主力资金流入流出情况,以及主力资金持股比例,选取资金流入、资金持股比例较高的股票。
技术指标:该工具会关注股票的各种技术指标,如均线、MACD等,并根据这些指标选取表现较好的股票。
相关板块:该工具会关注股票所属的板块,以及该板块的行业热点,选择行业前景较好、业绩稳定的股票。
具体来说,521强庄起爆神器的选股公式包括以下步骤:
从整个股市中筛选出市值在500亿以下,市盈率小于50的股票;
对筛选出的股票进行排名,按照主力资金持股比例、资金流入、技术指标等指标进行排名;
对排名后的股票,根据板块相关性进行进一步筛选,选择板块行业前景好、业绩稳定的股票;
最后,对筛选出的股票进行风险控制,避免选择过于风险的股票。
需要注意的是,任何股票选股工具都不是绝对可靠的,投资者在使用时需要综合考虑多方面的因素,包括市场环境、行业趋势、公司基本面等,并做好风险管理措施。
2. 521强庄起爆神器选股公式?
521强庄起爆神器是一个股票选股工具,其选股公式主要基于以下几个方面:
资金流向:该工具会关注股票的主力资金流入流出情况,以及主力资金持股比例,选取资金流入、资金持股比例较高的股票。
技术指标:该工具会关注股票的各种技术指标,如均线、MACD等,并根据这些指标选取表现较好的股票。
相关板块:该工具会关注股票所属的板块,以及该板块的行业热点,选择行业前景较好、业绩稳定的股票。
具体来说,521强庄起爆神器的选股公式包括以下步骤:
从整个股市中筛选出市值在500亿以下,市盈率小于50的股票;
对筛选出的股票进行排名,按照主力资金持股比例、资金流入、技术指标等指标进行排名;
对排名后的股票,根据板块相关性进行进一步筛选,选择板块行业前景好、业绩稳定的股票;
最后,对筛选出的股票进行风险控制,避免选择过于风险的股票。
需要注意的是,任何股票选股工具都不是绝对可靠的,投资者在使用时需要综合考虑多方面的因素,包括市场环境、行业趋势、公司基本面等,并做好风险管理措施。
3. 521强庄起爆神器选股公式?
521强庄起爆神器是一个股票选股工具,其选股公式主要基于以下几个方面:
资金流向:该工具会关注股票的主力资金流入流出情况,以及主力资金持股比例,选取资金流入、资金持股比例较高的股票。
技术指标:该工具会关注股票的各种技术指标,如均线、MACD等,并根据这些指标选取表现较好的股票。
相关板块:该工具会关注股票所属的板块,以及该板块的行业热点,选择行业前景较好、业绩稳定的股票。
具体来说,521强庄起爆神器的选股公式包括以下步骤:
从整个股市中筛选出市值在500亿以下,市盈率小于50的股票;
对筛选出的股票进行排名,按照主力资金持股比例、资金流入、技术指标等指标进行排名;
对排名后的股票,根据板块相关性进行进一步筛选,选择板块行业前景好、业绩稳定的股票;
最后,对筛选出的股票进行风险控制,避免选择过于风险的股票。
需要注意的是,任何股票选股工具都不是绝对可靠的,投资者在使用时需要综合考虑多方面的因素,包括市场环境、行业趋势、公司基本面等,并做好风险管理措施。
4. 521强庄起爆神器选股公式?
521强庄起爆神器是一个股票选股工具,其选股公式主要基于以下几个方面:
资金流向:该工具会关注股票的主力资金流入流出情况,以及主力资金持股比例,选取资金流入、资金持股比例较高的股票。
技术指标:该工具会关注股票的各种技术指标,如均线、MACD等,并根据这些指标选取表现较好的股票。
相关板块:该工具会关注股票所属的板块,以及该板块的行业热点,选择行业前景较好、业绩稳定的股票。
具体来说,521强庄起爆神器的选股公式包括以下步骤:
从整个股市中筛选出市值在500亿以下,市盈率小于50的股票;
对筛选出的股票进行排名,按照主力资金持股比例、资金流入、技术指标等指标进行排名;
对排名后的股票,根据板块相关性进行进一步筛选,选择板块行业前景好、业绩稳定的股票;
最后,对筛选出的股票进行风险控制,避免选择过于风险的股票。
需要注意的是,任何股票选股工具都不是绝对可靠的,投资者在使用时需要综合考虑多方面的因素,包括市场环境、行业趋势、公司基本面等,并做好风险管理措施。
5. rsj指标源码?
rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。
//基础指标公式
50,DOTLINE;20;80;
DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));
DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));
DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;
CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);
LC:=REF(WMA((2*CC+HH+LL)/4,3),1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;
DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));
SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;
IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;
SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;
威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;
IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;
导入软件之后的基本走势图形有:
//买卖指标公式
N1:=6;
N2:=6;
N3:=6;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
MA60:MA(C,60);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
A:20;
D:80;
买:=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);
DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;
卖:=RSI1>80 AND VOL>REF(VOL,1);
DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;
//精确买卖点公式
LC := REF(CLOSE,1);
R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;
K:=r-REF(r,1);
STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;
STICKLINE(k5.5,5,7,2),colorgreen;
x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;
y:=((k5.5)>0)*8;
//趋势分析
VAR1:=HHV(HIGH,33);
VAR2:=LLV(LOW,33);
A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;
价格线:EMA(HHV(A,3),1),colorgreen;
va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
va2:=SMA(va1,9,1),colorwhite;
趋势线:SMA(va2,6,1),colorff00ff;
va4:=3*va2-2*趋势线,colorff00ff;
撑压线:WMA((va2+趋势线+va4)/3,60),colorred;
LC:= REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;
卖线:85,LINETHICK02,POINTDOT,Color15FF15;
界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;
买线:20,LINETHICK02,POINTDOT,Color28FFFF;
6. 上升三法选股公式源码?
上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。以下是上升三法的选股公式源码:
A1:=REF(CLOSE,3)/REF(OPEN,3)>1.03;
A2:=DOWNNDAY(CLOSE,3);
A3:=H<REF(H,3) AND REF(H,2)<REF(H,3) AND REF(H,1)<REF(H,3);
A4:=REF(L,3)<L AND REF(L,3)<REF(L,2) AND REF(L,3)<REF(L,1);
A5:=CLOSE>REF(CLOSE,1);
A6:=HHV(HIGH,3)/LLV(LOW,3)<1.12;
A7:=BETWEEN(CLOSE,REF(OPEN,3)*1.005,REF(OPEN,3)*1.025);
A8:=BETWEEN(OPEN,REF(CLOSE,3)*0.995,REF(CLOSE,3)*0.975);
A9:=BETWEEN(CLOSE,REF(OPEN,3),REF(CLOSE,3));
A10:=BETWEEN(HIGH,REF(HIGH,1),REF(LOW,1));
A11:=BETWEEN(LOW,REF(HIGH,1),REF(LOW,1));
A12:=BETWEEN(CLOSE/REF(CLOSE,1)-1)*100-5 AND BETWEEN(CLOSE/REF(CLOSE,1)-1)*100+5;
A1:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12;
STICKLINE(A1,O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25),O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),O*IF(MA(CROSS(CROSS(-0.05,C/O),-0.05),4)/MA(CROSS(CROSS(-0.05,C/O),+0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),30,RGB(255,0,0));
以上源码可能会涉及到一些自定义指标,如MA、CROSS等,具体使用方法需要根据具体指标进行设置。同时,在使用选股公式时,也需要注意股票市场的具体情况,以及个人的投资偏好和风险承受能力。
7. 上升三法选股公式源码?
上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。以下是上升三法的选股公式源码:
A1:=REF(CLOSE,3)/REF(OPEN,3)>1.03;
A2:=DOWNNDAY(CLOSE,3);
A3:=H<REF(H,3) AND REF(H,2)<REF(H,3) AND REF(H,1)<REF(H,3);
A4:=REF(L,3)<L AND REF(L,3)<REF(L,2) AND REF(L,3)<REF(L,1);
A5:=CLOSE>REF(CLOSE,1);
A6:=HHV(HIGH,3)/LLV(LOW,3)<1.12;
A7:=BETWEEN(CLOSE,REF(OPEN,3)*1.005,REF(OPEN,3)*1.025);
A8:=BETWEEN(OPEN,REF(CLOSE,3)*0.995,REF(CLOSE,3)*0.975);
A9:=BETWEEN(CLOSE,REF(OPEN,3),REF(CLOSE,3));
A10:=BETWEEN(HIGH,REF(HIGH,1),REF(LOW,1));
A11:=BETWEEN(LOW,REF(HIGH,1),REF(LOW,1));
A12:=BETWEEN(CLOSE/REF(CLOSE,1)-1)*100-5 AND BETWEEN(CLOSE/REF(CLOSE,1)-1)*100+5;
A1:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12;
STICKLINE(A1,O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25),O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),O*IF(MA(CROSS(CROSS(-0.05,C/O),-0.05),4)/MA(CROSS(CROSS(-0.05,C/O),+0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),30,RGB(255,0,0));
以上源码可能会涉及到一些自定义指标,如MA、CROSS等,具体使用方法需要根据具体指标进行设置。同时,在使用选股公式时,也需要注意股票市场的具体情况,以及个人的投资偏好和风险承受能力。
8. 懂牛三线扭转指标源码?
懂牛三线扭转指标公式源码:VAR255:=LLV(LOW,5);
VAR355:=HHV(HIGH,50);
动力线:EMA((CLOSE-VAR255)/(VAR355-VAR255)*5,5)*20,POINTDOT;
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),8,1),colorlired;
STICKLINE(动力线REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),colorlired;
STICKLINE(获利比<=REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),COLOR00FF00;
LC:=REF(CLOSE,1);
9. 上升三法选股公式源码?
上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。以下是上升三法的选股公式源码:
A1:=REF(CLOSE,3)/REF(OPEN,3)>1.03;
A2:=DOWNNDAY(CLOSE,3);
A3:=H<REF(H,3) AND REF(H,2)<REF(H,3) AND REF(H,1)<REF(H,3);
A4:=REF(L,3)<L AND REF(L,3)<REF(L,2) AND REF(L,3)<REF(L,1);
A5:=CLOSE>REF(CLOSE,1);
A6:=HHV(HIGH,3)/LLV(LOW,3)<1.12;
A7:=BETWEEN(CLOSE,REF(OPEN,3)*1.005,REF(OPEN,3)*1.025);
A8:=BETWEEN(OPEN,REF(CLOSE,3)*0.995,REF(CLOSE,3)*0.975);
A9:=BETWEEN(CLOSE,REF(OPEN,3),REF(CLOSE,3));
A10:=BETWEEN(HIGH,REF(HIGH,1),REF(LOW,1));
A11:=BETWEEN(LOW,REF(HIGH,1),REF(LOW,1));
A12:=BETWEEN(CLOSE/REF(CLOSE,1)-1)*100-5 AND BETWEEN(CLOSE/REF(CLOSE,1)-1)*100+5;
A1:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12;
STICKLINE(A1,O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25),O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),O*IF(MA(CROSS(CROSS(-0.05,C/O),-0.05),4)/MA(CROSS(CROSS(-0.05,C/O),+0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),30,RGB(255,0,0));
以上源码可能会涉及到一些自定义指标,如MA、CROSS等,具体使用方法需要根据具体指标进行设置。同时,在使用选股公式时,也需要注意股票市场的具体情况,以及个人的投资偏好和风险承受能力。
10. rsj指标源码?
rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。
//基础指标公式
50,DOTLINE;20;80;
DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));
DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));
DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;
CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);
LC:=REF(WMA((2*CC+HH+LL)/4,3),1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;
DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));
SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;
IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;
SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;
威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;
IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;
导入软件之后的基本走势图形有:
//买卖指标公式
N1:=6;
N2:=6;
N3:=6;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
MA60:MA(C,60);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
A:20;
D:80;
买:=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);
DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;
卖:=RSI1>80 AND VOL>REF(VOL,1);
DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;
//精确买卖点公式
LC := REF(CLOSE,1);
R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;
K:=r-REF(r,1);
STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;
STICKLINE(k5.5,5,7,2),colorgreen;
x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;
y:=((k5.5)>0)*8;
//趋势分析
VAR1:=HHV(HIGH,33);
VAR2:=LLV(LOW,33);
A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;
价格线:EMA(HHV(A,3),1),colorgreen;
va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
va2:=SMA(va1,9,1),colorwhite;
趋势线:SMA(va2,6,1),colorff00ff;
va4:=3*va2-2*趋势线,colorff00ff;
撑压线:WMA((va2+趋势线+va4)/3,60),colorred;
LC:= REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;
卖线:85,LINETHICK02,POINTDOT,Color15FF15;
界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;
买线:20,LINETHICK02,POINTDOT,Color28FFFF;
11. 最佳筹码买入形态源码?
筹码峰选股有多种思路,这里介绍一种底部筹码没有被充分交换的思路。
必要条件
1、筹码底部充分集中,形成筹码密集单峰。这个就不说明了,大家都懂得怎么看筹码集中。
2、筹码集中过程中有涨停最佳
3、筹码集中过程中成交量温和放大
4、突破筹码峰后,成交量低于筹码集中过程中的量能,且保持相对稳定
5、上涨过程中,筹码不断分散,但是底部筹码峰保持稳定
6、筹码分散相对均匀,不能形成多峰或双峰情况
7、在底部筹码峰未被充分交换之前,可持股不动,知道顶部形成筹码峰且超过底部峰值,可以离场。
公式源码:
{筹码峰长}
HL:=(COST(97)-COST(3))/10;
CM1:=WINNER(COST(3)+HL*1)-WINNER(COST(3)+HL*0);CM2:=WINNER(COST(3)+HL*2)-WINNER(COST(3)+HL*1);
CM3:=WINNER(COST(3)+HL*3)-WINNER(COST(3)+HL*2);CM4:=WINNER(COST(3)+HL*4)-WINNER(COST(3)+HL*3);
CM5:=WINNER(COST(3)+HL*5)-WINNER(COST(3)+HL*4);CM6:=WINNER(COST(3)+HL*6)-WINNER(COST(3)+HL*5);
CM7:=WINNER(COST(3)+HL*7)-WINNER(COST(3)+HL*6);CM8:=WINNER(COST(3)+HL*8)-WINNER(COST(3)+HL*7);
CM9:=WINNER(COST(3)+HL*9)-WINNER(COST(3)+HL*8);CM10:=WINNER(COST(3)+HL*10)-WINNER(COST(3)+HL*9);
MXCM:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(CM1,CM2),CM3),CM4),CM5),CM6),CM7),CM8),CM9),CM10);
峰价上:IF(CM10>=MXCM,COST(3)+HL*10,IF(CM9>=MXCM,COST(3)+HL*9,IF(CM8>=MXCM,COST(3)+H
IF(CM7>=MXCM,COST(3)+HL*7,IF(CM6>=MXCM,COST(3)+HL*6,IF(CM5>=MXCM,COST(3)+HL*5,
IF(CM4>=MXCM,COST(3)+HL*4,IF(CM3>=MXCM,COST(3)+HL*3,IF(CM2>=MXCM,COST(3)+HL*2,
IF(CM1>=MXCM,COST(3)+HL*1,0)))))))))),COLORWHITE;
峰价下:峰价上-HL,COLORWHITE;
峰价中:峰价上-HL*0.5,COLORMAGENTA;
峰量:MXCM*100,NODRAW;
12. 最佳筹码买入形态源码?
筹码峰选股有多种思路,这里介绍一种底部筹码没有被充分交换的思路。
必要条件
1、筹码底部充分集中,形成筹码密集单峰。这个就不说明了,大家都懂得怎么看筹码集中。
2、筹码集中过程中有涨停最佳
3、筹码集中过程中成交量温和放大
4、突破筹码峰后,成交量低于筹码集中过程中的量能,且保持相对稳定
5、上涨过程中,筹码不断分散,但是底部筹码峰保持稳定
6、筹码分散相对均匀,不能形成多峰或双峰情况
7、在底部筹码峰未被充分交换之前,可持股不动,知道顶部形成筹码峰且超过底部峰值,可以离场。
公式源码:
{筹码峰长}
HL:=(COST(97)-COST(3))/10;
CM1:=WINNER(COST(3)+HL*1)-WINNER(COST(3)+HL*0);CM2:=WINNER(COST(3)+HL*2)-WINNER(COST(3)+HL*1);
CM3:=WINNER(COST(3)+HL*3)-WINNER(COST(3)+HL*2);CM4:=WINNER(COST(3)+HL*4)-WINNER(COST(3)+HL*3);
CM5:=WINNER(COST(3)+HL*5)-WINNER(COST(3)+HL*4);CM6:=WINNER(COST(3)+HL*6)-WINNER(COST(3)+HL*5);
CM7:=WINNER(COST(3)+HL*7)-WINNER(COST(3)+HL*6);CM8:=WINNER(COST(3)+HL*8)-WINNER(COST(3)+HL*7);
CM9:=WINNER(COST(3)+HL*9)-WINNER(COST(3)+HL*8);CM10:=WINNER(COST(3)+HL*10)-WINNER(COST(3)+HL*9);
MXCM:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(CM1,CM2),CM3),CM4),CM5),CM6),CM7),CM8),CM9),CM10);
峰价上:IF(CM10>=MXCM,COST(3)+HL*10,IF(CM9>=MXCM,COST(3)+HL*9,IF(CM8>=MXCM,COST(3)+H
IF(CM7>=MXCM,COST(3)+HL*7,IF(CM6>=MXCM,COST(3)+HL*6,IF(CM5>=MXCM,COST(3)+HL*5,
IF(CM4>=MXCM,COST(3)+HL*4,IF(CM3>=MXCM,COST(3)+HL*3,IF(CM2>=MXCM,COST(3)+HL*2,
IF(CM1>=MXCM,COST(3)+HL*1,0)))))))))),COLORWHITE;
峰价下:峰价上-HL,COLORWHITE;
峰价中:峰价上-HL*0.5,COLORMAGENTA;
峰量:MXCM*100,NODRAW;
13. dmi指标源码?
DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。
DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。
dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。
dmi指标公式源码
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);
HD:=HIGH-ref(HIGH,1);
LD:=ref(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);
DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);
PDI:=DMP*100/TR,COLORFFFFFF;
DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;
DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;
MDI:=DMM*100/TR,COLOR00FFFF;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;
14. rsj指标源码?
rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。
//基础指标公式
50,DOTLINE;20;80;
DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));
DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));
DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;
CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);
LC:=REF(WMA((2*CC+HH+LL)/4,3),1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;
DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));
SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;
IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;
SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;
威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;
IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;
导入软件之后的基本走势图形有:
//买卖指标公式
N1:=6;
N2:=6;
N3:=6;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
MA60:MA(C,60);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
A:20;
D:80;
买:=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);
DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;
卖:=RSI1>80 AND VOL>REF(VOL,1);
DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;
//精确买卖点公式
LC := REF(CLOSE,1);
R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;
K:=r-REF(r,1);
STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;
STICKLINE(k5.5,5,7,2),colorgreen;
x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;
y:=((k5.5)>0)*8;
//趋势分析
VAR1:=HHV(HIGH,33);
VAR2:=LLV(LOW,33);
A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;
价格线:EMA(HHV(A,3),1),colorgreen;
va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
va2:=SMA(va1,9,1),colorwhite;
趋势线:SMA(va2,6,1),colorff00ff;
va4:=3*va2-2*趋势线,colorff00ff;
撑压线:WMA((va2+趋势线+va4)/3,60),colorred;
LC:= REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;
卖线:85,LINETHICK02,POINTDOT,Color15FF15;
界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;
买线:20,LINETHICK02,POINTDOT,Color28FFFF;
15. 最佳筹码买入形态源码?
筹码峰选股有多种思路,这里介绍一种底部筹码没有被充分交换的思路。
必要条件
1、筹码底部充分集中,形成筹码密集单峰。这个就不说明了,大家都懂得怎么看筹码集中。
2、筹码集中过程中有涨停最佳
3、筹码集中过程中成交量温和放大
4、突破筹码峰后,成交量低于筹码集中过程中的量能,且保持相对稳定
5、上涨过程中,筹码不断分散,但是底部筹码峰保持稳定
6、筹码分散相对均匀,不能形成多峰或双峰情况
7、在底部筹码峰未被充分交换之前,可持股不动,知道顶部形成筹码峰且超过底部峰值,可以离场。
公式源码:
{筹码峰长}
HL:=(COST(97)-COST(3))/10;
CM1:=WINNER(COST(3)+HL*1)-WINNER(COST(3)+HL*0);CM2:=WINNER(COST(3)+HL*2)-WINNER(COST(3)+HL*1);
CM3:=WINNER(COST(3)+HL*3)-WINNER(COST(3)+HL*2);CM4:=WINNER(COST(3)+HL*4)-WINNER(COST(3)+HL*3);
CM5:=WINNER(COST(3)+HL*5)-WINNER(COST(3)+HL*4);CM6:=WINNER(COST(3)+HL*6)-WINNER(COST(3)+HL*5);
CM7:=WINNER(COST(3)+HL*7)-WINNER(COST(3)+HL*6);CM8:=WINNER(COST(3)+HL*8)-WINNER(COST(3)+HL*7);
CM9:=WINNER(COST(3)+HL*9)-WINNER(COST(3)+HL*8);CM10:=WINNER(COST(3)+HL*10)-WINNER(COST(3)+HL*9);
MXCM:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(CM1,CM2),CM3),CM4),CM5),CM6),CM7),CM8),CM9),CM10);
峰价上:IF(CM10>=MXCM,COST(3)+HL*10,IF(CM9>=MXCM,COST(3)+HL*9,IF(CM8>=MXCM,COST(3)+H
IF(CM7>=MXCM,COST(3)+HL*7,IF(CM6>=MXCM,COST(3)+HL*6,IF(CM5>=MXCM,COST(3)+HL*5,
IF(CM4>=MXCM,COST(3)+HL*4,IF(CM3>=MXCM,COST(3)+HL*3,IF(CM2>=MXCM,COST(3)+HL*2,
IF(CM1>=MXCM,COST(3)+HL*1,0)))))))))),COLORWHITE;
峰价下:峰价上-HL,COLORWHITE;
峰价中:峰价上-HL*0.5,COLORMAGENTA;
峰量:MXCM*100,NODRAW;
16. 懂牛三线扭转指标源码?
懂牛三线扭转指标公式源码:VAR255:=LLV(LOW,5);
VAR355:=HHV(HIGH,50);
动力线:EMA((CLOSE-VAR255)/(VAR355-VAR255)*5,5)*20,POINTDOT;
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),8,1),colorlired;
STICKLINE(动力线REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),colorlired;
STICKLINE(获利比<=REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),COLOR00FF00;
LC:=REF(CLOSE,1);
17. dmi指标源码?
DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。
DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。
dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。
dmi指标公式源码
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);
HD:=HIGH-ref(HIGH,1);
LD:=ref(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);
DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);
PDI:=DMP*100/TR,COLORFFFFFF;
DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;
DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;
MDI:=DMM*100/TR,COLOR00FFFF;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;
18. 股票源码指标公式?
答:界:=MA(CLOSE,27);
B买:IF(CROSS(指导线,界) OR CROSS(买线YGB,卖线YGB),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线YGB>=卖线YGB,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,指导线) OR CROSS(卖线YGB,买线YGB),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线YGB<卖线YGB,C,DRAWNULL),COLORGREEN,NODRAW;
19. 股票源码指标公式?
答:界:=MA(CLOSE,27);
B买:IF(CROSS(指导线,界) OR CROSS(买线YGB,卖线YGB),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线YGB>=卖线YGB,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,指导线) OR CROSS(卖线YGB,买线YGB),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线YGB<卖线YGB,C,DRAWNULL),COLORGREEN,NODRAW;
20. rsj指标源码?
rsi指标讲解的主要内容是基础的指标公式、买卖指标公式、精确买卖点、趋势分析、自用以及复合通道公式的解析,希望能够在实战中帮助到广大投资者。
//基础指标公式
50,DOTLINE;20;80;
DRAWBAND(80,RGB(0,30,255),100,RGB(0,30,255));
DRAWBAND(20,RGB(0,150,200),0,RGB(0,150,200));
DRAWTEXT_FIX(1,0.02,0,0,'★RSI6与RSA12金叉参考买入.死叉参考卖出. ★威廉WR大于80买入区.小于20卖出区.'),COLOR00FFFF,LINETHICK3;
CC:=FORCAST(C,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);
LC:=REF(WMA((2*CC+HH+LL)/4,3),1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK0;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK0;
DRAWBAND(RSI6,RGB(255,80,0),RSI12,RGB(0,255,100));
SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFF9900,LINETHICK3;
IF(RSI6>REF(RSI6,1),RSI6,DRAWNULL),COLOR0000FF,LINETHICK4;
SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLOR00FFFF,LINETHICK2;
威廉WR:FORCAST(100*(HHV(HH,14)-CC)/(HHV(HH,14)-LLV(LL,14)),5),COLOR00FFFF,DOTLINE;
IF(威廉WR>80 ,威廉WR,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(威廉WR<20,威廉WR,DRAWNULL),COLOR0000FF,LINETHICK3;
导入软件之后的基本走势图形有:
//买卖指标公式
N1:=6;
N2:=6;
N3:=6;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
MA60:MA(C,60);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
A:20;
D:80;
买:=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);
DRAWTEXT(买,RSI1*0.8,'买'),COLOR0099FF;
卖:=RSI1>80 AND VOL>REF(VOL,1);
DRAWTEXT(卖,RSI1*1.09,'卖'),COLOR0099FF;
//精确买卖点公式
LC := REF(CLOSE,1);
R:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*10;
K:=r-REF(r,1);
STICKLINE(k>REF(k,1) AND R<3 AND (k<0 OR REF(k,1)<0),3,5,2),colorred;
STICKLINE(k5.5,5,7,2),colorgreen;
x:=(k>REF(k,1) AND R<3.0 AND (k<0 OR REF(k,1)<0))*8;
y:=((k5.5)>0)*8;
//趋势分析
VAR1:=HHV(HIGH,33);
VAR2:=LLV(LOW,33);
A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;
价格线:EMA(HHV(A,3),1),colorgreen;
va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
va2:=SMA(va1,9,1),colorwhite;
趋势线:SMA(va2,6,1),colorff00ff;
va4:=3*va2-2*趋势线,colorff00ff;
撑压线:WMA((va2+趋势线+va4)/3,60),colorred;
LC:= REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;
卖线:85,LINETHICK02,POINTDOT,Color15FF15;
界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;
买线:20,LINETHICK02,POINTDOT,Color28FFFF;
21. dmi指标源码?
DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。
DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。
dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。
dmi指标公式源码
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);
HD:=HIGH-ref(HIGH,1);
LD:=ref(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);
DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);
PDI:=DMP*100/TR,COLORFFFFFF;
DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;
DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;
MDI:=DMM*100/TR,COLOR00FFFF;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;
22. dmi指标源码?
DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。
DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。
dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。
dmi指标公式源码
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);
HD:=HIGH-ref(HIGH,1);
LD:=ref(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);
DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);
PDI:=DMP*100/TR,COLORFFFFFF;
DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;
DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;
MDI:=DMM*100/TR,COLOR00FFFF;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;
23. 股票源码指标公式?
答:界:=MA(CLOSE,27);
B买:IF(CROSS(指导线,界) OR CROSS(买线YGB,卖线YGB),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线YGB>=卖线YGB,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,指导线) OR CROSS(卖线YGB,买线YGB),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线YGB<卖线YGB,C,DRAWNULL),COLORGREEN,NODRAW;
24. 最佳筹码买入形态源码?
筹码峰选股有多种思路,这里介绍一种底部筹码没有被充分交换的思路。
必要条件
1、筹码底部充分集中,形成筹码密集单峰。这个就不说明了,大家都懂得怎么看筹码集中。
2、筹码集中过程中有涨停最佳
3、筹码集中过程中成交量温和放大
4、突破筹码峰后,成交量低于筹码集中过程中的量能,且保持相对稳定
5、上涨过程中,筹码不断分散,但是底部筹码峰保持稳定
6、筹码分散相对均匀,不能形成多峰或双峰情况
7、在底部筹码峰未被充分交换之前,可持股不动,知道顶部形成筹码峰且超过底部峰值,可以离场。
公式源码:
{筹码峰长}
HL:=(COST(97)-COST(3))/10;
CM1:=WINNER(COST(3)+HL*1)-WINNER(COST(3)+HL*0);CM2:=WINNER(COST(3)+HL*2)-WINNER(COST(3)+HL*1);
CM3:=WINNER(COST(3)+HL*3)-WINNER(COST(3)+HL*2);CM4:=WINNER(COST(3)+HL*4)-WINNER(COST(3)+HL*3);
CM5:=WINNER(COST(3)+HL*5)-WINNER(COST(3)+HL*4);CM6:=WINNER(COST(3)+HL*6)-WINNER(COST(3)+HL*5);
CM7:=WINNER(COST(3)+HL*7)-WINNER(COST(3)+HL*6);CM8:=WINNER(COST(3)+HL*8)-WINNER(COST(3)+HL*7);
CM9:=WINNER(COST(3)+HL*9)-WINNER(COST(3)+HL*8);CM10:=WINNER(COST(3)+HL*10)-WINNER(COST(3)+HL*9);
MXCM:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(CM1,CM2),CM3),CM4),CM5),CM6),CM7),CM8),CM9),CM10);
峰价上:IF(CM10>=MXCM,COST(3)+HL*10,IF(CM9>=MXCM,COST(3)+HL*9,IF(CM8>=MXCM,COST(3)+H
IF(CM7>=MXCM,COST(3)+HL*7,IF(CM6>=MXCM,COST(3)+HL*6,IF(CM5>=MXCM,COST(3)+HL*5,
IF(CM4>=MXCM,COST(3)+HL*4,IF(CM3>=MXCM,COST(3)+HL*3,IF(CM2>=MXCM,COST(3)+HL*2,
IF(CM1>=MXCM,COST(3)+HL*1,0)))))))))),COLORWHITE;
峰价下:峰价上-HL,COLORWHITE;
峰价中:峰价上-HL*0.5,COLORMAGENTA;
峰量:MXCM*100,NODRAW;
25. 上升三法选股公式源码?
上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。上升三法是一种K线形态,它由五根K线组成,其中第一根K线是阳线,然后是三根连续的小阴线,最后是一根阳线。以下是上升三法的选股公式源码:
A1:=REF(CLOSE,3)/REF(OPEN,3)>1.03;
A2:=DOWNNDAY(CLOSE,3);
A3:=H<REF(H,3) AND REF(H,2)<REF(H,3) AND REF(H,1)<REF(H,3);
A4:=REF(L,3)<L AND REF(L,3)<REF(L,2) AND REF(L,3)<REF(L,1);
A5:=CLOSE>REF(CLOSE,1);
A6:=HHV(HIGH,3)/LLV(LOW,3)<1.12;
A7:=BETWEEN(CLOSE,REF(OPEN,3)*1.005,REF(OPEN,3)*1.025);
A8:=BETWEEN(OPEN,REF(CLOSE,3)*0.995,REF(CLOSE,3)*0.975);
A9:=BETWEEN(CLOSE,REF(OPEN,3),REF(CLOSE,3));
A10:=BETWEEN(HIGH,REF(HIGH,1),REF(LOW,1));
A11:=BETWEEN(LOW,REF(HIGH,1),REF(LOW,1));
A12:=BETWEEN(CLOSE/REF(CLOSE,1)-1)*100-5 AND BETWEEN(CLOSE/REF(CLOSE,1)-1)*100+5;
A1:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12;
STICKLINE(A1,O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25),O*IF(MA(CROSS(CROSS(C/O,-0.05),+0.05),4)/MA(CROSS(CROSS(-0.05,C/O),-0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),O*IF(MA(CROSS(CROSS(-0.05,C/O),-0.05),4)/MA(CROSS(CROSS(-0.05,C/O),+0.05),4)>=1.25)*0.995 AND CROSS(-0.05,C/O),30,RGB(255,0,0));
以上源码可能会涉及到一些自定义指标,如MA、CROSS等,具体使用方法需要根据具体指标进行设置。同时,在使用选股公式时,也需要注意股票市场的具体情况,以及个人的投资偏好和风险承受能力。
26. 通达信某均线穿某均线倍量阳指标源代码?
以下为通达信某均线穿某均线倍量阳指标的源代码:
```
输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;
VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;
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;
VAR:BUY:INTEGER;
IF BARSCOUNT>PERIOD THEN BEGIN
MA1=MA(CLOSE,M1);
MA2=MA(CLOSE,M2);
MA3=MA(CLOSE,M3);
MA4=MA(CLOSE,M4);
UPP=MA1+N1*STDEV(CLOSE,M1);
LOW=MA1-N2*STDEV(CLOSE,M1);
B1=CLOSE<MA1 AND CROSS(MA2,MA1);
B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;
B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;
B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND
(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);
B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;
B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;
B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;
B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;
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;
B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;
LC = Ref(CLOSE,-1);
TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));
B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;
B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;
B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND
CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;
IF B11 OR B12 OR B13 THEN
BEGIN
B14 = MA(CLOSE,N1) > MA(CLOSE,N2);
B15 = MA(CLOSE,N2) > MA(CLOSE,N3);
B16 = MA(CLOSE,N3) > MA(CLOSE,N4);
B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);
B18 = VOLUME > MA(VOLUME,PERIOD)*N4;
B19 = CLOSE > MA(CLOSE,PERIOD);
B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);
B21 = SUM(B20,PERIOD-1) = PERIOD-1;
B22 = REF(B21,1);
IF B21 THEN
BEGIN
IF B22 THEN BUY = 1;
END
ELSE BUY = 0;
END;
END;
BUY不为0时表示出现该指标的买入信号。
27. 懂牛三线扭转指标源码?
懂牛三线扭转指标公式源码:VAR255:=LLV(LOW,5);
VAR355:=HHV(HIGH,50);
动力线:EMA((CLOSE-VAR255)/(VAR355-VAR255)*5,5)*20,POINTDOT;
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),8,1),colorlired;
STICKLINE(动力线REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),colorlired;
STICKLINE(获利比<=REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),COLOR00FF00;
LC:=REF(CLOSE,1);
28. 懂牛三线扭转指标源码?
懂牛三线扭转指标公式源码:VAR255:=LLV(LOW,5);
VAR355:=HHV(HIGH,50);
动力线:EMA((CLOSE-VAR255)/(VAR355-VAR255)*5,5)*20,POINTDOT;
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),8,1),colorlired;
STICKLINE(动力线REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),colorlired;
STICKLINE(获利比<=REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),COLOR00FF00;
LC:=REF(CLOSE,1);
29. 通达信某均线穿某均线倍量阳指标源代码?
以下为通达信某均线穿某均线倍量阳指标的源代码:
```
输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;
VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;
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;
VAR:BUY:INTEGER;
IF BARSCOUNT>PERIOD THEN BEGIN
MA1=MA(CLOSE,M1);
MA2=MA(CLOSE,M2);
MA3=MA(CLOSE,M3);
MA4=MA(CLOSE,M4);
UPP=MA1+N1*STDEV(CLOSE,M1);
LOW=MA1-N2*STDEV(CLOSE,M1);
B1=CLOSE<MA1 AND CROSS(MA2,MA1);
B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;
B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;
B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND
(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);
B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;
B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;
B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;
B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;
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;
B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;
LC = Ref(CLOSE,-1);
TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));
B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;
B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;
B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND
CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;
IF B11 OR B12 OR B13 THEN
BEGIN
B14 = MA(CLOSE,N1) > MA(CLOSE,N2);
B15 = MA(CLOSE,N2) > MA(CLOSE,N3);
B16 = MA(CLOSE,N3) > MA(CLOSE,N4);
B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);
B18 = VOLUME > MA(VOLUME,PERIOD)*N4;
B19 = CLOSE > MA(CLOSE,PERIOD);
B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);
B21 = SUM(B20,PERIOD-1) = PERIOD-1;
B22 = REF(B21,1);
IF B21 THEN
BEGIN
IF B22 THEN BUY = 1;
END
ELSE BUY = 0;
END;
END;
BUY不为0时表示出现该指标的买入信号。
30. 通达信某均线穿某均线倍量阳指标源代码?
以下为通达信某均线穿某均线倍量阳指标的源代码:
```
输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;
VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;
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;
VAR:BUY:INTEGER;
IF BARSCOUNT>PERIOD THEN BEGIN
MA1=MA(CLOSE,M1);
MA2=MA(CLOSE,M2);
MA3=MA(CLOSE,M3);
MA4=MA(CLOSE,M4);
UPP=MA1+N1*STDEV(CLOSE,M1);
LOW=MA1-N2*STDEV(CLOSE,M1);
B1=CLOSE<MA1 AND CROSS(MA2,MA1);
B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;
B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;
B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND
(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);
B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;
B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;
B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;
B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;
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;
B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;
LC = Ref(CLOSE,-1);
TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));
B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;
B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;
B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND
CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;
IF B11 OR B12 OR B13 THEN
BEGIN
B14 = MA(CLOSE,N1) > MA(CLOSE,N2);
B15 = MA(CLOSE,N2) > MA(CLOSE,N3);
B16 = MA(CLOSE,N3) > MA(CLOSE,N4);
B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);
B18 = VOLUME > MA(VOLUME,PERIOD)*N4;
B19 = CLOSE > MA(CLOSE,PERIOD);
B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);
B21 = SUM(B20,PERIOD-1) = PERIOD-1;
B22 = REF(B21,1);
IF B21 THEN
BEGIN
IF B22 THEN BUY = 1;
END
ELSE BUY = 0;
END;
END;
BUY不为0时表示出现该指标的买入信号。
31. 股票源码指标公式?
答:界:=MA(CLOSE,27);
B买:IF(CROSS(指导线,界) OR CROSS(买线YGB,卖线YGB),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线YGB>=卖线YGB,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,指导线) OR CROSS(卖线YGB,买线YGB),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线YGB<卖线YGB,C,DRAWNULL),COLORGREEN,NODRAW;
32. 通达信某均线穿某均线倍量阳指标源代码?
以下为通达信某均线穿某均线倍量阳指标的源代码:
```
输入:M1:SHORT,M2:SHORT,M3:SHORT,M4:SHORT,N1:SHORT,N2:SHORT,N3:SHORT,N4:SHORT,PERIOD:INTEGER;
VAR:MA1:DOUBLE,MA2:DOUBLE,MA3:DOUBLE,MA4:DOUBLE,LC:DOUBLE,TR:DOUBLE;
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;
VAR:BUY:INTEGER;
IF BARSCOUNT>PERIOD THEN BEGIN
MA1=MA(CLOSE,M1);
MA2=MA(CLOSE,M2);
MA3=MA(CLOSE,M3);
MA4=MA(CLOSE,M4);
UPP=MA1+N1*STDEV(CLOSE,M1);
LOW=MA1-N2*STDEV(CLOSE,M1);
B1=CLOSE<MA1 AND CROSS(MA2,MA1);
B2=CLOSE<MA1 AND MA1<=MA2 AND MA2<MA3 AND MA3<MA4;
B3=CLOSE<MA1 AND MA4<MA3 AND MA3<MA2 AND MA2<MA1;
B4=CLOSE<=MA2 AND MA2<MA1 AND MA1<=UPP AND
(CLOSE-MA2)>N3*(MA2-MA3) AND (MA2-MA3)<N4*(MA3-MA4);
B5=CLOSE<=MA2 AND MA2<MA1 AND UPP<CLOSE;
B6=CLOSE>MA1 AND MA2>=MA1 AND BARSSINCE(B1)=1;
B7=CLOSE>MA1 AND MA2<MA1 AND BARSSINCE(B2)=1;
B8=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND BARSSINCE(B3)=1;
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;
B10=CLOSE>MA1 AND UPP<=MA1 AND BARSSINCE(B5)=1;
LC = Ref(CLOSE,-1);
TR = Max(Max(HIGH-LOW,ABS(HIGH-LC)),ABS(LC-LOW));
B11=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B6)>=PERIOD;
B12=CLOSE>MA1 AND MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND
CLOSE-MA4>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B7)>=PERIOD;
B13=CLOSE>MA1 AND MA3<MA2 AND MA2<MA1 AND
CLOSE-MA1>(N1+N2+N3+N4)/4*TR AND BARSSINCE(B8)>=PERIOD;
IF B11 OR B12 OR B13 THEN
BEGIN
B14 = MA(CLOSE,N1) > MA(CLOSE,N2);
B15 = MA(CLOSE,N2) > MA(CLOSE,N3);
B16 = MA(CLOSE,N3) > MA(CLOSE,N4);
B17 = MA(CLOSE,N4) > MA(CLOSE,PERIOD);
B18 = VOLUME > MA(VOLUME,PERIOD)*N4;
B19 = CLOSE > MA(CLOSE,PERIOD);
B20 = IFF(B14 AND B15 AND B16 AND B17 AND B18 AND B19,1,0);
B21 = SUM(B20,PERIOD-1) = PERIOD-1;
B22 = REF(B21,1);
IF B21 THEN
BEGIN
IF B22 THEN BUY = 1;
END
ELSE BUY = 0;
END;
END;
BUY不为0时表示出现该指标的买入信号。