ÈýÏß·´×ªÍ¼¡£ÊÇÍêÈ«°´ÕÕ£¼¹ÉƱKÏßÕ½·¨£¾ÖеÄ˼·±àдµÄ£¬²»Í¬Ö®´¦ÊDzÎÊý×ö³É¿ÉÒÔµ÷ÕûµÄ¡£
INPUT:N(3,2,99); ·´×ª²ÎÊý:N,LINETHICK0;
OO:="GAM@SXO"(N); CC:="GAM@SXC"(N);
¿ª:OO,LINETHICK0; ÊÕ:CC,LINETHICK0;
STICKLINE(CC>OO,OO,CC,9.93,1),COLORRED;
STICKLINE(CC<OO,OO,CC,9.93,0),COLORCYAN;
שÐÎͼ¡£Ò²ÍêÈ«°´ÕÕÔÖøµÄ˼·¡£
INPUT:N(3,0,9999); שÐÎͼ²ÎÊý£¨Ôª£©:N/10,LINETHICK0;
OO:="GAM@ZXO"(N/10); CC:="GAM@ZXC"(N/10);
¿ª:OO,LINETHICK0; ÊÕ:CC,LINETHICK0;
STICKLINE(CC>OO,OO,CC,9.93,1),COLORRED;
STICKLINE(CC<OO,OO,CC,9.93,0),COLORCYAN;
ÕÛÏßͼ¡£Ò²ÍêÈ«°´ÕÕÔÖøµÄ˼·¡£Î¨Ò»Ò»µã²»Í¬µÄÊÇ£¬ÔÖøÖÐÓõĴÖÏßÏÔʾ£¬ÎҸijɲÊÉ«ÏÔʾ¡£
INPUT:N(3,0,999); A:="GAM@ZZC"(N/10); תÕÛ¼Û²ÎÊý£¨Ôª£©:N/10,LINETHICK0;
AD:=A>REF(A,1); AX:=A<REF(A,1); B:=AD AND A>REF(A,2); //³¬Ç°¸ß
D:=(AX AND A<REF(A,2)) OR BARPOS=1; E:=BARSLAST(B)<BARSLAST(D);
HH:=IF(AD,A,REF(A,1)); LL:=IF(AX,A,REF(A,1)); ¸ßµã:HH,LINETHICK0,colorred; µÍµã:LL,LINETHICK0,colorgreen;
STICKLINE(AD,REF(A,1),A,0.1,0),COLORGREEN; STICKLINE(AX,REF(A,1),A,0.1,0),COLORGREEN;
DRAWLINE(AD,HH,A<REF(A,1),HH,0),COLORGREEN; DRAWLINE(AX,LL,AD,LL,0),COLORGREEN;
//ÒÔÉϻȫ²¿ÕÛÏߣ¬ÒÔÏ»ºìÏß¡£
F:=E>REF(E,1) OR BARSSINCE(B)=0; G:=E AND NOT(F);
STICKLINE(F,REF(A,2),A,0.1,0),COLORRED; //³¬Ç°¸ßʱµÄºìÖùÏß¡£
STICKLINE(D AND REF(E,1),REF(A,2),REF(A,1),0.1,0),COLORRED; //ÆÆÇ°µÍʱµÄºìÖùÏß¡£
STICKLINE(G,REF(A,1),A,0.1,0),COLORRED; //Öмä¹ý³ÌµÄºìÖùÏß¡£
DRAWLINE(E AND AD,HH,(E OR REF(E,1)) AND AX,HH,0),COLORRED;
DRAWLINE(E AND AX,LL,E AND AD,LL,0),COLORRED; //»ÖмäÁ¬½ÓÏß
STICKLINE(BARSCOUNT(A)=2,REF(A,1),REF(A,1),0.5,1),COLORMAGENTA,LINETHICK5;
STICKLINE(ISLASTBAR,C,C,0.5,1),COLORMAGENTA,LINETHICK5;
ÏÖÊÕÅ̼Û:C*ISLASTBAR,LINETHICK0,COLORMAGENTA;
¹²18Ò³: ÉÏÒ»Ò³ [1] [2] [3] 4 [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] ÏÂÒ»Ò³