把这个能量公式改成飞狐的
把这个能量公式改成飞狐的
【股票资源馆】策略投资破解,图片免费下载,理想股票技术论坛,财经股票论坛,炒股论坛社区,股票软件,股票公式,源码交流,指标公式,炒股书籍,分析家公式网,股旁网,股票配资。
编写条件:
飞狐源码了么 INPUT:N(3,1,100); DRAWTEXT(l>REF(H,1),REF(H,1),'←<'),COLORRED; DRAWTEXT(h
ref(xtqk,1); xtqkwz1:=BARSLAST(xtqkdw); xtqkwz2:=xtqkwz1+1; xtqkg1:=ref(h,xtqkwz1); xtqkg2:=ref(l,xtqkwz2); A1:=ref(h,N)=hhv(h,2*N+1); B1:=filter(A1,N); C1:=backset(B1,N+1); D1:=filter(C1,n); A2:=ref(l,N)=llv(l,2*N+1); B2:=filter(A2,N); C2:=backset(B2,N+1); D2:=filter(C2,N); E1:=(ref(llv(l,2*N),1)+ref(hhv(h,2*N),1))/2; E2:=(h+l)/2; H1:=(D1 AND not(D2 AND E1>=E2)) OR barstatus=2 OR barscount(c)=1; L1:=(D2 AND not(D1 AND E1
=E2); X1:=ref(barslast(H1),1)+1; F1:=backset(H1 AND count(L1,X1)>0,llvbars(if(L1,l,10000),X1)); G1:=F1>ref(F1,1); I1:=backset(G1,2); LD:=I1>ref(I1,1); L2:=LD OR barstatus=2 OR barscount(c)=1; X2:=ref(barslast(L2),1)+1; F2:=backset(L2 AND count(H2,X2)>0,hhvbars(if(H2,h,0),X2)); G2:=F2>ref(F2,1); I2:=backset(G2,2); HD:=I2>ref(I2,1); T1:=backset(barstatus=2,barslast(LD)+1); U1:=T1>ref(T1,1); T2:=backset(U1,ref(barslast(LD),1)+2); U2:=T2>ref(T2,1); T3:=backset(U2,ref(barslast(LD),1)+2); U3:=T3>ref(T3,1); T4:=backset(U3,ref(barslast(LD),1)+2); U4:=T4>ref(T4,1); T5:=backset(U4,ref(barslast(LD),1)+2); U5:=T5>ref(T5,1); T6:=backset(U5,ref(barslast(LD),1)+2); U6:=T6>ref(T6,1); T7:=backset(U6,ref(barslast(LD),1)+2); U7:=T7>ref(T7,1); T8:=backset(U7,ref(barslast(LD),1)+2); U8:=T8>ref(T8,1); T9:=backset(U8,ref(barslast(LD),1)+2); U9:=T9>ref(T9,1); T10:=backset(U9,ref(barslast(LD),1)+2); U10:=T10>ref(T10,1); T11:=backset(U10,ref(barslast(LD),1)+2); U11:=T11>ref(T11,1); T12:=backset(U11,ref(barslast(LD),1)+2); U12:=T12>ref(T12,1); T13:=backset(U12,ref(barslast(LD),1)+2); U13:=T13>ref(T13,1); T14:=backset(U13,ref(barslast(LD),1)+2); U14:=T14>ref(T14,1); T15:=backset(U14,ref(barslast(LD),1)+2); U15:=T15>ref(T15,1); R1:=backset(barstatus=2,barslast(HD)+1); S1:=R1>ref(R1,1); R2:=backset(S1,ref(barslast(HD),1)+2); S2:=R2>ref(R2,1); R3:=backset(S2,ref(barslast(HD),1)+2); S3:=R3>ref(R3,1); R4:=backset(S3,ref(barslast(HD),1)+2); S4:=R4>ref(R4,1); R5:=backset(S4,ref(barslast(HD),1)+2); S5:=R5>ref(R5,1); R6:=backset(S5,ref(barslast(HD),1)+2); S6:=R6>ref(R6,1); R7:=backset(S6,ref(barslast(HD),1)+2); S7:=R7>ref(R7,1); R8:=backset(S7,ref(barslast(HD),1)+2); S8:=R8>ref(R8,1); R9:=backset(S8,ref(barslast(HD),1)+2); S9:=R9>ref(R9,1); R10:=backset(S9,ref(barslast(HD),1)+2); S10:=R10>ref(R10,1); R11:=backset(S10,ref(barslast(HD),1)+2); S11:=R11>ref(R11,1); R12:=backset(S11,ref(barslast(HD),1)+2); S12:=R12>ref(R12,1); R13:=backset(S12,ref(barslast(HD),1)+2); S13:=R13>ref(R13,1); R14:=backset(S13,ref(barslast(HD),1)+2); S14:=R14>ref(R14,1); R15:=backset(S14,ref(barslast(HD),1)+2); S15:=R15>ref(R15,1); 前一低:=REF(L,BARSLAST(u1)); 前二低:=REF(L,BARSLAST(u2)); 前三低:=REF(L,BARSLAST(u3)); 前四低:=REF(L,BARSLAST(u4)); 前五低:=REF(L,BARSLAST(u5)); 前六低:=REF(L,BARSLAST(u6)); 前七低:=REF(L,BARSLAST(u7)); 前八低:=REF(L,BARSLAST(u8)); 前九低:=REF(L,BARSLAST(u9)); 前十低:=REF(L,BARSLAST(u10)); 前十一低:=REF(L,BARSLAST(u11)); 前十二低:=REF(L,BARSLAST(u12)); 前十三低:=REF(L,BARSLAST(u13)); 前十四低:=REF(L,BARSLAST(u14)); 前十五低:=REF(L,BARSLAST(u15)); 前一高:=REF(H,BARSLAST(s1)); 前二高:=REF(H,BARSLAST(s2)); 前三高:=REF(H,BARSLAST(s3)); 前四高:=REF(H,BARSLAST(s4)); 前五高:=REF(H,BARSLAST(s5)); 前六高:=REF(H,BARSLAST(s6)); 前七高:=REF(H,BARSLAST(s7)); 前八高:=REF(H,BARSLAST(s8)); 前九高:=REF(H,BARSLAST(s9)); 前十高:=REF(H,BARSLAST(s10)); 前十一高:=REF(H,BARSLAST(s11)); 前十二高:=REF(H,BARSLAST(s12)); 前十三高:=REF(H,BARSLAST(s13)); 前十四高:=REF(H,BARSLAST(s14)); 前十五高:=REF(H,BARSLAST(s15)); qdwz1:=BARSLAST(u1); qdwz2:=BARSLAST(u2); qdwz3:=BARSLAST(u3); qdwz4:=BARSLAST(u4); qdwz5:=BARSLAST(u5); qdwz6:=BARSLAST(u6); qdwz7:=BARSLAST(u7); qdwz8:=BARSLAST(u8); qdwz9:=BARSLAST(u9); qdwz10:=BARSLAST(u10); qdwz11:=BARSLAST(u11); qdwz12:=BARSLAST(u12); qdwz13:=BARSLAST(u13); qdwz14:=BARSLAST(u14); qdwz15:=BARSLAST(u15); qgwz1:=BARSLAST(s1); qgwz2:=BARSLAST(s2); qgwz3:=BARSLAST(s3); qgwz4:=BARSLAST(s4); qgwz5:=BARSLAST(s5); qgwz6:=BARSLAST(s6); qgwz7:=BARSLAST(s7); qgwz8:=BARSLAST(s8); qgwz9:=BARSLAST(s9); qgwz10:=BARSLAST(s10); qgwz11:=BARSLAST(s11); qgwz12:=BARSLAST(s12); qgwz13:=BARSLAST(s13); qgwz14:=BARSLAST(s14); qgwz15:=BARSLAST(s15); tj1:=if(qdwz1
qgwz1; if TJ_1A02_XT1[SA1] then begin A_1A02_XT1:=((前二高-前二低)*(qdwz2-xtqkwz1))/(xtqkg1-前二低)+0.5; B_1A02_XT1:=(xtqkg1-前二低)/(qdwz2-xtqkwz1); C_1A02_XT1:=A_1A02_XT1-(qdwz2-qgwz2); DRAWSL(u2,l,B_1A02_XT1[datacount],A_1A02_XT1[datacount],0),Coloryellow; DRAWSL(s2,h,0,C_1A02_XT1[datacount],0),coloryellow; A_1A02_XT2:=((前二高-前二低)*(qdwz2-xtqkwz2))/(xtqkg2-前二低)+0.5; B_1A02_XT2:=(xtqkg2-前二低)/(qdwz2-xtqkwz2); C_1A02_XT2:=A_1A02_XT2-(qdwz2-qgwz2); DRAWSL(u2,l,B_1A02_XT2[datacount],A_1A02_XT2[datacount],0),Coloryellow; end; TJ_1A03_XT1:=xtqkwz1
qgwz2; if TJ_1A03_XT1[SA1] then begin A_1A03_XT1:=((前三高-前三低)*(qdwz3-xtqkwz1))/(xtqkg1-前三低)+0.5; B_1A03_XT1:=(xtqkg1-前三低)/(qdwz3-xtqkwz1); C_1A03_XT1:=A_1A03_XT1-(qdwz3-qgwz3); DRAWSL(u3,l,B_1A03_XT1[datacount],A_1A03_XT1[datacount],0),Coloryellow; DRAWSL(s3,h,0,C_1A03_XT1[datacount],0),coloryellow; A_1A03_XT2:=((前三高-前三低)*(qdwz3-xtqkwz2))/(xtqkg2-前三低)+0.5; B_1A03_XT2:=(xtqkg2-前三低)/(qdwz3-xtqkwz2); C_1A03_XT2:=A_1A03_XT2-(qdwz3-qgwz3); DRAWSL(u3,l,B_1A03_XT2[datacount],A_1A03_XT2[datacount],0),Coloryellow; end; TJ_1A04_XT1:=xtqkwz1
qgwz3; if TJ_1A04_XT1[SA1] then begin A_1A04_XT1:=((前四高-前四低)*(qdwz4-xtqkwz1))/(xtqkg1-前四低)+0.5; B_1A04_XT1:=(xtqkg1-前四低)/(qdwz4-xtqkwz1); C_1A04_XT1:=A_1A04_XT1-(qdwz4-qgwz4); DRAWSL(u4,l,B_1A04_XT1[datacount],A_1A04_XT1[datacount],0),Coloryellow; DRAWSL(s4,h,0,C_1A04_XT1[datacount],0),coloryellow; A_1A04_XT2:=((前四高-前四低)*(qdwz4-xtqkwz2))/(xtqkg2-前四低)+0.5; B_1A04_XT2:=(xtqkg2-前四低)/(qdwz4-xtqkwz2); C_1A04_XT2:=A_1A04_XT2-(qdwz4-qgwz4); DRAWSL(u4,l,B_1A04_XT2[datacount],A_1A04_XT2[datacount],0),Coloryellow; end; TJ_1A01:=前一高
<前二高; if tj_1a01[sa1] then begin a_1a01:="((前二高-前一低)*(qgwz2-qgwz1))/(前二高-前一高)-(qgwz2-qdwz1)+0.5;" b_1a01:="-(前二高-前一高)/(qgwz2-qgwz1);" c_1a01:="A_1A01+qgwz2-qdwz1;" drawsl(s2,h,b_1a01[datacount],c_1a01[datacount],0),colorred,linedot; drawsl(u1,l,0,a_1a01[datacount],0),colorred,linedot; end; tj_1a02:="前二高<前三高;" tj_1a02[sa1] a_1a02:="((前三高-前二低)*(qgwz3-qgwz2))/(前三高-前二高)-(qgwz3-qdwz2)+0.5;" b_1a02:="-(前三高-前二高)/(qgwz3-qgwz2);" c_1a02:="A_1A02+qgwz3-qdwz2;" drawsl(s3,h,b_1a02[datacount],c_1a02[datacount],0),colorff0000,linedot; drawsl(u2,l,0,a_1a02[datacount],0),colorff0000,linedot; tj_1a03:="前三高<前四高;" tj_1a03[sa1] a_1a03:="((前四高-前三低)*(qgwz4-qgwz3))/(前四高-前三高)-(qgwz4-qdwz3)+0.5;" b_1a03:="-(前四高-前三高)/(qgwz4-qgwz3);" c_1a03:="A_1A03+qgwz4-qdwz3;" drawsl(s4,h,b_1a03[datacount],c_1a03[datacount],0),color000099,linedot; drawsl(u3,l,0,a_1a03[datacount],0),color000099,linedot; tj_1a04:="前四高<前五高;" tj_1a04[sa1] a_1a04:="((前五高-前四低)*(qgwz5-qgwz4))/(前五高-前四高)-(qgwz5-qdwz4)+0.5;" b_1a04:="-(前五高-前四高)/(qgwz5-qgwz4);" c_1a04:="A_1A04+qgwz5-qdwz4;" drawsl(s5,h,b_1a04[datacount],c_1a04[datacount],0),colorff0099,linedot; drawsl(u4,l,0,a_1a04[datacount],0),colorff0099,linedot; tj_1a05:="前五高<前六高;" tj_1a05[sa1] a_1a05:="((前六高-前五低)*(qgwz6-qgwz5))/(前六高-前五高)-(qgwz6-qdwz5)+0.5;" b_1a05:="-(前六高-前五高)/(qgwz6-qgwz5);" c_1a05:="A_1A05+qgwz6-qdwz5;" drawsl(s6,h,b_1a05[datacount],c_1a05[datacount],0),color006600,linedot; drawsl(u5,l,0,a_1a05[datacount],0),color006600,linedot; tj_1a06:="前六高<前七高;" tj_1a06[sa1] a_1a06:="((前七高-前六低)*(qgwz7-qgwz6))/(前七高-前六高)-(qgwz7-qdwz6)+0.5;" b_1a06:="-(前七高-前六高)/(qgwz7-qgwz6);" c_1a06:="A_1A06+qgwz7-qdwz6;" drawsl(s7,h,b_1a06[datacount],c_1a06[datacount],0),color006699,linedot; drawsl(u6,l,0,a_1a06[datacount],0),color006699,linedot; tj_1a07:="前七高<前八高;" tj_1a07[sa1] a_1a07:="((前八高-前七低)*(qgwz8-qgwz7))/(前八高-前七高)-(qgwz8-qdwz7)+0.5;" b_1a07:="-(前八高-前七高)/(qgwz8-qgwz7);" c_1a07:="A_1A07+qgwz8-qdwz7;" drawsl(s8,h,b_1a07[datacount],c_1a07[datacount],0),color00ff00,linedot; drawsl(u7,l,0,a_1a07[datacount],0),color00ff00,linedot; tj_1a08:="前八高<前九高;" tj_1a08[sa1] a_1a08:="((前九高-前八低)*(qgwz9-qgwz8))/(前九高-前八高)-(qgwz9-qdwz8)+0.5;" b_1a08:="-(前九高-前八高)/(qgwz9-qgwz8);" c_1a08:="A_1A08+qgwz9-qdwz8;" drawsl(s9,h,b_1a08[datacount],c_1a08[datacount],0),color00cc99,linedot; drawsl(u8,l,0,a_1a08[datacount],0),color00cc99,linedot; tj_1a09:="前九高<前十高;" tj_1a09[sa1] a_1a09:="((前十高-前九低)*(qgwz10-qgwz9))/(前十高-前九高)-(qgwz10-qdwz9)+0.5;" b_1a09:="-(前十高-前九高)/(qgwz10-qgwz9);" c_1a09:="A_1A09+qgwz10-qdwz9;" drawsl(s10,h,b_1a09[datacount],c_1a09[datacount],0),color0000ff,linedot; drawsl(u9,l,0,a_1a09[datacount],0),color0000ff,linedot; tj_1a10:="前十高<前十一高;" tj_1a10[sa1] a_1a10:="((前十一高-前十低)*(qgwz11-qgwz10))/(前十一高-前十高)-(qgwz11-qdwz10)+0.5;" b_1a10:="-(前十一高-前十高)/(qgwz11-qgwz10);" c_1a10:="A_1A10+qgwz11-qdwz10;" drawsl(s11,h,b_1a10[datacount],c_1a10[datacount],0),color669900,linedot; drawsl(u10,l,0,a_1a10[datacount],0),color669900,linedot; tj_1a11:="前十一高<前十二高;" tj_1a11[sa1] a_1a11:="((前十二高-前十一低)*(qgwz12-qgwz11))/(前十二高-前十一高)-(qgwz12-qdwz11)+0.5;" b_1a11:="-(前十二高-前十一高)/(qgwz12-qgwz11);" c_1a11:="A_1A11+qgwz12-qdwz11;" drawsl(s12,h,b_1a11[datacount],c_1a11[datacount],0),colorffffff,linedot; drawsl(u11,l,0,a_1a11[datacount],0),colorffffff,linedot; tj_1a12:="前十二高<前十三高;" tj_1a12[sa1] a_1a12:="((前十三高-前十二低)*(qgwz13-qgwz12))/(前十三高-前十二高)-(qgwz13-qdwz12)+0.5;" b_1a12:="-(前十三高-前十二高)/(qgwz13-qgwz12);" c_1a12:="A_1A12+qgwz13-qdwz12;" drawsl(s13,h,b_1a12[datacount],c_1a12[datacount],0),colorff33cc,linedot; drawsl(u12,l,0,a_1a12[datacount],0),colorff33cc,linedot; tj_1a13:="前十三高<前十四高;" tj_1a13[sa1] a_1a13:="((前十四高-前十三低)*(qgwz14-qgwz13))/(前十四高-前十三高)-(qgwz14-qdwz13)+0.5;" b_1a13:="-(前十四高-前十三高)/(qgwz14-qgwz13);" c_1a13:="A_1A13+qgwz14-qdwz13;" drawsl(s14,h,b_1a13[datacount],c_1a13[datacount],0),color3366ff,linedot; drawsl(u13,l,0,a_1a13[datacount],0),color3366ff,linedot; tj_1b01:="前一低">
前二低; if TJ_1B01[SA1] then begin A_1B01:=((前二高-前二低)*(qdwz2-qdwz1))/(前一低-前二低)+(qgwz2-qdwz2)+0.5; B_1B01:=(前二低-前一低)/(qdwz1-qdwz2); C_1B01:=A_1B01+qdwz2-qgwz2; DRAWSL(U2,l,B_1B01[datacount],C_1B01[datacount],0),Colorgreen,LINEDOT; DRAWSL(s2,h,0,A_1B01[datacount],0),colorgreen,LINEDOT; end; TJ_1B02:=前二低>前三低; if TJ_1B02[SA1] then begin A_1B02:=((前三高-前三低)*(qdwz3-qdwz2))/(前二低-前三低)+(qgwz3-qdwz3)+0.5; B_1B02:=(前三低-前二低)/(qdwz2-qdwz3); C_1B02:=A_1B02+qdwz3-qgwz3; DRAWSL(U3,l,B_1B02[datacount],C_1B02[datacount],0),ColorFFFF66,LINEDOT; DRAWSL(s3,h,0,A_1B02[datacount],0),ColorFFFF66,LINEDOT; end; TJ_1B03:=前三低>前四低; if TJ_1B03[SA1] then begin A_1B03:=((前四高-前四低)*(qdwz4-qdwz3))/(前三低-前四低)+(qgwz4-qdwz4)+0.5; B_1B03:=(前四低-前三低)/(qdwz3-qdwz4); C_1B03:=A_1B03+qdwz4-qgwz4; DRAWSL(U4,l,B_1B03[datacount],C_1B03[datacount],0),ColorEEEEEE,LINEDOT; DRAWSL(s4,h,0,A_1B03[datacount],0),ColorEEEEEE,LINEDOT; end; TJ_1B04:=前四低>前五低; if TJ_1B04[SA1] then begin A_1B04:=((前五高-前五低)*(qdwz5-qdwz4))/(前四低-前五低)+(qgwz5-qdwz5)+0.5; B_1B04:=(前五低-前四低)/(qdwz4-qdwz5); C_1B04:=A_1B04+qdwz5-qgwz5; DRAWSL(U5,l,B_1B04[datacount],C_1B04[datacount],0),ColorFF9933,LINEDOT; DRAWSL(s5,h,0,A_1B04[datacount],0),ColorFF9933,LINEDOT; end; TJ_1B05:=前五低>前六低; if TJ_1B05[SA1] then begin A_1B05:=((前六高-前六低)*(qdwz6-qdwz5))/(前五低-前六低)+(qgwz6-qdwz6)+0.5; B_1B05:=(前六低-前五低)/(qdwz5-qdwz6); C_1B05:=A_1B05+qdwz6-qgwz6; DRAWSL(U6,l,B_1B05[datacount],C_1B05[datacount],0),Color0033CC,LINEDOT; DRAWSL(s6,h,0,A_1B05[datacount],0),Color0033CC,LINEDOT; end; TJ_1B06:=前六低>前七低; if TJ_1B06[SA1] then begin A_1B06:=((前七高-前七低)*(qdwz7-qdwz6))/(前六低-前七低)+(qgwz7-qdwz7)+0.5; B_1B06:=(前七低-前六低)/(qdwz6-qdwz7); C_1B06:=A_1B06+qdwz7-qgwz7; DRAWSL(U7,l,B_1B06[datacount],C_1B06[datacount],0),ColorCCFFFF,LINEDOT; DRAWSL(s7,h,0,A_1B06[datacount],0),ColorCCFFFF,LINEDOT; end; TJ_1B07:=前七低>前八低; if TJ_1B07[SA1] then begin A_1B07:=((前八高-前八低)*(qdwz8-qdwz7))/(前七低-前八低)+(qgwz8-qdwz8)+0.5; B_1B07:=(前八低-前七低)/(qdwz7-qdwz8); C_1B07:=A_1B07+qdwz8-qgwz8; DRAWSL(U8,l,B_1B07[datacount],C_1B07[datacount],0),Color00FFCC,LINEDOT; DRAWSL(s8,h,0,A_1B07[datacount],0),Color00FFCC,LINEDOT; end; TJ_1B08:=前八低>前九低; if TJ_1B08[SA1] then begin A_1B08:=((前九高-前九低)*(qdwz9-qdwz8))/(前八低-前九低)+(qgwz9-qdwz9)+0.5; B_1B08:=(前九低-前八低)/(qdwz8-qdwz9); C_1B08:=A_1B08+qdwz9-qgwz9; DRAWSL(U9,l,B_1B08[datacount],C_1B08[datacount],0),ColorFF0033,LINEDOT; DRAWSL(s9,h,0,A_1B08[datacount],0),ColorFF0033,LINEDOT; end; TJ_1B09:=前九低>前十低; if TJ_1B09[SA1] then begin A_1B09:=((前十高-前十低)*(qdwz10-qdwz9))/(前九低-前十低)+(qgwz10-qdwz10)+0.5; B_1B09:=(前十低-前九低)/(qdwz9-qdwz10); C_1B09:=A_1B09+qdwz10-qgwz10; DRAWSL(U10,l,B_1B09[datacount],C_1B09[datacount],0),Color3366FF,LINEDOT; DRAWSL(s10,h,0,A_1B09[datacount],0),Color3366FF,LINEDOT; end; TJ_1B10:=前十低>前十一低; if TJ_1B10[SA1] then begin A_1B10:=((前十一高-前十一低)*(qdwz11-qdwz10))/(前十低-前十一低)+(qgwz11-qdwz11)+0.5; B_1B10:=(前十一低-前十低)/(qdwz10-qdwz11); C_1B10:=A_1B10+qdwz11-qgwz11; DRAWSL(U11,l,B_1B10[datacount],C_1B10[datacount],0),ColorCC33CC,LINEDOT; DRAWSL(s11,h,0,A_1B10[datacount],0),ColorCC33CC,LINEDOT; end; TJ_1B11:=前十一低>前十二低; if TJ_1B11[SA1] then begin A_1B11:=((前十二高-前十二低)*(qdwz12-qdwz11))/(前十一低-前十二低)+(qgwz12-qdwz12)+0.5; B_1B11:=(前十二低-前十一低)/(qdwz11-qdwz12); C_1B11:=A_1B11+qdwz12-qgwz12; DRAWSL(U12,l,B_1B11[datacount],C_1B11[datacount],0),ColorFF9933,LINEDOT; DRAWSL(s12,h,0,A_1B11[datacount],0),ColorFF9933,LINEDOT; end; TJ_1B12:=前十二低>前十三低; if TJ_1B12[SA1] then begin A_1B12:=((前十三高-前十三低)*(qdwz13-qdwz12))/(前十二低-前十三低)+(qgwz13-qdwz13)+0.5; B_1B12:=(前十三低-前十二低)/(qdwz12-qdwz13); C_1B12:=A_1B12+qdwz13-qgwz13; DRAWSL(U13,l,B_1B12[datacount],C_1B12[datacount],0),Coloryellow,LINEDOT; DRAWSL(s13,h,0,A_1B12[datacount],0),Coloryellow,LINEDOT; end; TJ_1B13:=前十三低>前十四低; if TJ_1B13[SA1] then begin A_1B13:=((前十四高-前十四低)*(qdwz14-qdwz13))/(前十三低-前十四低)+(qgwz14-qdwz14)+0.5; B_1B13:=(前十四低-前十三低)/(qdwz13-qdwz14); C_1B13:=A_1B13+qdwz14-qgwz14; DRAWSL(U14,l,B_1B13[datacount],C_1B13[datacount],0),ColorFFCC00,LINEDOT; DRAWSL(s14,h,0,A_1B13[datacount],0),ColorFFCC00,LINEDOT; end; end; if TJ1[SA1]=1 then begin TJ_2A01:=前一低>前二低; if TJ_2A01[SA1] then begin A_2A01:=((前一高-前二低)*(qdwz2-qdwz1))/(前一低-前二低)+(qgwz1-qdwz2)+0.5; B_2A01:=(前一低-前二低)/(qdwz2-qdwz1); C_2A01:=A_2A01+qdwz2-qgwz1; DRAWSL(U2,l,B_2A01[datacount],C_2A01[datacount],0),Colorgreen,LINEDOT; DRAWSL(s1,h,0,A_2A01[datacount],0),colorgreen,LINEDOT; end; TJ_2A02:=前二低>前三低; if TJ_2A02[SA1] then begin A_2A02:=((前二高-前三低)*(qdwz3-qdwz2))/(前二低-前三低)+(qgwz2-qdwz3)+0.5; B_2A02:=(前二低-前三低)/(qdwz3-qdwz2); C_2A02:=A_2A02+qdwz3-qgwz2; DRAWSL(U3,l,B_2A02[datacount],C_2A02[datacount],0),ColorFFFF66,LINEDOT; DRAWSL(s2,h,0,A_2A02[datacount],0),ColorFFFF66,LINEDOT; end; TJ_2A03:=前三低>前四低; if TJ_2A03[SA1] then begin A_2A03:=((前三高-前四低)*(qdwz4-qdwz3))/(前三低-前四低)+(qgwz3-qdwz4)+0.5; B_2A03:=(前三低-前四低)/(qdwz4-qdwz3); C_2A03:=A_2A03+qdwz4-qgwz3; DRAWSL(U4,l,B_2A03[datacount],C_2A03[datacount],0),ColorFFFF00,LINEDOT; DRAWSL(s3,h,0,A_2A03[datacount],0),ColorFFFF00,LINEDOT; end; TJ_2A04:=前四低>前五低; if TJ_2A04[SA1] then begin A_2A04:=((前四高-前五低)*(qdwz5-qdwz4))/(前四低-前五低)+(qgwz4-qdwz5)+0.5; B_2A04:=(前四低-前五低)/(qdwz5-qdwz4); C_2A04:=A_2A04+qdwz5-qgwz4; DRAWSL(U5,l,B_2A04[datacount],C_2A04[datacount],0),ColorDDDDDD,LINEDOT; DRAWSL(s4,h,0,A_2A04[datacount],0),ColorDDDDDD,LINEDOT; end; TJ_2A05:=前五低>前六低; if TJ_2A05[SA1] then begin A_2A05:=((前五高-前六低)*(qdwz6-qdwz5))/(前五低-前六低)+(qgwz5-qdwz6)+0.5; B_2A05:=(前五低-前六低)/(qdwz6-qdwz5); C_2A05:=A_2A05+qdwz6-qgwz5; DRAWSL(U6,l,B_2A05[datacount],C_2A05[datacount],0),Color00CC33,LINEDOT; DRAWSL(s5,h,0,A_2A05[datacount],0),Color00CC33,LINEDOT; end; TJ_2A06:=前六低>前七低; if TJ_2A06[SA1] then begin A_2A06:=((前六高-前七低)*(qdwz7-qdwz6))/(前六低-前七低)+(qgwz6-qdwz7)+0.5; B_2A06:=(前六低-前七低)/(qdwz7-qdwz6); C_2A06:=A_2A06+qdwz7-qgwz6; DRAWSL(U7,l,B_2A06[datacount],C_2A06[datacount],0),Color009900,LINEDOT; DRAWSL(s6,h,0,A_2A06[datacount],0),Color009900,LINEDOT; end; TJ_2A07:=前七低>前八低; if TJ_2A07[SA1] then begin A_2A07:=((前七高-前八低)*(qdwz8-qdwz7))/(前七低-前八低)+(qgwz7-qdwz8)+0.5; B_2A07:=(前七低-前八低)/(qdwz8-qdwz7); C_2A07:=A_2A07+qdwz8-qgwz7; DRAWSL(U8,l,B_2A07[datacount],C_2A07[datacount],0),Color669999,LINEDOT; DRAWSL(s7,h,0,A_2A07[datacount],0),Color669999,LINEDOT; end; TJ_2A08:=前八低>前九低; if TJ_2A08[SA1] then begin A_2A08:=((前八高-前九低)*(qdwz9-qdwz8))/(前八低-前九低)+(qgwz8-qdwz9)+0.5; B_2A08:=(前八低-前九低)/(qdwz9-qdwz8); C_2A08:=A_2A08+qdwz9-qgwz8; DRAWSL(U9,l,B_2A08[datacount],C_2A08[datacount],0),ColorDDDDDD,LINEDOT; DRAWSL(s8,h,0,A_2A08[datacount],0),ColorDDDDDD,LINEDOT; end; TJ_2A09:=前九低>前十低; if TJ_2A09[SA1] then begin A_2A09:=((前九高-前十低)*(qdwz10-qdwz9))/(前九低-前十低)+(qgwz9-qdwz10)+0.5; B_2A09:=(前九低-前十低)/(qdwz10-qdwz9); C_2A09:=A_2A09+qdwz10-qgwz9; DRAWSL(U10,l,B_2A09[datacount],C_2A09[datacount],0),Color009999,LINEDOT; DRAWSL(s9,h,0,A_2A09[datacount],0),Color009999,LINEDOT; end; TJ_2A10:=前十低>前十一低; if TJ_2A10[SA1] then begin A_2A10:=((前十高-前十一低)*(qdwz11-qdwz10))/(前十低-前十一低)+(qgwz10-qdwz11)+0.5; B_2A10:=(前十低-前十一低)/(qdwz11-qdwz10); C_2A10:=A_2A10+qdwz11-qgwz10; DRAWSL(U11,l,B_2A10[datacount],C_2A10[datacount],0),Color0000FF,LINEDOT; DRAWSL(s10,h,0,A_2A10[datacount],0),Color0000FF,LINEDOT; end; TJ_2A11:=前十一低>前十二低; if TJ_2A11[SA1] then begin A_2A11:=((前十一高-前十二低)*(qdwz12-qdwz11))/(前十一低-前十二低)+(qgwz11-qdwz12)+0.5; B_2A11:=(前十一低-前十二低)/(qdwz12-qdwz11); C_2A11:=A_2A11+qdwz12-qgwz11; DRAWSL(U12,l,B_2A11[datacount],C_2A11[datacount],0),Color00FF00,LINEDOT; DRAWSL(s11,h,0,A_2A11[datacount],0),Color00FF00,LINEDOT; end; TJ_2A12:=前十二低>前十三低; if TJ_2A12[SA1] then begin A_2A12:=((前十二高-前十三低)*(qdwz13-qdwz12))/(前十二低-前十三低)+(qgwz12-qdwz13)+0.5; B_2A12:=(前十二低-前十三低)/(qdwz13-qdwz12); C_2A12:=A_2A12+qdwz13-qgwz12; DRAWSL(U13,l,B_2A12[datacount],C_2A12[datacount],0),ColorFF0000,LINEDOT; DRAWSL(s12,h,0,A_2A12[datacount],0),ColorFF0000,LINEDOT; end; TJ_2A13:=前十三低>前十四低; if TJ_2A13[SA1] then begin A_2A13:=((前十三高-前十四低)*(qdwz14-qdwz13))/(前十三低-前十四低)+(qgwz13-qdwz14)+0.5; B_2A13:=(前十三低-前十四低)/(qdwz14-qdwz13); C_2A13:=A_2A13+qdwz14-qgwz13; DRAWSL(U14,l,B_2A13[datacount],C_2A13[datacount],0),Color00FFFF,LINEDOT; DRAWSL(s13,h,0,A_2A13[datacount],0),Color00FFFF,LINEDOT; end; TJ_2B01:=前一高
<前二高; if tj_2b01[sa1] then begin a_2b01:="((前二高-前二低)*(qgwz2-qgwz1))/(前二高-前一高)+(qdwz2-qgwz2)+0.5;" b_2b01:="-(前二高-前一高)/(qgwz2-qgwz1);" c_2b01:="A_2B01+qgwz2-qdwz2;" drawsl(s2,h,b_2b01[datacount],c_2b01[datacount],0),colorred,linedot; drawsl(u2,l,0,a_2b01[datacount],0),colorred,linedot; end; tj_2b02:="前二高<前三高;" tj_2b02[sa1] a_2b02:="((前三高-前三低)*(qgwz3-qgwz2))/(前三高-前二高)+(qdwz3-qgwz3)+0.5;" b_2b02:="-(前三高-前二高)/(qgwz3-qgwz2);" c_2b02:="A_2B02+qgwz3-qdwz3;" drawsl(s3,h,b_2b02[datacount],c_2b02[datacount],0),colorff00ff,linedot; drawsl(u3,l,0,a_2b02[datacount],0),colorff00ff,linedot; tj_2b03:="前三高<前四高;" tj_2b03[sa1] a_2b03:="((前四高-前四低)*(qgwz4-qgwz3))/(前四高-前三高)+(qdwz4-qgwz4)+0.5;" b_2b03:="-(前四高-前三高)/(qgwz4-qgwz3);" c_2b03:="A_2B03+qgwz4-qdwz4;" drawsl(s4,h,b_2b03[datacount],c_2b03[datacount],0),color00ffff,linedot; drawsl(u4,l,0,a_2b03[datacount],0),color00ffff,linedot; tj_2b04:="前四高<前五高;" tj_2b04[sa1] a_2b04:="((前五高-前五低)*(qgwz5-qgwz4))/(前五高-前四高)+(qdwz5-qgwz5)+0.5;" b_2b04:="-(前五高-前四高)/(qgwz5-qgwz4);" c_2b04:="A_2B04+qgwz5-qdwz5;" drawsl(s5,h,b_2b04[datacount],c_2b04[datacount],0),color0066ff,linedot; drawsl(u5,l,0,a_2b04[datacount],0),color0066ff,linedot; tj_2b05:="前五高<前六高;" tj_2b05[sa1] a_2b05:="((前六高-前六低)*(qgwz6-qgwz5))/(前六高-前五高)+(qdwz6-qgwz6)+0.5;" b_2b05:="-(前六高-前五高)/(qgwz6-qgwz5);" c_2b05:="A_2B05+qgwz6-qdwz6;" drawsl(s6,h,b_2b05[datacount],c_2b05[datacount],0),color993333,linedot; drawsl(u6,l,0,a_2b05[datacount],0),color993333,linedot; tj_2b06:="前六高<前七高;" tj_2b06[sa1] a_2b06:="((前七高-前七低)*(qgwz7-qgwz6))/(前七高-前六高)+(qdwz7-qgwz7)+0.5;" b_2b06:="-(前七高-前六高)/(qgwz7-qgwz6);" c_2b06:="A_2B06+qgwz7-qdwz7;" drawsl(s7,h,b_2b06[datacount],c_2b06[datacount],0),colorcc99cc,linedot; drawsl(u7,l,0,a_2b06[datacount],0),colorcc99cc,linedot; tj_2b07:="前七高<前八高;" tj_2b07[sa1] a_2b07:="((前八高-前八低)*(qgwz8-qgwz7))/(前八高-前七高)+(qdwz8-qgwz8)+0.5;" b_2b07:="-(前八高-前七高)/(qgwz8-qgwz7);" c_2b07:="A_2B07+qgwz8-qdwz8;" drawsl(s8,h,b_2b07[datacount],c_2b07[datacount],0),color339999,linedot; drawsl(u8,l,0,a_2b07[datacount],0),color339999,linedot; tj_2b08:="前八高<前九高;" tj_2b08[sa1] a_2b08:="((前九高-前九低)*(qgwz9-qgwz8))/(前九高-前八高)+(qdwz9-qgwz9)+0.5;" b_2b08:="-(前九高-前八高)/(qgwz9-qgwz8);" c_2b08:="A_2B08+qgwz9-qdwz9;" drawsl(s9,h,b_2b08[datacount],c_2b08[datacount],0),color0066ff,linedot; drawsl(u9,l,0,a_2b08[datacount],0),color0066ff,linedot; tj_2b09:="前九高<前十高;" tj_2b09[sa1] a_2b09:="((前十高-前十低)*(qgwz10-qgwz9))/(前十高-前九高)+(qdwz10-qgwz10)+0.5;" b_2b09:="-(前十高-前九高)/(qgwz10-qgwz9);" c_2b09:="A_2B09+qgwz10-qdwz10;" drawsl(s10,h,b_2b09[datacount],c_2b09[datacount],0),colorffff00,linedot; drawsl(u10,l,0,a_2b09[datacount],0),colorffff00,linedot; tj_2b10:="前十高<前十一高;" tj_2b10[sa1] a_2b10:="((前十一高-前十一低)*(qgwz11-qgwz10))/(前十一高-前十高)+(qdwz11-qgwz11)+0.5;" b_2b10:="-(前十一高-前十高)/(qgwz11-qgwz10);" c_2b10:="A_2B10+qgwz11-qdwz11;" drawsl(s11,h,b_2b10[datacount],c_2b10[datacount],0),colorff00ff,linedot; drawsl(u11,l,0,a_2b10[datacount],0),colorff00ff,linedot; tj_2b11:="前十一高<前十二高;" tj_2b11[sa1] a_2b11:="((前十二高-前十二低)*(qgwz12-qgwz11))/(前十二高-前十一高)+(qdwz12-qgwz12)+0.5;" b_2b11:="-(前十二高-前十一高)/(qgwz12-qgwz11);" c_2b11:="A_2B11+qgwz12-qdwz12;" drawsl(s12,h,b_2b11[datacount],c_2b11[datacount],0),color00cccc,linedot; drawsl(u12,l,0,a_2b11[datacount],0),color00cccc,linedot; tj_2b12:="前十二高<前十三高;" tj_2b12[sa1] a_2b12:="((前十三高-前十三低)*(qgwz13-qgwz12))/(前十三高-前十二高)+(qdwz13-qgwz13)+0.5;" b_2b12:="-(前十三高-前十二高)/(qgwz13-qgwz12);" c_2b12:="A_2B12+qgwz13-qdwz13;" drawsl(s13,h,b_2b12[datacount],c_2b12[datacount],0),color0066cc,linedot; drawsl(u13,l,0,a_2b12[datacount],0),color0066cc,linedot; tj_2b13:="前十三高<前十四高;" tj_2b13[sa1] a_2b13:="((前十四高-前十四低)*(qgwz14-qgwz13))/(前十四高-前十三高)+(qdwz14-qgwz14)+0.5;" b_2b13:="-(前十四高-前十三高)/(qgwz14-qgwz13);" c_2b13:="A_2B13+qgwz14-qdwz14;" drawsl(s14,h,b_2b13[datacount],c_2b13[datacount],0),colordddddd,linedot; drawsl(u14,l,0,a_2b13[datacount],0),colordddddd,linedot; 希望提高n值的精确度 < p>
前二高;>
前二高;>
编写方法:
你公式中的N是表示天数.
天数值包含小数点时, 飞狐会视不同情况对小数点进行舍弃或进位, 如0.1天~0.9天都相当于0天.
你公式中有部分天数是用N乘以一个数得出, 所以有时会看到小数变化, 画线会有变化. (N=0.6-0.9就碰巧不属于这个"有时")
但如果和画线相关的值都变0, 就什么都不画了.
{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}
【股票资源馆】炒股教程、黑马股票、股票资讯、期货外汇,大智慧沪深10档破解,高成功率股票指标,策略投资破解,财经股票论坛,东方财富破解版,东方财富专业破解版。
在飞狐主图右下方显示文字?本人用的飞狐4.0.119没有DRAWTEXTEX
在飞狐主图右下方显示文字?本人用的飞狐4.0.119没有DRAWTEXTEX
大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:
下载地址:https://share.weiyun.com/LPoU0GHu