帝纳波利公式原码

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

D=1显示趋势向下的OP,并设置A_TIME,B_TIME,C_TIME的参数为高低点的日期, D=2显示趋势向上的OP,
详细内容请参看《帝纳波利点位交易法》一书。

显隐折返线(1,0,1)---- 0不显示 1显示第1组(1,0,1000),第2组(0,0,1000),第3组(0,0,1000)----0不显示A高低选择(1,-1,1)----A点: -1最低价 1最高价 0该组ABC不显示移动A(0,0,1000)----随便移动自定倍率(-1,-1,2)---- -1不显示该线0--2之间的任意数(包括小数)倍率线博易公式:DDD:DATE,LINETHICK0,COLORWHITE;A1:=IF(D=1, REF(H,BARSLAST(DATE=A_TIME)), IF(D=2, REF(L,BARSLAST(DATE=ATIME)), 0));B1:=IF(D=1, REF(L,BARSLAST(DATE=B_TIME)), IF(D=2, REF(H,BARSLAST(DATE=BTIME)), 0));C1:=IF(D=1, REF(H,BARSLAST(DATE=C_TIME)), IF(D=2, REF(L,BARSLAST(DATE=CTIME)), 0));入场点1:=0.618*(A1-B1)+B1,COLORRED;入场点2:=0.5*(A1-B1)+B1,COLORRED;入场点3:=0.382*(A1-B1)+B1,COLORRED;OP:B1-A1+C1,COLORYELLOW,LINETHICK0;COP:0.618*(B1-A1 )+C1,COLORYELLOW,LINETHICK0;XOP:1.618*(B1-A1)+C1,COLORYELLOW,LINETHICK0;PARTLINE (DD=10 AND DATE>= B_TIME AND D=1, 入场点1), COLORRED;PARTLINE(DD=10 AND DATE>= B_TIME AND D=1, 入场点2), COLORRED;PARTLINE(DD=10 AND DATE>= B_TIME AND D=1, 入场点3), COLORRED;PARTLINE(DD=10 AND DATE>= BTIME AND D=2, 入场点1), COLORRED;PARTLINE(DD=10 AND DATE>= BTIME AND D=2, 入场点2), COLORRED;PARTLINE(DD=10 AND DATE>= BTIME AND D=2, 入场点3), COLORRED;DRAWNUMBER(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),入场点1,0.618,3),ALIGN2;DRAWNUMBER(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),入场点2,0.5,1),ALIGN2;DRAWNUMBER(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),入场点3,0.382,3),ALIGN2;DRAWNUMBER(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),入场点1,0.618,3),ALIGN2;DRAWNUMBER(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),入场点2,0.5,1),ALIGN2;DRAWNUMBER(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),入场点3,0.382,3),ALIGN2;PARTLINE(DD=10 AND DATE>= C_TIME AND D=1, OP), COLORYELLOW;PARTLINE(DD=10 AND DATE>= C_TIME AND D=1, COP), COLORYELLOW;PARTLINE(DD=10 AND DATE>= C_TIME AND D=1, XOP), COLORYELLOW;PARTLINE(DD=10 AND DATE>= CTIME AND D=2, OP), COLORYELLOW;PARTLINE(DD=10 AND DATE>= CTIME AND D=2, COP), COLORYELLOW;PARTLINE(DD=10 AND DATE>= CTIME AND D=2, XOP), COLORYELLOW;{PARTLINE(DD=10 AND DATE>= ATIME AND D=2, A1), COLORWHITE;PARTLINE(DD=10 AND DATE>= A_TIME AND D=1, A1), COLORWHITE;}DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),OP,'OP'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),COP,'COP'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),XOP,'XOP'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),OP,'OP'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),COP,'COP'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),XOP,'XOP'),ALIGN2;STICKLINE(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),L,XOP,0.01,0),COLORGREEN;STICKLINE(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),L,XOP,0.01,0),COLORGREEN;DRAWTEXT(FILTER(DD=10 AND DATE>= A_TIME AND D=1,300),A1,'A'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= B_TIME AND
D=1,300),B1,'B'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),C1,'C'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= ATIME AND D=2,300),A1,'A'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),B1,'B'),ALIGN2;DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),C1,'C'),ALIGN2;POLYLINE((DATE=A_TIME OR DATE=B_TIME) AND D=1,IF(DATE=A_TIME, H, L)),COLORGREEN;POLYLINE((DATE=B_TIME OR DATE=C_TIME) AND D=1,IF(DATE=B_TIME, L, H)),COLORGREEN;POLYLINE((DATE=ATIME OR DATE=BTIME) AND D=2,IF(DATE=ATIME, L, H)),COLORGREEN;POLYLINE((DATE=BTIME OR DATE=CTIME) AND D=2,IF(DATE=BTIME, H, L)),COLORGREEN;
可以在大智慧中建立一个公式,使用指标排序来查看强弱:TR : MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)),LINETHICK0, COLORWHITE;ATR : MA(TR, 20),COLORYELLOW,LINETHICK0;N : (19*ATR+TR) / 20;强弱:(CLOSE-REF(C,60))/N,LINETHICK0;
N: 1 100 10
历史新高:=REF(HHV(H,0),1);N天内最高:= HHV(HIGH, N);(历史新高 == N天内最高);
文竹居士的期货交易系统
长周期均线:75, 120, 2402.慢速KD指标3. 三重滤网(实际两重滤网就够了),大周期约束小周期4.进场点依靠慢速KD交叉5.资金涌入用短周期,资金撤离用长周期
1.置换移动平均线:
MV3X3:MA(REF(C,3),3);MV7X5:MA(REF(C,5),7);MV25X5:MA(REF(C,5),25);
2.非趋势摆动指标:N为参数,老帝推荐7 和3,适用于不同类型的行情DPOO:C-MA(CLOSE,N),COLORMAGENTA;MID:0;
3.首选随机指标RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:REF(MA(RSV,3),1)+(RSV-REF (MA(RSV,3),1))/3;D:REF(MA(K,3),1)+(K-REF(MA(K,3),1))/3;
这个不知道对不对,大家试试,欢迎交流
4.首选MACD这个用不着发了,将传统指标参数值调成(8,17,9)即可
个人认为,这些只是皮毛,黄金律交易法的真正精华在于结合多重时间框架对市场的综合分析,以及黄金比率的叠加和扩展应用,这个对波浪理论有研究的比较容易理解,再就是那几个方向性指标,在方向性指标的指引下远比单纯用指标定义的趋势中操作更安全,获利潜力也更大。

相关文档
最新文档