µÚ¶þ²½£¬¿ªÊ¼²éÕÒËùÐè×ÊÁÏ£¬Ð´Ï£ºGDT1:=F10TEXT(GDW1,26); ——²ÎÊý26µÄÈ·¶¨ÊÇÊý³öÒ»ÐÐÓÐ13¸öºº×Ö£¬Ã¿¸öºº×ÖÕ¼Á½¸ö×Ö½ÚµÄλÖá£ÕâÒ»¾äµÄðºÅºóÃæÒ»¶¨Òª¼ÓÉϵȺţ¨ÒòΪÕâʱ±äÁ¿ÖÐÊÇ×Ö·û´®¶ø·ÇÊýÖµ£©£¬·ñÔò»áÔì³É“Êä³öÊý¾ÝÀàÐÍ·Ç·¨”µÄÌáʾ£¬ÔÚÓûæͼº¯ÊýдÏÂÒ»¾äÁÙʱÓï¾ä£ºDRAWTEXT(SYSPARAM(2)=BARPOS,5,GDT1); ÕâÑùÔÙ±£´æºó¾Í¿ÉÒÔÔÚͼÖп´µ½ËùÈ¡µÃµÄ×Ö·û´®¡£
µÚÈý²½£¬µ÷ÕûËùÈ¡µÄ×Ö·û´®£º½«µÚ¶þ²½Óï¾äÖеÄGDW1ºóÒÆ3¸ö×Ö½Ú£¬¸Ä³ÉGDT1:=F10TEXT(GDW1+3,26)ºóµã»÷“Ó¦ÓÃÓÚͼ”£¬¿É¿´µ½Ð޸ĺóµÄ±ä»¯£¬Èç¹ûÈÔ²»ºÏÊʾÍÔٴε÷Õý£¬Ö±µ½ÏÔʾÕýÈ·£¬ÖÁ´ËµÚÒ»¼ÒÁ÷ͨ¹É¶«Ñ¡È¡Íê±Ï¡£È»ºó·µ»Øµ½GDW1ÏÂÃ棬¼ÓÉÏÒ»ÐÐдÏ£ºGDW2:F10FIND('2',GDW1+75),LINETHICK; ÔÚGDT1ÏÂÃæдÏ£ºGDT2:=F10TEXT(GDW2+3,26); È»ºó°ÑDRAWTEXT(SYSPARAM(2)=BARPOS,5,GDT1)ÀïÃæµÄGDT1¸ÄΪGDT2£¬²é¿´µÚ¶þ¼Ò¹É¶«µÄÑ¡È¡Çé¿ö¡£
Èç¹û¿´µ½½ØÈ¡µÄÁ÷ͨ¹É¶«Ãû³Æ²¢²»ÍêÕû£¬ÐèÒª¼ÌÐøÍêÉÆ£¬Ìí¼ÓÓï¾äÈçÏ£º
W12:=GDW2-GDW1;
IF W12>120 THEN BEGIN
W:=F10FIND('©¦',GDW1+75),LINETHICK;
T:=F10TEXT(W+2,26);
GDT1:=RTRIM(GDT1)+LTRIM(T);
END;
ÕâÀïʹÓÃÁËÈ¥³ýβ²¿ºÍ¿ªÊ¼¿Õ¸ñµÄº¯Êý£¬Ä¿µÄÊÇΪÁËʹ×Ö·û´®µÄÏνӸü¼ÓÑÏÃÜ¡£
´ËʱµÄ¹«Ê½Óï¾äΪ£º
GDW0:=F10FIND('¡¾Ê®´óÁ÷ͨ¹É¶«¡¿',30000);
GDW1:F10FIND('1',GDW0+100),LINETHICK;
GDW2:F10FIND('2',GDW1+75),LINETHICK;
W1:=GDW2-GDW1;
GDT1:='1.'+F10TEXT(GDW1+3,26);
GDT2:=F10TEXT(GDW2+3,26);
IF W12>120 THEN BEGIN
W:=F10FIND('©¦',GDW1+75),LINETHICK;
T:=F10TEXT(W+2,26);
GDT1:=RTRIM(GDT1)+LTRIM(T);
END;
DRAWTEXT(SYSPARAM(2)=BARPOS,5,T);
DRAWTEXT(SYSPARAM(2)=BARPOS,4,GDT1);
0,COLORBLACK;
ÕâʱÎÒÃÇ·¢ÏÖ£¬Èç¹ûÊ®¼ÒÁ÷ͨ¹É¶«µÄ²éÕÒÈ«²¿ÕâÑùд£¬Êµ¼ÊÉÏÓкܶàÖظ´µÄÓï¾ä£¬ÔõÑù¼ò»¯ÄØ£¿——¿ÉÒÔʹÓÃÑ»·Óï¾ä¡£
ÔÚµÚÒ»ÐÐÇ°ÃæдÉÏVARIABLE:GDW[10]=0,GDT[10]='STR'; ½«ÆäÖеIJ¿·Ö±äÁ¿É趨ΪÊý×飬ǰ°ë²¿·ÖΪ£º
VARIABLE:GDW[10]=0,GDT[10]='STR';
GDW0:=F10FIND('¡¾Ê®´óÁ÷ͨ¹É¶«¡¿',30000);
GDW[1]:=F10FIND('1',GDW0+100),LINETHICK;
GDT[1]:='1.'+F10TEXT(GDW[1]+3,26);
FOR j=2 TO 10 DO BEGIN
XH:=RTRIM(LTRIM(NUMTOSTR(j,0)));//½«jת»»Îª×Ö·ûµÄÐòºÅ
GDW[j]:=F10FIND(' '+XH+'©¦',GDW[1]+75);//È¡×Ö·û´®ËùÔÚλÖÃ
IF j<10 THEN GDT[j]:=XH+'.'+F10TEXT(GDW[j]+4,26);//È¡×Ö·û´®
END;
ºóÃæµÄ²¹³ä×Ö·û´®²¿·Ö±äΪ£º¡¾macd.org.cn ÊÕ¼¯ÕûÀí¡¿
//²¹Î´È¡È«µÄ×Ö·û´®
FOR i=1 TO 9 DO BEGIN
WT:=GDW[i+1]-GDW[i];//¼ÆËãÇ°ºó¹É¶«Î»ÖõIJî
IF WT>120 THEN BEGIN//µ±²î³¬¹ýÒ»¶¨±ê׼ʱִÐÐÏÂÃæÓï¾ä
TW:=F10FIND('©¦',GDW[i]+75),LINETHICK;//È·¶¨Ëù²î×Ö·ûµÄÆðµãλÖÃ
T:=F10TEXT(TW+2,26);//½ØÈ¡Ëù²î×Ö·û
GDT[i]:=RTRIM(GDT[i])+LTRIM(T);//Ç°ºó×Ö·ûºÏ²¢
END;
END;
¡¡²¢Í¨¹ýÖðÒ»¸Ä±äDRAWTEXT(SYSPARAM(2)=BARPOS,4,GDT[10])ÏÔʾÓï¾äÖÐGDTϱêµÄÊýÖµ¹Û²ì½á¹û¡£