以下是钱龙SSL副图指标源码和截图
钱龙SSL副图指标源码:
TS:=350;N:=95;
DA1:=IF(TS TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
DA:=IF(CURRBARSCOUNT DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);{最高价}
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT =DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/15); {对数格值}
LH1:=SUM(IF(C1 =(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1 =(HI/POW(GZ,2)) AND C1 (HI/GZ),V,0),DA);
LH3:=SUM(IF(C1 =(HI/POW(GZ,3)) AND C1 (HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1 =(HI/POW(GZ,4)) AND C1 (HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1 =(HI/POW(GZ,5)) AND C1 (HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1 =(HI/POW(GZ,6)) AND C1 (HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1 =(HI/POW(GZ,7)) AND C1 (HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1 =(HI/POW(GZ,8)) AND C1 (HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1 =(HI/POW(GZ,9)) AND C1 LO*POW(GZ,7),V,0),DA);
LH10:=SUM(IF(C1 =(LO*POW(GZ,5)) AND C1 LO*POW(GZ,6),V,0),DA);
LH11:=SUM(IF(C1 =(LO*POW(GZ,4)) AND C1 LO*POW(GZ,5),V,0),DA);
LH12:=SUM(IF(C1 =(LO*POW(GZ,3)) AND C1 LO*POW(GZ,4),V,0),DA);
LH13:=SUM(IF(C1 =(LO*POW(GZ,2)) AND C1 LO*POW(GZ,3),V,0),DA);
LH14:=SUM(IF(C1 =(LO*GZ) AND C1 LO*POW(GZ,2),V,0),DA);
LH15:=SUM(IF(C1 =LO AND C1 LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE);
L2:=REFDATE(HHV(LH2,DA),DATE);
L3:=REFDATE(HHV(LH3,DA),DATE);
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
L11:=REFDATE(HHV(LH11,DA),DATE);
L12:=REFDATE(HHV(LH12,DA),DATE);
L13:=REFDATE(HHV(LH13,DA),DATE);
L14:=REFDATE(HHV(LH14,DA),DATE);
L15:=REFDATE(HHV(LH15,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15);
STICKLINE(CEILING(DA*L1/SS)*3 =CURRBARSCOUNT ,HI*N/100,HI/GZ,5,0)COLORYELLOW;
STICKLINE(CEILING(DA*L2/SS)*3 =CURRBARSCOUNT ,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L3/SS)*3 =CURRBARSCOUNT ,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),5,0)COLORGRAY;
STICKLINE(CEILING(DA*L4/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L5/SS)*3 =CURRBARSCOUNT ,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),5,0)COLORGRAY;
STICKLINE(CEILING(DA*L6/SS)*3 =CURRBARSCOUNT ,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L7/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),5,0)COLORGRAY;
STICKLINE(CEILING(DA*L8/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,7),LO*POW(GZ,8)*N/100,5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L9/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,6),LO*POW(GZ,7)*N/100,5,0)COLORGRAY;
STICKLINE(CEILING(DA*L10/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,5),LO*POW(GZ,6)*N/100,5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L11/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,4),LO*POW(GZ,5)*N/100,5,0)COLORGRAY;
STICKLINE(CEILING(DA*L12/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,3),LO*POW(GZ,4)*N/100,5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L13/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,5,0)COLORGRAY;
STICKLINE(CEILING(DA*L14/SS)*3 =CURRBARSCOUNT ,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,5,0)COLORLICYAN;
STICKLINE(CEILING(DA*L15/SS)*3 =CURRBARSCOUNT ,LO,LO*POW(GZ,1)*N/100,5,0)COLORGRAY;
价位: CLOSE,colorwhite ,linethick2 ;
Var1:="XWUS@COSTL"(N,M);
: Var1,colorgreen ,linethick2 ;
Var2:="XWUS@CMBL"(N,1);
Var3:="XWUS@CMBL"(N,2);
Var4:="XWUS@CMBL"(N,3);
Var5:="XWUS@CMBL"(N,4);
Var6:="XWUS@CMBL"(N,5);
Var7:="XWUS@CMBL"(N,6);
Var8:="XWUS@CMBL"(N,7);
Var9:="XWUS@CMBL"(N,8);
VarA:="XWUS@CMBL"(N,9);
VarB:="XWUS@CMBL"(N,10);
VarC:="XWUS@CMBL"(N,11);
VarD:="XWUS@CMBL"(N,12);
VarE:="XWUS@CMBL"(N,13);
VarF:="XWUS@CMBL"(N,14);
Var10:="XWUS@CMBL"(N,15);
Var11:="XWUS@CMBL"(N,16);
Var12:="XWUS@CMBL"(N,17);
Var13:="XWUS@CMBL"(N,18);
Var14:="XWUS@CMBL"(N,19);
Var15:="XWUS@CMBL"(N,20);
Var16:="XWUS@CMBL"(N,21);
Var17:="XWUS@CMBL"(N,22);
Var18:="XWUS@CMBL"(N,23);
Var19:="XWUS@CMBL"(N,24);
Var1A:="XWUS@CMBL"(N,25);
Var1B:="XWUS@CMBL"(N,26);
Var1C:="XWUS@CMBL"(N,27);
Var1D:="XWUS@CMBL"(N,28);
Var1E:="XWUS@CMBL"(N,29);
Var1F:="XWUS@CMBL"(N,30);
Var20:="XWUS@CMBL"(N,31);
Var21:="XWUS@CMBL"(N,32);
Var22:="XWUS@CMBL"(N,33);
Var23:="XWUS@CMBL"(N,34);
Var24:="XWUS@CMBL"(N,35);
Var25:="XWUS@CMBL"(N,36);
Var26:="XWUS@CMBL"(N,37);
Var27:="XWUS@CMBL"(N,38);
Var28:="XWUS@CMBL"(N,39);
Var29:="XWUS@CMBL"(N,40);
Var2A:="XWUS@CMBL"(N,41);
Var2B:=POLYLINE(Var2 0,Var2);
Var2C:=POLYLINE(Var3 0,Var3);
Var2D:=POLYLINE(Var4 0,Var4);
POLYLINE(Var5 0,Var5),colormagenta ,linethick2 ;
Var2E:=POLYLINE(Var6 0,Var6);
Var2F:=POLYLINE(Var7 0,Var7);
Var30:=POLYLINE(Var8 0,Var8);
POLYLINE(Var9 0,Var9),colormagenta,linethick2 ;
Var31:=POLYLINE(VarA 0,VarA);
Var32:=POLYLINE(VarB 0,VarB);
Var33:=POLYLINE(VarC 0,VarC);
POLYLINE(VarD 0,VarD),colormagenta ,linethick2 ;
Var34:=POLYLINE(VarE 0,VarE);
Var35:=POLYLINE(VarF 0,VarF);
Var36:=POLYLINE(Var10 0,Var10);
POLYLINE(Var11 0,Var11),colormagenta ,linethick2 ;
Var37:=POLYLINE(Var12 0,Var12);
Var38:=POLYLINE(Var13 0,Var13);
Var39:=POLYLINE(Var14 0,Var14);
POLYLINE(Var15 0,Var15),colormagenta , linethick2;
Var3A:=POLYLINE(Var16 0,Var16);
Var3B:=POLYLINE(Var17 0,Var17);
Var3C:=POLYLINE(Var18 0,Var18);
POLYLINE(Var19 0,Var19),colormagenta ,linethick2 ;
Var3D:=POLYLINE(Var1A 0,Var1A);
Var3E:=POLYLINE(Var1B 0,Var1B);
Var3F:=POLYLINE(Var1C 0,Var1C);
POLYLINE(Var1D 0,Var1D),colormagenta ,linethick2 ;
Var40:=POLYLINE(Var1E 0,Var1E);
Var41:=POLYLINE(Var1F 0,Var1F);
Var42:=POLYLINE(Var20 0,Var20);
POLYLINE(Var21 0,Var21),colormagenta ,linethick2 ;
Var43:=POLYLINE(Var22 0,Var22);
Var44:=POLYLINE(Var23 0,Var23);
Var45:=POLYLINE(Var24 0,Var24);
POLYLINE(Var25 0,Var25),colormagenta ,linethick2 ;
Var46:=POLYLINE(Var26 0,Var26);
Var47:=POLYLINE(Var27 0,Var27);
Var48:=POLYLINE(Var28 0,Var28);
POLYLINE(Var29 0,Var29),colormagenta ,linethick2 ;
POLYLINE(Var2A 0,Var2A),colormagenta ,linethick2 ;
POLYLINE(CLOSE 0,CLOSE),colorwhite ,linethick2 ;
POLYLINE(Var1 0,Var1),colorgreen ,linethick2 ;
TS:=350;N:=95;
DA1:=IF(TS TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
DA:=IF(CURRBARSCOUNT DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);{最高价}
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT =DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/15);{对数格值}
LH1:=SUM(IF(C1 =(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1 =(HI/POW(GZ,2))ANDC1 (HI/GZ),V,0),DA);
LH3:=SUM(IF(C1 =(HI/POW(GZ,3))ANDC1 (HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1 =(HI/POW(GZ,4))ANDC1 (HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1 =(HI/POW(GZ,5))ANDC1 (HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1 =(HI/POW(GZ,6))ANDC1 (HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1 =(HI/POW(GZ,7))ANDC1 (HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1 =(HI/POW(GZ,8))ANDC1 (HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1 =(HI/POW(GZ,9))ANDC1 LO*POW(GZ,7),V,0),DA);
LH10:=SUM(IF(C1 =(LO*POW(GZ,5))ANDC1 LO*POW(GZ,6),V,0),DA);
LH11:=SUM(IF(C1 =(LO*POW(GZ,4))ANDC1 LO*POW(GZ,5),V,0),DA);
LH12:=SUM(IF(C1 =(LO*POW(GZ,3))ANDC1 LO*POW(GZ,4),V,0),DA);
LH13:=SUM(IF(C1 =(LO*POW(GZ,2))ANDC1 LO*POW(GZ,3),V,0),DA);
LH14:=SUM(IF(C1 =(LO*GZ)ANDC1 LO*POW(GZ,2),V,0),DA);
LH15:=SUM(IF(C1 =LOANDC1 LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE);
L2:=REFDATE(HHV(LH2,DA),DATE);
L3:=REFDATE(HHV(LH3,DA),DATE);
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
L11:=REFDATE(HHV(LH11,DA),DATE);
L12:=REFDATE(HHV(LH12,DA),DATE);
L13:=REFDATE(HHV(LH13,DA),DATE);
L14:=REFDATE(HHV(LH14,DA),DATE);
L15:=REFDATE(HHV(LH15,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15);
stICKLINE(CEILING(DA*L1/SS)*3 =CURRBARSCOUNT,HI*N/100,HI/GZ,5,0)COLORYELLOW;
STICKLINE(CEILING(DA*L2/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L3/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),5,0)COLORGRAY;
STICKLINE(CEILING(DA*L4/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L5/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),5,0)COLORGRAY;
STICKLINE(CEILING(DA*L6/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L7/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),5,0)COLORGRAY;
STICKLINE(CEILING(DA*L8/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,7),LO*POW(GZ,8)*N/100,5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L9/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,6),LO*POW(GZ,7)*N/100,5,0)COLORGRAY;
STICKLINE(CEILING(DA*L10/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,5),LO*POW(GZ,6)*N/100,5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L11/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,4),LO*POW(GZ,5)*N/100,5,0)COLORGRAY;
STICKLINE(CEILING(DA*L12/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,3),LO*POW(GZ,4)*N/100,5,0)COLORLIGRAY;
STICKLINE(CEILING(DA*L13/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,5,0)COLORGRAY;
STICKLINE(CEILING(DA*L14/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,5,0)COLORLICYAN;
STICKLINE(CEILING(DA*L15/SS)*3 =CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,5,0)COLORGRAY;
钱龙SSL副图指标截图