变色均线
A:=IF(
DATE REF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+(C+O+H+L)*0.25*V;
均价:B/A;
E:=(H+L+C+O)/4;
PART
LINE (E>均价,均价),COLOR8080FF,LINETHICK1;
PARTLINE(EREF(DAY,1),0,REF(D,1))+V;
E:=IF(DAYREF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
STICKLINE((ISLA
STBA R) AND C>E/D ,C,C,18000,0),COLOR005700;
STICKLINE((ISLASTBAR) AND CREF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+(C+O+H+L)*0.25*V;
均价:B/A;
F:=(H+L+C+O)/4;
PARTLINE(F>均价,均价),COLOR480091,LINETHICK0;
PARTLINE(FREF(DAY,1),0,REF(D,1))+V;
E:=IF(DAYREF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
STICKLINE((ISLASTBAR) AND C>E/D ,C,C,18000,0),COLOR005700;
STICKLINE((ISLASTBAR) AND C均价 AND E>均价)
A:=IF(DATEREF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+(C+O+H+L)*0.25*V;
均价:B/A; E:=(H+L+C+O)/4;
PARTLINE(E>均价,均价),COLOR2E2E5A,LINETHICK0;
PARTLINE(EB/A AND C>REF(H,7) AND C>REF(H,8) AND C>REF(H,9) AND C>REF(H,10) AND C>REF(H,11) AND C>REF(H,12) AND C>REF(H,13) AND C>REF(H,14) AND C>REF(H,15) AND C>REF(E,16)
AND C>REF(H,17) AND C>REF(H,18) AND C>REF(H,19) AND C>REF(H,20) AND C>REF(H,21) AND C>REF(H,22) AND C>REF(H,23) AND C>REF(E,24) AND C>REF(H,25)
AND E>B/A AND REF(E,1)>B/A AND REF(E,2)>B/A AND REF(E,3)>B/A AND REF(E,4)>B/A AND REF(E,5)>B/A AND REF(E,6)>B/A AND REF(L,7)>B/A AND REF(L,8)>B/A
AND REF(E,9)>B/A AND REF(L,1)>B/A AND REF(L,2)>B/A AND REF(L,3)>B/A
AND REF(L,4)>B/A AND REF(L,5)>B/A AND REF(L,6)>B/A,C,C,18000,0),COLOR3A3A76
;
STICKLINE((ISLASTBAR) AND CREF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+E*V;
AP:B/A;
PARTLINE(C>AP AND E>AP,AP),COLOR2C2C56,LINETHICK3;
PARTLINE(CAP,C,1);
DRAW
ICON (ISLASTBAR AND C=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN)
AND C>=B2 OR
B2=CMAX AND B3=CMIN AND C>=B1 OR B3=CMAX AND C>=B1 AND C>=B2,B1,C,4,1),COLOR00BB00;
STICKLINE(C=CMAX AND B1=CMIN,B2,C,4,1),COLOR00BB00;
STICKLINE(C=CMIN AND (B1=B2 OR (B2=CMIN AND B1=B1,B1,B2,4,0),COLOR555555;
STICKLINE(B1=CMAX AND CB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CREF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+(C+O+H+L)*0.25*V;
均价:B/A; E:=(H+L+C+O)/4;
PARTLINE(E>均价,均价),COLOR2E2E5A,LINETHICK0;
PARTLINE(EREF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+(C+O+H+L)*0.25*V;
均价:B/A; E:=(H+L+C+O)/4;
PARTLINE(E>均价,均价),COLOR2E2E5A,LINETHICK0;
PARTLINE(EB/A AND(C=CMIN AND (B1B2 OR B1>B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN)
AND C>B2 OR B2=CMAX AND B3=CMIN AND C>B1 OR B3=CMAX AND C>B1 AND C>B2),C,C,18000,0),COLOR009B00;
宝塔线,均线,实时价横线三线公式
A:=IF(DATEREF(DATE,1),0,REF(A,1))+V;
B:=IF(DATEREF(DATE,1),0,REF(B,1))+(C+O+H+L)*0.25*V;
均价:B/A; E:=(H+L+C+O)/4;
PARTLINE(E>均价,均价),COLOR2E2E5A,LINETHICK0;
PARTLINE(E=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN)
AND C>=B2 OR
B2=CMAX AND B3=CMIN AND C>=B1 OR B3=CMAX AND C>=B1 AND C>=B2,B1,C,3,1),COLOR00BB00;
STICKLINE(C=CMAX AND B1=CMIN,B2,C,3,1),COLOR00BB00;
STICKLINE(B1=CMAX AND CB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND C=B2 OR (B2=CMIN AND B1=B1,B1,B2,3,0),COLOR555555;
STICKLINE((ISLASTBAR)AND C>B/A AND(C=CMIN AND (B1B2 OR B1>B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN)
AND C>B2 OR B2=CMAX AND B3=CMIN AND C>B1 OR B3=CMAX AND C>B1 AND C>B2),C,C,18000,0),COLOR009B
宝塔线和实时价横线公式
B0:=REF(C-O,2);B1:=REF(C,1);B2:=REF(C,2);B3:=REF(C,3);B4:=REF(C,4);
CMAX:=MAX(MAX(MAX(C,B1),B2),B3);CMIN:=MIN(MIN(MIN(C,B1),B2),B3);
STICKLINE(C=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN)
AND C>=B2 OR
B2=CMAX AND B3=CMIN AND C>=B1 OR B3=CMAX AND C>=B1 AND C>=B2,B1,C,10,1), COLOR9ECC02;
STICKLINE(C=CMAX AND B1=CMIN,B2,C,10,1), COLOR9ECC02;
STICKLINE(C=CMIN AND (B1=B2 OR (B2=CMIN AND B1=B1,B1,B2,10,0),COLOR787878;
STICKLINE(B1=CMAX AND CB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CO OR (C=O AND C>REF(C,1)),O,C,10,1),COLOR87C703;{画出红K实体}
STICKLINE((C>O AND C>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLOR87C703;{画出红K上影线}
STICKLINE((C>O AND L>O) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLOR87C703;{画出红K下影线}
STICKLINE(C>O OR (C=O AND C>REF(C,1)),O,C,10,1),COLOR87C703;{画出红K实体}
STICKLINE((C>O AND CH) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLOR87C703;{画出红K上影线}
STICKLINE((C>O AND LO) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLOR87C703;{画出红K下影线}
STICKLINE(CO OR (C=O AND C>REF(C,1)),O,C,10,1),COLOR88CA00;{画出红K实体}
STICKLINE((C>O AND C>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLOR88CA00;{画出红K上影线}
STICKLINE((C>O AND L>O) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLOR88CA00;{画出红K下影线}
D:=IF(DAYREF(DAY,1),0,REF(D,1))+V;
E:=IF(DAYREF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
STICKLINE((ISLASTBAR) AND C>E/D ,C,C,18000,0),COLOR939393;
STICKLINE((ISLASTBAR) AND CO OR (C=O AND C>REF(C,1)),O,C,10,1),COLOR88CA00;{画出红K实体}
STICKLINE((C>O AND CH) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLOR88CA00;{画出红K上影线}
STICKLINE((C>O AND LO) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLOR88CA00;{画出红K下影线}
STICKLINE(C<O OR (C=O AND C<=REF(C,1)),C,O,10,0),COLOR737373;{画出青K实体}
STICKLINE(C<O OR (C=O AND C<=REF(C,1)),L,H,0.1,0),COLOR737373;{画出青K影线。