²»ÄÜ˵µÄÃØÃÜ--¹ÉƱ¹«Ê½-µÚ2ÕÂ
°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·ҳ£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
×¢Òâ¸ñʽÉÏ£¬Á½±ßÓÃÒýºÅÀ¨ÆðÀ´£¬Ö¸±êÃû³ÆKDJºÍÖ¸±êÏßÃû³ÆDÖ®¼äÓá°£¬¡±¸ô¿ª£¡
¶îÍâ¼Ó²Í
ÏÖÔÚÎÒÃÇ¿ÉÒԺܷ½±ãµÄ×öÁíÍâÒ»¼þÊÂÁË£¬ÎÒÃÇ¿ÉÒÔ½«Í¨³£ËµµÄKDJÂòÈëÌõ¼þÍêÕûµÄ±í´ï³öÀ´ÁË£º
¡°KDÖ¸±ê·¢ÉúÁ˻ƽ𽻲棬²¢ÇÒD£¼20¡±
T1£º=¡°KDJ£¬K¡±£»ÒýÓÃKÏߣ»
T2£º=¡°KDJ£¬D¡±£»ÒýÓÃDÏߣ»
Ìõ¼þ£º¡¡ANDÔÚ·ÖÎö¼ÒÖоͱíʾ¡°²¢ÇÒ¡±£¬½«Á½¸öÌõ¼þ²¢ÁÐÆðÀ´
CROSS£¨T1£¬T2£©ANDT2£¼20£»
µÚ¾Å¿Î¡¡·ÅÁ¿¡¢ËõÁ¿¡¢ÉÏÕÇ¡¢Ïµø¡¢ÊÕÑô¡¢ÊÕÒõ
ÔÚÇ°ÃæµÄѧϰµ±ÖУ¬ÎÒÃǼûµ½ÁËһЩ»ù±¾µÄ±í´ï·½·¨¡¢·½Ê½£¬½ñÌìÎÒÃǵÄÈÎÎñÊÇѧϰһЩ³£¼ûµÄ¸ÅÄîÈçºÎ±àд£¬ÀýÈçÉÏÃæËùÁгöÀ´µÄ·ÅÁ¿¡¢ÉÏÕǵȵȣ¬ÒòΪÕâЩ¶¼ÊÇÔÚ¹«Ê½±àд¹ý³Ìµ±ÖÐÒªÓõ½µÄ»ù±¾µÄСµÄÐÎ̬ÌØÕ÷£¬Ðí¶àµÄ¼¼ÊõÖ¸±êµÄÑ¡¹ÉÌõ¼þ¶¼ÊÇÓÉËüÃÇ×é³ÉµÄ¡£
·ÅÁ¿£º
1¡¢½ñÈÕ±È×òÈյijɽ»Á¿·Å´óÁË1±¶£º
VOL/REF£¨VOL£¬1£©£¾2£»
2¡¢½ñÈÕµÄÎåÈÕ¾ùÁ¿±ÈÇ°ÎåÌìµÄÎåÈÕ¾ùÁ¿·Å´óÁË3±¶£º
AA£º=MA£¨VOL£¬5£©£»
BB£º=REF£¨AA£¬5£©£»
AA/BB£¾4£»
3¡¢½ñÌìµÄ³É½»Á¿´ïµ½ÁËÕû¸öÁ÷ͨÅ̵Ä10£¥ÒÔÉÏ£º
VOL/CAPITAL£¾10/100£»
£¨×¢Ò⣬10£¥µÄ±í´ïʽÊÇ10/100£¬»òÕß0¡£1£©
ËõÁ¿£º
1¡¢½ñÈÕ±È×òÈյijɽ»Á¿ËõСÁË1±¶£º
VOL/REF£¨VOL£¬1£©£¼0¡£5£»
2¡¢½ñÈÕµÄÎåÈÕ¾ùÁ¿±ÈÇ°ÎåÌìµÄÎåÈÕ¾ùÁ¿ËõСÁËÒ»°ë£º
AA£º=MA£¨VOL£¬1£©£¼0¡£5£»
BB£º=REF£¨AA£¬5£©£»
AA/BB£¼0¡£5£»
3¡¢½ñÌìµÄ³É½»Á¿²»×ãÕû¸öÁ÷ͨÅ̵Ä0¡£5£¥£º
VOL/CAPITAL£¼0¡£5/100£»
ÉÏÕÇ£º
1¡¢½ñÈÕÕÇ·ù´ïµ½ÁË7£¥ÒÔÉÏ£º
CLOSE/REF£¨CLOSE£¬1£©£¾1¡£07£»
2¡¢Ê®ÈÕ¾ù¼Û¼ÌÐøÉÏÕÇ£º
AA£º=MA£¨CLOSE£¬10£©£»
BB£º=REE£¨AA£¬1£©£»
AA£¾BB£»
ϵø£º
ͬÉÏÃæµÄ±í´ï·½Ê½Ò»Ñù£¬½«·½Ïò¸Ä±äÁ˶øÒÑ£º
ÊÕÑô¡¢ÊÕÒõ£º
1¡¢µ±ÌìÊÕÑô£ºCLOSE£¾OPEN£»
2¡¢µ±ÌìÊÕÒõ£ºCLOSE£¼OPEN£»
¸ß¿ª¡¢µÍ¿ª£º
1¡¢µ±Ìì¹É¼Û¸ß¿ª£¬ÑÔÏÂÖ®Ò⿪Å̸ßÓÚ×òÈÕÊÕÅÌ£ºOPEN£¾REF£¨CLOSE£¬1£©£»
2¡¢µ±Ìì¹É¼ÛµÍ¿ª£ºOPEN£¼REF£¨CLOSE£¬1£©£»
Ìø¿Õ£º
Ìø¿ÕÒàÓÐÏòÉϺÍÏòÏÂÁ½ÖÖ£º
µ±ÈÕ¿ªÅÌÔÚ×òÈÕ×î¸ßÖ®ÉÏ£¬¼´ÎªÏòÉÏÌø¿Õ£ºOPEN£¾REF£¨HIGH£¬1£©£»
·´Ö®£¬¿ªÅÌСÓÚ×òÈÕµÄ×î¸ß¼Û£¬ÎªÏòÏÂÌø¿Õ£ºPOEN£¼REF£¨LOW£¬1£©£»
ÊÂʵÉÏ£¬ÎÒÃÇÔڱ๫ʽµÄ¹ý³Ì£¬¾ÍÊǽ«ÕâЩÌõ¼þÓлúµØ½áºÏÆðÀ´×÷ΪÎÒÃÇÅжϵÄÌõ¼þ¡£¾ÙÒ»¸öºÜ¼òµ¥µÄÀý×Ó£¬Èç¹ûÊÇKÏßÐÎ̬³ÊÏÖ³ö·ÅÁ¿ÉϹ¥µÄ̬ÊÆ£¬ÄÇôÈçºÎ±àдÕâ¸ö¹«Ê½ÄØ£¿¸ß¿ª¸ß×ßÓÖÓ¦¸ÃÈçºÎ±àдÄØ£¿
ÎÒÃÇ°Ñ·ÅÁ¿ºÍÉÏÕǵÄÁ½¸öÌõ¼þ×éºÏÔÚÒ»Æð£¬ÈÃijһÌìµÄÐÎ̬ÌØÕ÷ͬʱÂú×ãÁ½¸öÌõ¼þ¾Í´ïµ½Ä¿µÄ£»Í¬ÑùµØ½«¸ß¿ªµÄ¸ß×ßÁ½¸öÌõ¼þ½áºÏÔÚÒ»Æð£¬Ò²¾ÍÕÒµ½ÁËÎÒÃÇËùÐèµÄÌõ¼þ¡£
½á¹û¾ÍÊÇ£º
·ÅÁ¿ÉϹ¥Ö®Ò»£¬ÒÔÉÏÃæËù¾ÙÀý×éºÏ£º
AA£º=VOL/REF£¨VOL£¬1£©£¾2£»
BB£º=CLOSE/REF£¨CLOSE£¬1£©£¾1¡£07£»
AA¡¡AND¡¡BB£»
¸ß¿ª¸ß×ߣº
AA£º=OPEN£¾REF£¨CLOSE£¬1£©£»
BB£º=CLOSE£¾OPEN£»
AA¡¡AND¡¡BB£»
OK£¡±¾¿Îµ½´Ë½áÊø£¬ÁôÏÂÒ»¸öÎÊÌ⣬¿´¿´ÄúÓÐûÓÐÕæÕýµÄÀí½â£¬ÏòÉÏÌø¿ÕÖ®ºóÁ½ÌìÄÚ²¢Î´»Ø²¹ÈçºÎ±àдÄØ£¿
Ìáʾ£ºÊµ¼ÊÉϾÍÊÇ×òÌì·¢ÉúÁËÌø¿Õȱ¿Ú£¬ÕâÁ½ÌìµÄ×îµÍ¼ÛÒ»Ö±ÔÚÁ½ÌìÇ°µÄ×î¸ß¼ÛÖ®ÉÏ¡£
AA£º=REF£¨OPEN£¬1£©£¾REF£¨HIGH£¬2£©£»
BB£º=REF£¨LOW£¬1£©£¾REF£¨HIGH£¬2£©£»
CC£º=LOW£¾REF£¨HIGH£¬2£©£»
AA¡¡AND¡¡BB¡¡AND¡¡CC£»
×ÐϸһÏ룬ÈôBB³ÉÁ¢£¬AAÒ»¶¨³ÉÁ¢£¬AAʵ¼ÊÉÏûÓдæÔڵıØÒª£¬ÄãÏëͨÁËÂð£¿
¸ü¼òµ¥µÄ·½·¨£¬ÏÂÃæµÄÒ»¾ä»°¿ÉÒÔµÄÉÏÃæµÄËľ䣺
COUNT£¨LOW£¾REF£¨HIGH£¬2£©£¬2£©=2£»
µÚÊ®¿Î¡¡ÕÇÍ£°å¹¥»÷£¿
ѧÁËÕâô¶àÁË£¬Ó¦¸Ã½ÌµãʵսµÄÄÚÈÝÁË£¡ÎÒÃÇÀ´Ñ§Ï°Ò»Ï±ðÈ˵ľÑ飬¡°ÕÇÍ£°å×·»÷¡±£¬Í¬Ê±ÕâÀïÃ滹ÈóÔÐÓý×ÅÒ»¸ö¼òµ¥µ«ÊÇÓÖÆÄÓÐÒâÒåµÄµÀÀí£¡
Ò»¡¢Á¿»¯µÄ¸ÅÄî
ÎÒÃǶ¼ÖªµÀ£¬°´¹æ¶¨ÕÇ·ù²»µÃ³¬¹ý10£¥£¬µ«ÊÇÓÉÓÚËÄÉáÎåÈëµÄ¹Øϵ£¬³£³£ÓÐ9¡£98£¥¡¢10¡£23£¥µÈµÈµÄÕÇÍ£°å£¬ËùÒÔÎÒÃÇÒªÕÒÒ»¸öºÏÊʵÄÊýÖµ£¬È»ºóÓ÷ÖÎö¼ÒµÄÓïÑÔ¸æËß¼ÆËã»ú£¬Õâ¸ö¹ý³ÌѧÃû½ÐÁ¿»¯£¡
±ÈÈçÎÒÃÇ¿¼²ìÖ®ºó£¬¾ö¶¨ÈôóÓÚ9¡£99£¥µÄ¶¼ÎªÕÇÍ£¡£
¶þ¡¢±àд¹«Ê½
Æäʵ¾ÍÒ»¾ä»°£º½ñÈÕÊÕÅ̳ýÒÔ×òÈÕÊÕÅ̵ÄÖµ´óÓÚ1¡£0999
X£º=CLOSE/REF£¨CLOSE£¬1£©£¾1¡£0999£»
Èý¡¢²âÊÔÎÒÃǵÄÌõ¼þ
´ó¼Ò¶¼Öª²âÊԵŦÄÜ£¬Òª²»È»ÄãÔõô֪µÀÄãµÄ¾ÑéÔÚÀúÊ·ÉϵıíÏÖÊǺû¹ÊDz»ºÃÄØ£¿
°´ÕÕÏÂͼָÒý½øÈëÌõ¼þÑ¡¹ÉµÄ½çÃ棬֮ºóÑ¡ÖÐÄúµÄÌõ¼þ£¬¾ßÌå°ì·¨Çë²Î¼û£¨Ê¹ÓÃ˵Ã÷Ê飩¡£È»ºóÌîÈë²âÊÔʱ¼äºÍ²âÊÔ±ê×¼£¡
ÔÚÕâÀïÎÒÃǵIJâÊÔ·½·¨ÊÇ£º
²âÊÔʱ¼äÊÇ´Ó2000/01/01µ½2001/03/02£¬²âÊÔ¹ÉƱ¹²¼Æ583Ö»£¬³õʼͶÈë100£¬000Ôª¡£
µ±Âú×ãÂòÈ빫ʽÖж¨ÒåµÄÌõ¼þʱ£¬Ò²¾ÍÊÇÕÇÍ£°åʱ£¬°´ÕÕÊÕÅ̼ÛʹÓÃÏàͬ×ʽðÂòÈëÒ»Ö»¹ÉƱ£¬µ±Âú×ãÒÔÏÂƽ²ÖÌõ¼þʱ°´ÕÕÊÕÅ̼Ûƽ²Ö£»ÂòÈë5ÈÕºóÇ¿ÖÆƽ²Ö»òÕß¿÷Ëð´ïµ½3£¥Ö¹Ëðƽ²Ö»òÕßÀûÈó´ïµ½5£¥Ö¹Ó®Æ½²Ö£¬È»ºó°´ÕÕÒÔÉϵĹæÔòͳ¼ÆÔÚ²âÊÔµÄʱ¼ä¶ÎÄÚµÄËùÓн»Ò×µÄ×´¿ö¡£
ÕâÊÇÒ»ÖÖ×·ÕǵĶÌÏß·½·¨£¬ËùÒÔ²âÊÔµÄʱ¼äÎÒÃÇÖ»ÓÃ5Ì죬Ŀ±êÀûÈóΪ5£¥£¬£¨·Ç³£±§Ç¸£¬ÒòΪÆäÖеÄÉèÖúÍÑ¡Ôñ·½·¨Ê®·ÖÁé»î¶øÇÒÐèÒª½ÏºÃµÄÀí½âÄÜÁ¦£¬ËùÒÔÎÒÃÇÔÚÕâÀï¾Í²»½éÉܾßÌåµÄÄÚÈÝÁË£©
µã»÷¿ªÊ¼²âÊÔ£¡Ò»ÇÐOK£¡À´¿´½á¹û°É£¡
1¡¢´Ó³É¹¦ÂÊÉÏ¿´£¬Êµ¼Ê´ïµ½5£¥µÄ»ñÀûÒªÇóµÄ½»Ò×´ÎÊý67¡£89£¥£¬ÎÒÃÇÒѾ±È½ÏÂúÒâÕâ¸ö½á¹ûÁË£¬¿ÉÊÇÒªÓÃÓÚʵս£¬¿É²»¿ÉÒÔÔÙÌá¸ßÄØ£¿
2¡¢ËùνµÄÌá¸ß¾ÍÊÇÓÅ»¯µÄÒ»¸öÄÚÈÝ£¬¼òµ¥Ëµ£¬ÓÅ»¯¾ÍÊÇÈÃËü¸üºÃ£¡ÓÅ»¯ÎÒÃǵÄÌõ¼þ£¬ÈÃËüµÄ±íÏÖ¸üºÃ£¡
3¡¢¼ÓÉÏÒ»¸öËõÁ¿µÄÌõ¼þ£¬±ÈÈçµ±Èճɽ»Á¿Ð¡ÓÚ5ÈյľùÁ¿£»Y£º=VOL£¼MA£¨VOL£¬5£©£»´ó¼Ò¿ÉÒÔ×öһϲâÊÔ£¬¿´¿´½á¹ûÈçºÎ£¡ÒÔÏÂÊÇͬÑù²âÊÔÌõ¼þϵĽá¹û¡£¡¡X¡¡AND¡¡Y£»
ÄúÂúÒâÂð£¿ÎÒÃǵijɹ¦ÂÊÒÑ´ïµ½ÁË80£¥£¬Ê£ÏµÄÈÎÎñ¾ÍÊÇÄúÈçºÎ²Ù×÷µÄÎÊÌâÁË£¡
×¢£ºÇë´ó¼Ò¿¼ÂÇÒ»ÏÂÔÚʵսµ±ÖУ¬Èç¹ûÄú°´´ËÂòÈë¿É²»¿ÉÐУ¿
×ܽ᣺±àд¹«Ê½²¢²»ÊÇΪÁ˱๫ʽ¶ø±àд¸´ÔӵĹ«Ê½£¬Äú¸öÈ˶Ôijһ¸öÌØÕ÷»òÕßÐÎ̬µÄÀí½â×îÖØÒª¡£ËùÒÔ¹âÓоÑé²»¹»£¬Äú»¹µÃ°ÑËüת»¯³ÉÄú×Ô¼ºµÄÓ¦¶Ô²ßÂÔ£¡ÄúÐèÒª²»¶Ï×ܽᡢ²âÊÔ¡¢ÓÅ»¯ÄúµÄ¹«Ê½¡£
µÚʮһ¿Î¡¡¶àÍ·ÅÅÁÐÁ¼ºÃµÄÉÏÉýÇ÷ÊÆ
¾ùÏߵĶàÍ·ÅÅÁÐÒ»Ö±ÒÔÀ´¶¼±»´ó¼ÒÊÓΪһÖÖÁ¼ºÃµÄÉÏÉýÇ÷ÊƵıíÏÖ£¬ÒòΪÕâÖÖÐÎ̬µÄÐγÉÐèÒª½Ï³¤µÄʱ¼ä£¬ºÍ½Ï´óµÄÄÜÁ¿£¬¶ø±»Ö÷Á¦»òÕßׯ¼ÒÀûÓÃ×÷ΪÆÏߵĿÉÄÜÐԾͱȽÏС£¬¹ÉÊе±ÖÐÒ²×ñѹßÐÔµÄÔÀí£¬µ±Ò»¸öÇ÷ÊÆÐγÉÖ®ºó£¬Òª¸Ä±äËü£¬ÊDz»ÈÝÒ׵ģ¬ÒòΪ¹É¼ÛÓÐ×ÅÑØ×ÅÔÀ´µÄÔ˶¯·½ÏòÉϵĹßÐÔ£¡
Ê×ÏÈ£¬ÈÃÎÒÃÇÀ´¿´¿´¼¸ÖÖ¶àÍ·ÅÅÁУº
5¡¢10¡¢30ÈÕ¾ùÏߣº5¡¢10¡¢30ÈÕ¾ùÏߣº30¡¢60¡¢90ÈÕ¾ùÏߣº
ÔÚͼһÖкÍͼ¶þÖÐÎÒÃDzÉÓõÄÊÇͬһÖÜÆڵľùÏߣ¬¼´¶¼ÊÇ5¡¢10¡¢30ÈÕ¾ùÏߣ¬ÎÒÃÇ¿ÉÒԹ۲쵽ÔÚͬһÖÜÆÚϵľùÏßÅÅÁÐÓÐÏà֮ͬ´¦£¬Ò²Óкܴó²»Í¬Ö®´¦£ºÍ¼Ò»ÖеÄ5ÈÕ¾ùÏß=10ÈÕ¾ùÏß¡¢30ÈÕ¾ùÏßƽ»¬ÓÅÃÀ£¬¶øÔÚͼ¶þÖеÄ5ÈÕºÍ10ÈÕ¾ùÏß²»¶ÏµÄÅö¼°30ÈÕ¾ùÏßÈ»ºóÉÏÉý£»
ÔÚͼÈýÖÐÎÒÃÇÑ¡ÓõÄÊÇ30¡¢60¡¢90ÈÕ¾ùÏߣ¬Ïà¶ÔÀ´Ëµ¾ùÏߵĶàÍ·ÅÅÁÐÒ²ÏԵúÜƽ»¬¡£
Ϊʲô»áÓÐÕâÑùµÄ²î±ðÄØ£¿Èç¹ûÄúÒªÊÇÈÏÕæÒ»µãµÄ»°£¬¾Í¿ÉÒÔ·¢ÏÖÔÀ´Ç°Á½Í¼µÄKÏß×ߵò»Ò»Ñù£¬Ò»¸öÒ»²¨Àµ½Í·£¬Ò»¸ö·Ö³É¼¸²¨Àµ½Í·£¬¶øÔÚͼÈýµ±ÖÐÎÒÃDzÉÓÃÁ˽ϳ¤ÖÜÆڵľùÏßϵͳ£¬´Ó¶øÔÚÒ»¶¨³Ì¶ÈÉϹýÂËÁËÕâÖÖÏÖÏ󣬾ßÌåÔÚʹÓõĹý³ÌÖУ¬Äú¿ÉÒª¶à×¢ÒâËüÃǵÄÇø±ð£¡
ºÃÁË£¬ÎÒÃÇÀ´¿´Ò»ÏÂÈçºÎ±àд£¬ÄõÚÒ»¸öΪÀý£¬¹Û²ìËüÃǵÄÌØÕ÷£º
5/10/30ÈÕ¾ùÏßÒÀ´Î´ÓÉ϶øϵÄÅÅÁУ¬ÕâÖÖÇé¿öά³ÖÒ»¶Îʱ¼ä£¬¼ÙÉèÎÒÃÇÕâÀﶨΪ4ÌìÒÔÉÏ£º
5/10/30ÈÕ¾ùÏßÒÀ´Î´ÓÉ϶øϵÄÅÅÁУº
AA£º=MA£¨CLOSE£¬5£©£»
BB£º=MA£¨CLOSE£¬10£©£»
CC£º=MA£¨CLOSE£¬30£©£»
T1£º=AA£¾BB¡¡AND¡¡BB£¾CC£»
ÒÔÉÏÇé¿öά³ÖÒ»¶Îʱ¼ä£¬¼ÙÉèÎÒÃÇÕâÀﶨΪ4ÌìÒÔÉÏ£º
COUNT£¨T1£¬4£©=4£»
COUNT£¨X£¬N£©±íʾͳ¼ÆÔÚNÌìÄÚÂú×ãÌõ¼þXµÄÓм¸Ìì¡£
×îÖյĽá¹û¾ÍÊÇÈçÏÂËùʾ£º
AA£º=MA£¨CLOSE£¬5£©£»
BB£º=MA£¨CLOSE£¬10£©£»
CC£º=MA£¨CLOSE£¬30£©£»
T1£º=AA£¾BB¡¡AND¡¡BB£¾CC£»
COUNT£¨T1£¬4¡¡£©=4
±àдÍê±Ï£¬ÎÒÃÇÔÚÉÏÃæµÄÀý×Óµ±ÖУ¬¾ÙµÄÊÇ×î¼òµ¥µÄÒ»¸ö£¬ÆäʵÄúÔÚ±àдµÄ¹ý³Ìµ±ÖУ¬»¹¿ÉÒÔ¼ÓÉÏһЩ±È½Ï׼ȷµØÃèÊö£¬ÒÔÈ¡µÃ¸üºÃµÄЧ¹û£¬ÀýÈçͬʱÈýÌõ¾ùÏßÏòÉÏ·¢É¢µÈ£¬µ±È»»¹ÓÐÄú×Ô¼ºµÄÐĵá£
=
µÚÊ®¶þ¿Î¡¡ÌÓ¶¥KÏßÐÎ̬֮»Æ»èÖ®ÐÇ
Ò»¡¢¸ÅÄîѧϰ
µ±Êг¡³öÏÖÒ»Ìõ´óÑôÏߺó£¬Í¨³£»á²úÉúÌø¿Õ¸ß¿ªµÄÇé¿ö£¬ÓÐʱ±ã»á³öÏÖÊ®×ÖÐÇ»òÀàËÆÊ®×ÖÐǵÄСÒõÏߣ¨Ð¡ÑôÏߣ©¡£ÁíÒ»ÖÖÏà·´µÄÇé¿öÊdzöÏÖÔÚÒ»Ìõ´óÒõÏߺó£¬ÔÚÕâÁ½ÖÖÇé¿öÏÂÐγɵÄÀàËÆÊ®×ÖÐǵÄKÏ߶¼±»³ÆΪ¡°ÐÇÐÍÏß¡±¡£
µ±¸ÃÐÎ̬³öÏÖÔÚÒ»¶ÎÉÏÉýÐÐÇéµÄµ±ÖУ¬¾ÍºÜÈÝÒ×ÐγÉËùνµÄ¾µäKÏßÐÎ̬»Æ»èÖ®ÐÇ¡£
¶þ¡¢±àÖƹý³Ì
ͨ¹ýÎÒÃÇÇ°ÃæµÄѧϰ£¬ÆäʵÒѾ¿ÉÒԱȽÏÇáËɵıàÖÆÕâ¸öÌõ¼þÁËÇ°ÈËÒѾÇåÎúµØ°ÑÕâ¸öÐÎ̬µÄ¾ßÌåÌØÕ÷ÃèÊö³öÀ´£¬Ê£ÏµĹ¤×÷¾ÍÊÇ°ÑÕâЩÌØÕ÷ÓÃÊý×Ö±íʾÕâ¾ÍÊÇÇ°ÃæÌáµ½µÄÁ¿»¯µÄ¹ý³Ì£¡
¸Ãͼ×éºÏÒ»¹²ÓÉÈý¸ùKÏߺϳɣ¬ÎÒÃÇ°´ÕÕÒÔϵIJ½ÖèÒ»²½Ò»²½µØÒ»±ßÑ°ÕÒÿÈÕKÏßµÄÌØÕ÷£¬Ò»±ß½øÐбàд£º
ΪÁ˽ṹ¼òµ¥Æð¼û£¬Ê×ÏȽ«¶þÌìµÄ¸ß¿ªµÍÊÕÓÃÖмä±í´ïʽ±í´ï³öÀ´£¬ÒòΪÎÒÃÇÔÚºóÃæµÄ±àд¹ý³ÌÖлá·Ö±ðʹÓõ½ÕâЩÊý¾Ý¡£
1¡¢½ñÈÕKÏߵģº¿ª¡a1£»¡¡a1£º=open£»
ÊÕ¡a2£¬¡¡a2£º=close£»
¸ß¡a3£»¡¡a3£º=high£»
2¡¢×òÌìKÏߵģº¿ª¡b1£»¡¡b1£º=ref£¨open£¬1£©£»
ÊÕ¡b2£¬¡¡b2£º=ref£¨close£¬1£©£»
¸ß¡b3£¬¡¡b3£º=ref£¨high£¬1£©£»
µÍ¡b4£¬¡¡b4£º=ref£¨low£¬1£©£»
3¡¢Ç°ÌìKÏߵģº¿ª¡c1£»¡¡c1£º=ref£¨open£¬2£©£»
ÊÕ¡c2£»¡¡c2£º=ref£¨close£¬2£©£»
¸ß¡c3£»¡¡c3£º=ref£¨high£¬2£©£»
µÍ¡c4£»¡¡c4£º=ref£¨low£¬2£©£»
4¡¢ÎÒÃǽ«»á·Ö±ðÃèÊö³öÈýÌìµÄKÏßÐÎ̬£¬È»ºó»ã×Ü£¬Ê×ÏÈÎÒÃǹ۲ì½ñÈÕKÏßµÄÌØÕ÷£¬½ñÌìÊÇÒ»¸ùµÍ¿ªµÍ×ߵĴóÒõÏߣ¬ÎÒÃǸøËüһЩÊý×ÖÉϵĶ¨Ò壺
a¡¢½ñÈÕ¿ªÅ̼ÛСÓÚ×òÈÕÊÕÅ̼ۣ»¡¡aa£º=a1£¼b2¡¡and
b¡¢½ñÈÕµÄÒõÏßʵÌå½Ï³¤£¬ÎÒÃÇÓÿªÅ̼ۺÍÊÕÅ̼ÛÏà±È£¬³¤¶È´óÓÚ4£¥£ºa1/a2£¾1¡£04£»
5¡¢×òÈÕKÏßµÄÌØÕ÷£¬ÊÇÒ»¸ùÊ®×ÖÐÎ̬µÄKÏߣ¬²¢ÇÒÔÚ×óÓÒÁ½¸ùKÏßÖ®ÉÏ£¬·Ö±ð±í´ïΪ£º
a¡¢×òÈÕÌø¿ª£¬¸ßÓÚÇ°ÌìµÄÊÕÅÌ£º¡¡bb£º=b1£¾c3
b¡¢×òÈÕÊÕÅÌͬÑùÔÚȱ¿ÚÖ®ÉÏ£º¡¡and¡¡b2£¾c3
c¡¢ÏßÐÎʵÌ峤¶ÈºÜС£¬Ò²¾ÍÊÇ×òÈÕ¿ªÅ̺ÍÊÕÅÌÖ®²î±È×òÈÕ¿ªÅ̵ÄֵСÓÚ0¡£01£ºand¡¡abs£¨b1¡b2£©/b1£¼0¡£01
d¡¢KÏßÓÐÉÏÏÂÓ°Ïߣ¬¿ÉÒÔ±íʾΪ×î¸ß¼ÛºÍ×îµÍ¼Û²»µÈÓÚÊÕÅ̼ÛÒ²²»µÈÓÚ¿ªÅ̼ۣºand¡¡b3£¾b1¡¡and¡¡b3£¾b2¡¡and¡¡b4£¼b1¡¡and¡¡b4£¼b2
e¡¢µ±ÈÕµÄ×î¸ß¼ÛΪ20ÌìÒÔÀ´µÄ×î¸ß¼Û£º¡¡and¡¡b3=hhv£¨high£¬20£©£»
6¡¢Ç°ÈÕKÏßµÄÌØÕ÷£º¹É¼Û´ó·ùÉÏÑ·ù¶È½ÏÇ°Ò»ÈÕÊÕÅ̸߳ö4£¥²¢ÇÒÊÕÅÌ´óÓÚ¿ªÅÌ£ºcc£º=c2/ref£¨close£¬3£©£¾1¡£04¡¡and¡¡c2£¾c1£»
×ÛºÏÑ¡¹ÉÌõ¼þ£º×îºóÎÒÃǽ«ÈýÌìµÄKÏßÌØÕ÷»áºÏÆðÀ´£¬ºÏ³ÉÒ»¸ö×îºóµÄÌõ¼þ¾ÍÊÇÓÉͼËùʾÄÚÈÝ£º¡¡aa¡¡and¡¡bb¡¡and¡¡cc
Èý¡¢Ñ¡¹ÉµÄ½á¹û
ÎÒÃÇ°ÑÉÏÃæµÄÌõ¼þ°´ÕÕÇ°ÃæÕ½ÚËù½²µÄ·½·¨´øÈëµ½·ÖÎö¼ÒµÄ¹«Ê½Ñ¡¹ÉÌõ¼þµ±ÖÐÈ¥¼ìÑé¡£
°´ÏÂͼ×÷Ϊ±ê×¼
ËÄ¡¢×ܽá
Æäʵµ½µ×ÊÇÄÑ»