£¨26£©¡¢½×¶ÎÈõÊƹÉ
¡¡¡¡¡¡a:=sum(if(date=n,indexc,0),0);
b:=sum(if(date=n1,indexc,0)0);
e:=sum(if(date=n,c,0),0);
f:=sum(if(date=n1,c,0),0);
((f-e)/e)<((b-a)/a);
×¢£º¸Ã¹«Ê½ÇóµÄÊÇnÈÕ-n1ÈÕÖ®¼äÕÇ·ùµÍÓÚ´óÅ̵ĹÉƱ¡£n¡¢n1²ÎÊýµÄ±í´ï¸ñʽΪyymmdd£¬×¢ÒâÔÚ2000ÄêÇ°µÄ±í´ïΪÄê·ÝµÄºóÁ½Î»£¬ÀýÈç1999ÄêΪ99£¬´Ó2000Ä꿪ʼÒÔ100ÒÀ´ÎÏòºóÀÛ¼Ó£¬ÀýÈç2001Äê9ÔÂ14ÈÕΪ1010914£¬indexcº¯Êý±íʾͬÆÚ´óÅ̵ÄÊÕÅ̼ۣ¬¸Ãº¯Êý¶Ô·Ö±Ê³É½»·ÖÎöÖÜÆÚÎÞЧ¡£
£¨27£©¡¢´óÅÌͬ²½ ¡¾½»Ò×֪ʶÊÕ¼¯ÕûÀí¡¿
¡¡¡¡¡¡count((c>o and indexc>indexo) or (c
×¢£ºº¬ÒåΪnÖÜÆÚÖÐÓë´óÅÌ×ßÊÆÏàͬ£¨Í¬ÊÕÒõÏß»òͬÊÕÑôÏߣ©µÄÀý³¬¹ým%¡£´Ë´¦µÄo²»ÊÇÊý×ÖµÄÁ㣬¶øÊÇ¿ªÅ̼ÛopenµÄÊ×д×Öĸo¡£
£¨28£©¡¢nÈÕÄÚÇ¿ÊƹÉ
a:=(c-ref(o,n))/ref(o,n);
b:=(indexc-ref(indexo,n))/ref(indexo,n);
a>b and a/b>=m;
×¢£ºnÈÕÄÚ¸ö¹ÉÕÇ·ù´óÓÚµÈÓÚ´óÅÌÕÇ·ùµÄm±¶¡£
ÐÎ̬ÌØÕ÷Ñ¡¹É¹«Ê½µÄ±àÖÆ
£¨1£©¡¢¾ùÏ߶àÍ·ÅÅÁÐ
¡¡¡¡¡¡a1:=ma(c,n1);
a2:=ma(c,n2);
a3:=ma(c,n3);
a4:=ma(c,n4);
count(a1>a2 and a2>a3 and a3>a4,3)=3 and isup;
×¢£ºn1¡¢n2¡¢n3¡¢n4jÈÕ¾ùÏ߳ʶàÍ·ÅÅÁУ¬isupÒ²¿ÉÒÔÓÃclose>open±íʾ¡£
£¨2£©¡¢¾ùÏß¿ÕÍ·ÅÅÁÐ
¡¡¡¡¡¡a1:=ma(c,n1);
a2:=ma(c,n2);
a3:=ma(c,n3);
a4:=ma(c,n4);
count(a1
¡¡¡¡¡¡ref(close,2)/ref(open,2<0.95 and ref(open,1)1.05 and close>ref(close,2);
×¢£ºÔ糿֮ÐÇ£¬Õâ·NÐÎ̬ºÍ½Ð·¨×ÔÈ»ÊǺóÊÐÏòºÃ£¬ÎªÂò½øÐźš£Ô糿֮ÐÇÓÉÈý¸ùKÏß×é³É£¬Æä˳ÐòÊÇ£º
¡¡¡¡¡¡µÚÒ»ÌìÔÚϵø¹ý³ÌÖÐÒÑÐγÉÒ»¸ùÒõÏߣº
¡¡¡¡¡¡ref(close,2)/ref(open,2<0.95
µÚ¶þÌì³ÊÁÑ¿Úϵø£¬KÏßʵÌå½Ï¶Ì£¬¹¹³ÉÐǵÄÖ÷Ì岿·Ö£¬ÒõÏß»òÑôÏß¾ù¿É£¬ÓÐÎÞÉÏÏÂÓ°Ïß¾ù²»ÖØÒª¡£
¡¡¡¡¡¡ref(open,1)¡¡¡¡¡¡¹Ø¼üÊǵÚÈý¸ùKÏß±ØÐëÊÇÑôÏߣ¬ÇÒÆ䳤¶ÈÖÁÉÙÒªÉýÖÁµÚÒ»¸ùÒõÏßʵÌ壨Èç¹ûÄܹ»“°üÈÝ”µÚÒ»¸ùÒõÏßÔò×îºÃ²»¹ýÁË£©
¡¡¡¡¡¡close/open>1.05 and close>ref(close,2)
£¨4£©¡¢Ç¿ÊÆÕûÀí
a1:=abs(close-open)/open<0.015;
a2:=count(a,m)=m;
a3:=ref(o,m)1+n/100;
a2 and a3;
×¢£ºÒ»¸ùʵÌ峬¹ýnµÄ³¤Ñô£¬ºóÃæ¸úm¸öKÏßʵÌå²»³¬¹ý1.5£¥µÄKÏß¡£
£¨5£©¡¢¸ß¿ª´óÒõÏß
¡¡¡¡¡¡open>close and open/ref(c,1)>=1+m/100 and close/open<=1-n/100;
×¢£ºÌø¿Õ¸ß¿ªm%£¬µ±Èչɼ۽ϿªÅ̼۵ø·ù´óÓÚn¡£¹É¼Û¾¹ýÒ»¶Î³ÖÐøÅÊÉýÖ®ºó£¬Ä³Ò»ÈÕͻȻÌø¸ß¿ªÅÌ£º
¡¡¡¡¡¡open/ref(c,1)>=1+m/100
¡¡¡¡¡¡ºó¹É¼Ûһ·ÏÂÐУ¬Î²ÊÐÒÔ½Ó½ü×îµÍµãÊÕÊУº
¡¡¡¡¡¡close/open<=1-n/100
¡¡¡¡¡¡´ËÐźųöÏÖ£¬ÍùÍùÒâζ׏ɼÛÒÑÐγɶÌÆÚÍ·²¿£¬Ó¦×¢Òâ»Ø±Ü·çÏÕ¡£
£¨6£©¡¢µÍ¿ª´óÑôÏß ¡¾½»Ò×֪ʶÊÕ¼¯ÕûÀí¡¿
¡¡¡¡¡¡open
×¢£ºÌø¿ÕµÍ¿ªm%£¬µ±Èչɼ۽ϿªÅ̼ÛÕÇ·ù´óÓÚn£¬ÆäËûÃèÊöÇë²Î¼û£¨5£©¡£
£¨7£©¡¢»Æ»èÖ®ÐÇ
¡¡¡¡¡¡ref(close,2)/ref(open,2)>1.03 and ref(open,1)>ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.02 and close/open<0.97 and close×¢£º»Æ»èÖ®ÐDZíʾ¹É¼Û»ØÂ䣬ÊÇÂô³öÐźţ¬Ó¦ËÅ»úÅ×»õ¡£Ä»ÐÇͬÑùÓÉÈý¸ùKÏß×é³É£¬ÆäÐÎ̬ºÍ³¿ÐÇÕýºÃÏà·´£º
¡¡¡¡¡¡µÚÒ»Ìì¹É¼Û¼ÌÐøÉÏÉý£¬À³öÒ»¸ùÑôÏߣº
¡¡¡¡¡¡ref(close,2)/ref(open,2)>1.03
¡¡¡¡¡¡µÚ¶þÌ첨¶¯½ÏС£¬ÐγÉÒ»¸ùСÑôÏß»òСÒõÏߣ¬¹¹³ÉÐǵÄÖ÷Ì岿·Ö£º
¡¡¡¡¡¡ref(open,1)>ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.02
¡¡¡¡¡¡µÚÈýÌìÐγÉÒ»¸ù°üÈݵڶþÌì²¢ÑÓÉìÖÁµÚÒ»ÌìÑôÏßʵÌ壺
¡¡¡¡¡¡close/open<0.97 and close£¨8£©¡¢Ìø¿Õȱ¿Ú
¡¡¡¡¡¡highref(high,1);
×¢£º´ÓÄÚÈÝÉÏ¿´£¬·Ö±ðÊÇÏòÏÂÌø¿Õȱ¿ÚºÍÏòÉÏÌø¿Õȱ¿Ú¡£
£¨9£©¡¢¾ùÏß½ð²æ
¡¡¡¡¡¡a;=ma(c,5);
b:=ma(c,10);
cross(a,b);
×¢£ºÇ°¶þ¾äÊÇ5¡¢10ÈÕ¾ùÏߣ¬crossÊǽ»²æº¯Êý£¬cross(a,b)±íʾ5ÈÕ¾ùÏßÓë10ÈÕ¾ùÏß½ð²æ¡£
£¨10£©¡¢¾ùÏßËÀ²æ
¡¡¡¡ a;=ma(c,5);
b:=ma(c,10);
cross(b,a);
×¢£ºÇ°¶þ¾äÊÇ5¡¢10ÈÕ¾ùÏߣ¬crossÊǽ»²æº¯Êý£¬cross(b,a)±íʾ5ÈÕ¾ùÏßÓë10ÈÕ¾ùÏßËÀ²æ¡£
£¨11£©¡¢¾ùÏßÕ³ºÏ ¡¾½»Ò×֪ʶÊÕ¼¯ÕûÀí¡¿
ma1:=ma(c,5);
ma2:=ma(c,10),
ma3:=ma(c,20);
¡¡¡¡¡¡p1:=abs(ma1-ma2)+abs(ma2-ma3);
p1/c
×¢£ºÇ°Èý¾äÊÇÈý¸ù¾ùÏߣ¬p1ÊǵÚÒ»¸ù¾ùÏß¼õµÚ¶þ¸ù¾ùÏß²îµÄ¾ø¶ÔÖµÓëµÚ¶þ¸ù¾ùÏß¼õµÚÈý¸ù¾ùÏß²îµÄ¾ø¶ÔÖµÖ®ºÍ£¬×îºóÒ»¾äÊÇp1ÓëÊÕÅ̼۵ıÈֵСÓÚÒ»¶¨±ÈÂÊm%(Ò»°ã¸Ã±ÈÂÊΪ2£¥ÒÔÏ£¬Í¬Ê±Ç°¶þ¾ùÏß½ñÈÕ±È×òÈÕÉÏÇÌ¡£
Îå²ÊKÏßÓë½»Ò×ϵͳָ±êµÄ±àÖÆ·½·¨
Ò»¡¢ Îå²ÊKÏß
1¡¢ Îå²ÊKÏß¼ò½é
¼òµ¥µØ˵Îå²ÊKÏߣ¬¾ÍÊǶÔÓÚÎÒÃÇÊÂÏÈÃèÊöºÃµÄKÏßÐÎ̬£¬´óÖǻ۽«×Ô¶¯µØ¸øÎÒÃÇÕÒ³öÀ´£¬Í¬Ê±¶ÔÂú×ãÌõ¼þµÄKÏßÐÎ̬¸³ÓÚÑÕÉ«£¬ÒÔÇø±ðÓÚÆäËûµÄKÏß¡£
ÒÀ¾ÝK ÏßµÄÐÎ̬£¬ÎÒÃǽ«Îå²ÊKÏß·ÖΪ“ÉÏÕÇ”¡¢“ϵø”¡¢“·´×ª”Èý´óÀà¡£
2¡¢ Îå²ÊKÏß±à¼Ê±³£Óõĺ¯Êý
£¨1£©¡¢BACKSET(X,N)
Îå²ÊKÏß¾ÍÊǶÔÂú×ãÌõ¼þµÄKÏßÐÎ̬¸³ÓÚÑÕÉ«£¬ÔÚÕâÀÎÒÃǾÍÐèÒª¸³Öµº¯ÊýBACKSET¸³ÓèÂú×ãÌõ¼þµÄKÏßʱ¶ÎÒÔ²»Í¬µÄÑÕÉ«£¬Çø·Ö²»Âú×ãÌõ¼þµÄÆäËüʱ¶ÎµÄKÏß¡£
¡¡¡¡¡¡º¯ÊýBACKSET(X,N)ÖУ¬XÊÇÓÉÂß¼ÅжÏÓï¾ä×éºÏµÄÒ»¸ö×ÛºÏÌõ¼þ£¬NΪÄãÒâÓû¸³ÓèÑÕÉ«µÄʱ¼ä³¤¶È£¬¸Ãʱ¼ä³¤¶ÈµÄÈ¡Öµ·¨Îª“´Óµ±Ç°ÖÜÆÚ¿ªÊ¼ÏòÇ°µ½N¸öµ±Ç°ÖÜÆÚ”¡£
¡¡£¨2£©¡¢¸ü¸ÄÑÕÉ«
¡¡¡¡¡¡Èç¹û²»½øÐÐÈκεÄÑÕÉ«É趨£¬ÏµÍ³½«ÒÔ»ÆÉ«ÏÔʾÎå²ÊKÏߣ¬Ä¿Ç°ÎÒÃÇÔÚÿ¸öÖ¸±êÖÐÒÔºìÉ«ÏÔʾÎå²ÊKÏß¡£Èç¹ûÒª¸ü¸ÄÑÕÉ«£¬Ö»ÐèÒªñ©Ö¸±êÖГCOLORRED”¸ÄΪÆäËûÑÕÉ«¼´¿É¡£
3¡¢ Îå²ÊKÏߵıàÖÆ·½·¨
Îå²ÊK ÏߵıàÖƲ¢Ã»ÓкÍÇ°Ãæ½éÉܵÄÆäËû¹«Ê½ÓкܴóµÄÇø±ð£¬Ò»°ãµÄ¹«Ê½±à¼ÊÇ×÷
ΪÌض¨µÄÖ¸±êÀ´ÏÔʾ£¬Îå²ÊKÏß½«Âú×ãÌõ¼þµÄÁ¬ÐøKÏßÐÎ̬¸³ÓèÑÕÉ«£¬Çø±ðÓÚÆäËüµÄKÏߣ¬ÔòÊÇ°ÑÂú×ãÉ趨Ìõ¼þµÄ¸ö¹ÉÒÔÆäÃǵÄÑÕÉ«±êÃ÷¡£
£¨1£© Ñô°üÒõÎå²ÊKÏߵıàÖÆ
ÕâÀïµÄÑô°üÒõ¾ÍÊÇ˵ijһÌìµÄÑôÏß½«Ç°Ò»ÌìµÄÒõÏßÈ«²¿°üÈÝÆðÀ´£¬Ê¹µÃÔÚKÏß×é
ºÏÉϳöÏÖǰСºó´óµÄÐÎ̬¡£¸Ã¶¯Ì¬±íÃ÷Ç°ÈÕËùÓмÛλÂò½ø¶øδ³ö¾ÖÕ߶¼ÄÜ»ñÀû£¬´Ó¶ø´ó¹ÄÎèÁËÈËÆø£¬Îª´ËºóµÄ³ÖÐøÉÏÉýµì¶¨ÁË»ù´¡£¬ÊǵäÐ͵ĵײ¿Ðźš£
ÔÀí£ºÄ³Ò»ÌìµÄÑôÏß½«Ç°Ò»ÌìµÄÒõÏßÈ«²¿°üÈÝÆðÀ´¡£
Îå²ÊK Ïߵı༣º
REF(OPEN,1)>REF(CLOSE,1) ÉÏÒ»½»Ò×ÈÕÊÕÒõÏß¡£
CLOSE>REF(OPEN,1) ÊÕÅ̼۸ßÓÚÉÏÒ»½»Ò×ÈÕ¿ªÅ̼ۡ£
OPENHIGH>REF(HIGH,1) ×î¸ß¼Û¸ßÓÚÉÏÒ»½»Ò×ÈÕ×î¸ß¼Û¡£
LOWCLOSE>OPEN ÊÕÑôÏß
(CLOSE-OPEN)>(EMA((HIGH-LOW),N))
ΪÁ˱ÜÃâСÒõСÑôµÄ“Ñô°üÒõ”£¬ÎÒÃÇÉ趨·ù
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¶È³¬¹ýÊг¡N¸ö½»Ò×ÈÕÄÚƽ¾ùÕÇ·ù¡£
¡¡¡¡¡¡¡¡¡¡COLORRED Îå²ÊKÏßÑÕɫΪºìÉ«¡£
¡¡¡¡¡¡¡¡ÄÇô£¬ÕûÌåµÄ¹«Ê½Îª£º
¡¡¡¡¡¡¡¡¡¡BACKSET(ÎÒÃǼٶ¨µÄÌõ¼þ,2),COLORRED;
¼´£º
¡¡¡¡¡¡¡¡BACKSET (REF(OPEN,1)>REF(CLOSE,1) AND CLOSE>REF(OPEN,1) AND OPENREF(HIGH,1) AND LOWOPEN AND (CLOSE-OPEN)>(EMA((HIGH-LOW),N)),2),COLORRED;