仿一品【三角分割】指标公式源码[同花顺公式]
相关标签: 我的未来不是梦 、 我的未来不是梦歌词 、 我的未来不是梦原唱 、 我的未来不是梦作文 、 我的未来不是梦伴奏 、 我的未来不是梦mp3 、 我的未来不是梦演讲稿 、 我的未来不是梦吉他谱 、 我的未来不是梦简谱 、
//仿一品【三角分割】我的未来不是梦-指标使用说明://
//分形三角示顶底,紅三角畫完卖出,藍三角畫完买进;//
//动态分割定位置,上压下撑当参考,认清大势跟热点;//
//大凡顶底画线中,多有未来来表达,趋势修正信号漂;//
//指标工具慎参考,决策还在人大脑, 一品指标一品人;//
仿一品【三角分割】指标公式源码
N:=4;
V1:=ISLASTBAR;
V2:=ref(HIGH,N)=HHV(HIGH,2*N+1);
V3:=FILTER(V2,N);
V4:=BACKSET(V3,N+1);
V5:=FILTER(V4,N);
V6:=V5 OR V1;
V7:=ref(LOW,N)=LLV(LOW,2*N+1);
V8:=FILTER(V7,N);
V9:=BACKSET(V8,N+1);
VA:=FILTER(V9,N);
VB:=VA AND NOT(V5);
VC:=BACKSET(V6,ref(BARSLAST(VB),1)+1);
VD:=VC>ref(VC,1);
VE:=BACKSET(VD,2);
VF:=VE>ref(VE,1);
TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,' ');
V10:=BACKSET(VF AND COUNT(V6,ref(BARSLAST(VB),1)+2)=0,ref(BARSLAST(VB),1)+2);
V11:=V10>ref(V10,1);
V12:=BACKSET(V11 AND COUNT(V6,ref(BARSLAST(VB),1)+2)=0,ref(BARSLAST(VB),1)+2);
V13:=V12>ref(V12,1);
V14:=IF(V6,COUNT(VB,ref(BARSLAST(V6),1)+1),0);
V15:=IF(V14=1 AND V6,BARSLAST(VF),0);
V16:=IF(V6 AND ref(LOW,BARSLAST(VF))>=ref(LOW,BARSLAST(V11)),BARSLAST(V11),BARSLAST(VF));
V17:=IF(V14=2 AND V6,V16,0);
V18:=IF(V14>=3 AND V6,IF(V6 AND ref(LOW,V16)>=ref(LOW,BARSLAST(V13)),BARSLAST(V13),V16),0);
V19:=V15+V17+V18;
V1A:=BACKSET(V6,V19);
V1B:=V1A>ref(V1A,1);
V1C:=BACKSET(V1B,2);
V1D:=V1C>ref(V1C,1);
V1E:=V1D OR V1;
V1F:=BACKSET(V1E,ref(BARSLAST(V6),1)+1);
V20:=V1F>ref(V1F,1);
V21:=BACKSET(V20,2);
V22:=V21>ref(V21,1);
V23:=BACKSET(V22 AND COUNT(V1E,ref(BARSLAST(V6),1)+2)=0,ref(BARSLAST(V6),1)+2);
V24:=V23>ref(V23,1);
V25:=BACKSET(V24 AND COUNT(V1E,ref(BARSLAST(V6),1)+2)=0,ref(BARSLAST(V6),1)+2);
V26:=V25>ref(V25,1);
V27:=IF(V1E,COUNT(V5,ref(BARSLAST(V1E),1)+1),0);
V28:=IF(V27=1 AND V1E,BARSLAST(V22),0);
V29:=IF(V1E AND ref(HIGH,BARSLAST(V22))<=ref(HIGH,BARSLAST(V24)),BARSLAST(V24),BARSLAST(V22));
V2A:=IF(V27=2 AND V1E,V29,0);
V2B:=IF(V27>=3 AND V1E,IF(V1E AND ref(HIGH,V29)<=ref(HIGH,BARSLAST(V26)),BARSLAST(V26),V29),0);
V2C:=V28+V2A+V2B;
V2D:=BACKSET(V1E,V2C);
V2E:=V2D>ref(V2D,1);
V2F:=BACKSET(V2E,2);
V30:=V2F>ref(V2F,1);
DRAWLINE(V1D,LOW,V30,HIGH,0),LINETHICK1;
DRAWLINE(V30,HIGH,V1D,LOW,0),LINETHICK1;
V31:=BACKSET(V1,BARSLAST(V1D)+1);
V32:=V31>ref(V31,1);
V33:=BACKSET(V1,BARSLAST(V30)+1);
V34:=V33>ref(V33,1);
V35:=IF(BARSLAST(V32)<BARSLAST(V34),V32,V34);
V36:=IF(BARSLAST(V32)<BARSLAST(V34),LOW,HIGH);
DRAWLINE(V35,V36,V1,CLOSE,0),LINETHICK1;
V37:=BACKSET(V1,BARSLAST(V1D)+1);
V38:=V37>ref(V37,1);
V39:=BACKSET(V38,ref(BARSLAST(V1D),1)+2);
V3A:=V39>ref(V39,1);
DRAWLINE(V3A,LOW,V38,LOW,1),LINETHICK1,POINTDOT,COLORWHITE;
V3B:=BACKSET(V1,BARSLAST(V30)+1);
V3C:=V3B>ref(V3B,1);
V3D:=BACKSET(V3C,ref(BARSLAST(V30),1)+2);
V3E:=V3D>ref(V3D,1);
DRAWLINE(V3E,HIGH,V3C,HIGH,1),LINETHICK1,POINTDOT,COLORWHITE;
xx1: ref(LOW,BARSLAST(V38)),colorccff99,LINETHICK0;
前二低: ref(LOW,BARSLAST(V3A)),colorMAgenta,LINETHICK0;
yy1: ref(HIGH,BARSLAST(V3C)),colorccff99,LINETHICK0;
前二高: ref(HIGH,BARSLAST(V3E)),colorMAgenta,LINETHICK0;
J:=ref(HIGH,N)=HHV(HIGH,2*N+1);
JA:=FILTER(J,N);
BB:=BACKSET(JA,N+1);
J1:=FILTER(BB,N);
J:=J1 OR ISLASTBAR;
J2:=ref(LOW,N)=LLV(LOW,2*N+1);
JA2:=FILTER(J2,N);
BB2:=BACKSET(JA2,N+1);
J22:=FILTER(BB2,N);
J2:=J22 AND NOT(J1);
EA:=BACKSET(J,ref(BARSLAST(J2),1)+1);
EB:=EA>ref(EA,1); JF:=BACKSET(EB,2);
JJ1:=JF>ref(JF,1);
JF2:=BACKSET(JJ1 AND COUNT(J,ref(BARSLAST(J2),1)+2)=0,ref(BARSLAST(J2),1)+2);
JJ2:=JF2>ref(JF2,1);
JF3:=BACKSET(JJ2 AND COUNT(J,ref(BARSLAST(J2),1)+2)=0,ref(BARSLAST(J2),1)+2);
JJ3:=JF3>ref(JF3,1);
js:=IF(J,COUNT(J2,ref(BARSLAST(J),1)+1),0);
G1:=IF(JS=1 AND J,BARSLAST(JJ1),0);
GA:=IF(J AND ref(LOW,BARSLAST(JJ1))>=ref(LOW,BARSLAST(JJ2)),BARSLAST(JJ2),BARSLAST(JJ1));
G2:=IF(JS=2 AND J,GA,0);
G3:=IF(JS>=3 AND J,IF(J AND ref(LOW,GA)>=ref(LOW,BARSLAST(JJ3)),BARSLAST(JJ3),GA),0);
GG:=G1+G2+G3; //本文来至程序化交易网 cxh99.com//
JA:=BACKSET(J,GG); JB:=JA>ref(JA,1); JJ:=BACKSET(JB,2);
LD:=JJ>ref(JJ,1);
LD1:=LD OR ISLASTBAR;
hEA:=BACKSET(LD1,ref(BARSLAST(J),1)+1);
hEB:=hEA>ref(hEA,1); hJF:=BACKSET(hEB,2);
hJJ1:=hJF>ref(hJF,1);
hJF2:=BACKSET(hJJ1 AND COUNT(LD1,ref(BARSLAST(J),1)+2)=0,ref(BARSLAST(J),1)+2);
hJJ2:=hJF2>ref(hJF2,1);
hJF3:=BACKSET(hJJ2 AND COUNT(LD1,ref(BARSLAST(J),1)+2)=0,ref(BARSLAST(J),1)+2);
hJJ3:=hJF3>ref(hJF3,1);
hjs:=IF(LD1,COUNT(J1,ref(BARSLAST(LD1),1)+1),0);
hG1:=IF(hJS=1 AND LD1,BARSLAST(hJJ1),0);
hGA:=IF(LD1 AND ref(HIGH,BARSLAST(hJJ1))<=ref(HIGH,BARSLAST(hJJ2)),BARSLAST(hJJ2),BARSLAST(hJJ1));
hG2:=IF(hJS=2 AND LD1,hGA,0);
hG3:=IF(hJS>=3 AND LD1,IF(LD1 AND ref(HIGH,hGA)<=ref(HIGH,BARSLAST(hJJ3)),BARSLAST(hJJ3),hGA),0);
hGG:=hG1+hG2+hG3;
hJA:=BACKSET(LD1,hGG);
hJB:=hJA>ref(hJA,1);
hJJ:=BACKSET(hJB,2);
HD:=hJJ>ref(hJJ,1),LINETHICK2;
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=10*(UU>ref(UU,1));
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=20*(UU2>ref(UU2,1));
底1:=ref(LOW,BARSLAST(LD)),COLORred,LINETHICK1;
頂1:=ref(HIGH,BARSLAST(HD)),COLORGreen,LINETHICK1;
STICKLINE(HD ,頂1,底1,0,0),COLORred,LINETHICK1;//??//
DRAWLINE(LD,LOW,HD,HIGH,0),COLORred,LINETHICK1;//斜//
DRAWLINE(LD,LOW,HD,底1,0),COLORred,LINETHICK1;//?//
STICKLINE(LD,頂1,底1,0,0),COLORWHITE,LINETHICK1;//??//
DRAWLINE(HD,HIGH,LD,LOW,0),COLORWHITE,LINETHICK1;//斜//
DRAWLINE(HD,HIGH,LD,頂1,0),COLORWHITE,LINETHICK1;//?//
底:ref(LOW,BARSLAST(VV)),COLORred,LINETHICK0;
頂:ref(HIGH,BARSLAST(VV2)),COLORGreen,LINETHICK0;
STICKLINE(VV,頂,底,0,0),Colorff6633,LINETHICK1;//??//
DRAWLINE(VV2,HIGH,VV,LOW,0),Colorff6633,LINETHICK1;//斜//
DRAWLINE(VV2,HIGH,VV,頂,0),Colorff6633,LINETHICK1;//?//
//DRAWLINE(c>0,H,VV,L,0),Colorcyan,LINETHICK2;////斜//
//DRAWLINE(c>1,H,VV,頂,0),Colorcyan,LINETHICK2;////?//
STICKLINE(VV2 ,頂,底,0,0),Colorred,LINETHICK1;//??//
DRAWLINE(VV,LOW,VV2,HIGH,0),Colorred,LINETHICK1;//斜//
DRAWLINE(VV,LOW,VV2,底,0),Colorred,LINETHICK1;//?//
a0:=BARSCOUNT(c);
a1:=SYSPARAM(1);
a2:=SYSPARAM(2);
a3:=SYSPARAM(3);
a4:=SYSPARAM(4);
a5:=SYSPARAM(5);
nn0:=a3-a2;nn:=a0-a2;
WXS:=ABS(LOG(MINDIFF)),LINETHICK;
hh1:=(a4-a5)/8;
M:=IF(A1=A3,60,A3-A1);
p:=a3;np:=IF(p>a1,p-a1,p-a2);
ws:=BARPOS;
ws1:=IF(ws<m,ws,m);
FGX:=BARPOS=a3;FGS:=BARPOS=a1;
h1:=HHV(HIGH,ws1);l1:=LLV(LOW,ws1);
hp:=h1[p];
lp:=l1[p];
hlpx:=(hp-lp);
分割上限:=hp,COLORCC8C33,LINETHICK;
drawsl(FGX,lp,0,np-1,1),colorcc0044;
DRAWNUMBER(FGS,lp,lp,WXS),SHIFT5,ALIGN2,color6633cc;
drawsl(FGX,lp+hlpx*0.191,0,np-1,1),POINTDOT,coloryelLOW;
DRAWNUMBER(FGS,lp+hlpx*0.191,lp+hlpx*0.191,WXS),SHIFT5,ALIGN2,color6688cc;
drawsl(FGX,lp+hlpx*0.382,0,np-1,1),POINTDOT,coloryelLOW;
DRAWNUMBER(FGS,lp+hlpx*0.382,lp+hlpx*0.382,WXS),SHIFT5,ALIGN2,color6677cc;
drawsl(FGX,lp+hlpx*0.500,0,np-1,1),POINTDOT,coloryelLOW; //内容来至程序化交易网 CXH99.COM//
DRAWNUMBER(FGS,lp+hlpx*0.500,lp+hlpx*0.500,WXS),SHIFT5,ALIGN2,color6655cc;
drawsl(FGX,lp+hlpx*0.618,0,np-1,1),POINTDOT,coloryelLOW;
DRAWNUMBER(FGS,lp+hlpx*0.618,lp+hlpx*0.618,WXS),SHIFT5,ALIGN2,color6633cc;
drawsl(FGX,lp+hlpx*0.809,0,np-1,1),POINTDOT,coloryelLOW;
DRAWNUMBER(FGS,lp+hlpx*0.809,lp+hlpx*0.809,WXS),SHIFT5,ALIGN2,color6611cc;
drawsl(FGX,hp,0,np-1,1),colorcc0044;
J0:=(C*2+H+L)/4;
K0:=(EMA(J0,13) - EMA(J0,21))*180;
D0:=EMA(K0,2);
kk0:=K0-D0;
dd0:=-1*(K0-D0);
jj0:CROSS(kk0,dd0),LINETHICK0;
STICKLINE(jj0,O,C,8,0),COLORyelLOW;
STICKLINE(jj0,O,H,0,0),COLORyelLOW;
STICKLINE(jj0,L,C,0,0),COLORyelLOW;
QQ0:=C/ref(C,1)>1.06 AND C=H AND V/ref(V,1)<1;
STICKLINE(QQ0,O,C,8,0),COLORGREEN;
STICKLINE(QQ0,O,H,0,0),COLORGREEN;
STICKLINE(QQ0,L,C,0,0),COLORGREEN;
DRAWTEXTEX(c,1,220,960,'====含未来函数BACKSET(向前赋值)====理想小侠迷仿制===='),Color00FF00;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容