请高手帮忙把下面大智慧公式 改为通达信公式input:N(10,1,100,1),GATE1(25,1,100,1),GATE2(55,1,100,1),GA
大智慧源码;input:N(10,1,100,1),GATE1(25,1,100,1),GATE2(55,1,100,1),GATE3(20,1,100,1);p1:=p...
大智慧源码;input:N(10,1,100,1),GATE1(25,1,100,1),GATE2(55,1,100,1),GATE3(20,1,100,1);
p1:=peak(3,N,2);
p3:=peak(3,N,1);
p2:=trough(3,N,2);
p4:=trough(3,N,1);
t1:=troughbars(3,N,2)-peakbars(3,N,1);
t2:=peakbars(3,N,1)-troughbars(3,N,1);
b12:=p1-p2;
bpt:=max(p3-p2,p3-p4);
b24:=abs(p2-p4);
min(t1,t2)>20
{左右底周期跨度均大于20}
and abs(t1-t2)/min(t1,t2)*100<gate1
{左右底跨度之差与左(或右)底跨度的比值小于gate1}
and bpt/b12*100<gate2
{底部反弹幅度与前期深度跌幅的比值小于gate2}
and b24/bpt*100<gate3
{左右底股价的差与底不凡弹高度的比值小于gate3}
and cross(close,1.05*p3);
{最新收盘价向上突破颈线的1.05倍}
{注:未加入成交量放大限制条件} 展开
p1:=peak(3,N,2);
p3:=peak(3,N,1);
p2:=trough(3,N,2);
p4:=trough(3,N,1);
t1:=troughbars(3,N,2)-peakbars(3,N,1);
t2:=peakbars(3,N,1)-troughbars(3,N,1);
b12:=p1-p2;
bpt:=max(p3-p2,p3-p4);
b24:=abs(p2-p4);
min(t1,t2)>20
{左右底周期跨度均大于20}
and abs(t1-t2)/min(t1,t2)*100<gate1
{左右底跨度之差与左(或右)底跨度的比值小于gate1}
and bpt/b12*100<gate2
{底部反弹幅度与前期深度跌幅的比值小于gate2}
and b24/bpt*100<gate3
{左右底股价的差与底不凡弹高度的比值小于gate3}
and cross(close,1.05*p3);
{最新收盘价向上突破颈线的1.05倍}
{注:未加入成交量放大限制条件} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询