ããã¯ãã¹ãã®æé©åã段éçã«è¡ãªãã
æ²ããã«ã3å¤ç®ã
lino 2010/05/27 21:10
æé©åãã¹ãã§å´åãè²»ããã¦ããã®ã§ãããã¯ä¾¿å©ããã§ãã
ãã©ã¡ã¼ã¿ãå¤ãã®ã§ç¸é¢æ§ã®ä½ããã©ã¡ã¼ã¿ãåå²ãã¦æé©åãå®è¡ãã¦ããã®ã§ããï¼Geneticã¯ä½¿ããããªãã®ã§ï¼ããããèªååã§ããªãã§ããããï¼
ãã©ã¡ã¼ã¿1ã3ãæé©åâæãPFãé«ãã£ãå¤ã使ã£ã¦ãã©ã¡ã¼ã¿4ã6ãæé©åâ以ä¸789ã»ã»ã»
tester\cachesã解æããå¿ è¦ãããããã§ãããä½ã¨ãå®ç¾ã§ããªãã§ããããï¼
EAãä½ãããã§ããã¨ããã©ã¡ã¼ã¿ãå¢ãã¦ãããå
¨ã¦ã®ãã©ã¡ã¼ã¿ã«å¯¾ãã¦å
¨æ°æ¤ç´¢ãããã¨ããã¨ãã³ãã¢ãã¤æéãæãããã¨ãããã¾ããæ¢ç´¢ç¯å²ãæ¸ããããã«ãGenetic Algorithm (GA)ã使ãã¨ããã©ã¡ã¼ã¿ã®æã¤æå³ãç¡è¦ãã¦ãååã©ã³ãã ã«æ¢ç´¢ããã¦ããããªãã«è¯ããããªçµæã«åæããã»ãããæ±ãã¦ãã¾ãã®ã§ãã¡ãã£ã¨ããããããªæãã§ãã
(ã¨ã¯è¨ãã¢ãã®ãGA èªä½ã¯ãããªãã«è³¢ãå½¹ã«ç«ã¤ã®ã§ãã..
EAãä½ãå´ã®ç«å ´ã®äººãªããlino ããã®ããã«èããã®ãç解ã§ããã¨æãã¾ãã
ãã¦ãå®éã®ããæ¹ã§ããâ¦
åºæ¬æ¹éã¯ãlinoããã®èããéãã§ãã
(1) æåã®ãã©ã¡ã¼ã¿ã»ããã§ãæé©åå®è¡
(2) ã¬ãã¼ãã解æãã¦ãæ大PF ã¨ãªãè¯å¥½ãã©ã¡ã¼ã¿ãåå¾
(3) è¯å¥½ãã©ã¡ã¼ã¿ã次ã®ãã©ã¡ã¼ã¿ã»ããã«ä¸æ¸ããã¦ãæé©åå®è¡
HTMLã¬ãã¼ãå ã«ãã©ã¡ã¼ã¿ãæ¸ããã¦ããã®ã§ãç¹ã«tester\cachesã解æããå¿ è¦ã¯ããã¾ããã
以ä¸ãç§ã試ããæé ã§ãã
(1) 3種é¡ã®æé©åé
ç®ã®ç°ãªã set ãã¡ã¤ã«ãç¨æãã¾ãã
macd_1.set
macd_2.set
macd_3.set
3ãã¡ã¤ã«ã tester 以ä¸ã«ç½®ãã¾ãã
(2) batch ãã©ã«ãã« MultiStepOptimizer.pl ãç½®ãã¾ãã
(3) MultiStepOptimizer.pl ãæ¸ãæãã¾ãã
âTestExpertParameters ã®è¡ã¯ãæ¸ãæããããã®ã§é©å½ã§æ§ãã¾ããã
(4) MultiStepOptimizer.pl ãå®è¡ããã¨â¦
1度ç®ã®æé©åã§ãPF=1.37 ã®ãã©ã¡ã¼ã¿ãé¸æããã2度ç®ã§ã¯PF=4.48 ã¨ãªããæå¾ã®æé©åã§ã¯ãPF=5.08 ã«ãªãã¾ãããç´ æ´ããããç¬ã
(å¿è«ãããã¯ããã ã®ãªã¼ãã¼ãã£ããã£ã³ã°ã§ã..orz
ä¸å¿è£è¶³ãã¦ããã¨ãå
¨åãã¦ãã¾ã£ãå ´åãPF=0 ãªã®ã§è¦æ³¨æã§ããPFãåä¸ã®å ´åã¯ããã¬ã¼ãæ°ã®å¤ãã»ããæ¡ç¨ãã¾ãããã®è¾ºãã®å¦çã¯Perlãåå¼·ãã¦ãé©å®ä¿®æ£ãã¦ãã ããã^^ï¼
ãããªè¨äºã®å¾ã§ã¢ã¬ã§ããâ¦
å®ã®æãç§èªèº«ã¯ãã¾ã StrategyTester ã§æé©åãããã¾ããã^^ï¼
ããã¯ãã¹ãã¯ä»®æ³Tick ã§ãçæ³çããã¼ã«ã¼ã ãããã¹ãçµæãªãã¦å½ã¦ã«ãªããªãããã£ï¼ï¼ã¨ãã話ã§ã¯ãªããTester ã«ä»å±ã®åçã«é¢ããè©ä¾¡å¤(å©çãåçãPFãDD..)ã«å¯¾ããæé©åã¯éå¹çã ã¨ä¿¡ãã¦ããããã§ãã
ãããªãã¨ãæ¸ãã¦ãç¸å ´æ¸ç±ã¯ã»ã¨ãã©ç¡ãã§ãããç¸å ´å¸«ãåçã®æ大åãæ±ããªããªãã¦ç解ã§ããªã..ã¨æãããããããã¾ãããç¸å ´ã®å¤åã«ä½ããã¿ã¼ã³ããã£ã¦ãããã«å¯¾ãã¦å£²è²·æ¦ç¥ãç«ã¦ã¦ãçµæãå©çãç©ã¿ä¸ãã..ã¨ããæ çµã¿ã§èããã¨ã売買æ¦ç¥ãç¸å ´ã«ããããã¦ããããå©çãå¾ãããã®ã§ãããã両è
ã«ã¯å¼·ãç¸é¢é¢ä¿ãããã¾ãããã
ã ããããå©çãå¾ãããããªãã°ããç¸å ´ã«ããããã¦ãããã¨ã¿ãªããã¨ãã§ãã¦ãåçã«é¢ããè©ä¾¡å¤ã§æé©åããã°è¯ãã®ã ..ã
â¦ã¨ä¸è¬çã«ã¯èãããã¦ããã¨æãã¾ããããå¼·ãç¸é¢é¢ä¿ãã¯ãå¿ ãããç¸é¢ä¿æ°ã1ã«ãªãã»ã©å¼·ãã¯ãªãç¹ã«åé¡ãããã¨ç§ã¯æã£ã¦ãã¾ããã¤ã¾ããç¸å ´ã«ããããã¦ããªãã¦ãåã¤ã¨ãã¯åã¤ããããããã¦ãã¦ãè² ããã¨ãã¯è² ãã¦ãã¾ãã¨ãããµã³ãã«ãè¥å¹²æ··ãã£ã¦ãã¨ãããã¨ã§ãããããèãã¨ãå¤ãã®äººã¯ãããããã£ãå¶ç¶æ§ãæé¤ããçºã«ããã¬ã¼ãåæ°ãå¢ããã¦çµ±è¨çæææ§ãæããããããï¼ãã±ã¼ãã¨ä¸»å¼µããã¯ãã§ããã§ããåæ°ãå¢ããã¨ãããã¨ã¯ããã¬ã¼ãè©ä¾¡æéãé·ããªãããã§ãããã«ã¯ããããªç¸å ´ã®ç¶æ (ã¬ã¸ã¼ã ã¨å¼ãã§ãè¯ãã§ãããããã¾ã§å¤§ãããªãã®ã§ã¯ãªãã®ã§ããã¬ã¸..ããªï¼^^;)ãå«ã¾ãã¦ãã¾ããããããªç¸å ´ã«å¯¾ãã¦ããããªãã«ãããããæ¦ç¥ã£ã¦ãåã ã®ç¸å ´ã«å¯¾ãã¦ã¯å¼·åºã«ããããããã«ãªãã¨æãã¾ããï¼
ã¾ããæãæããªãã¯äººããããã§ãããç§ã®å ´åã¯ãé·æã«ããã£ã¦ï¼ãã©ã¡ã¼ã¿åºå®ã§ï¼æ©è½ããæ¦ç¥ãæ¢ãæ¹ãéå¹çã ã¨æããã®ã§ãå¦ä½ã«çæéã ãæ©è½ããæ¦ç¥ãç´ æ©ãè¦ã¤ãããï¼ã«ä¸»ç¼ãç½®ãã¦ãã¾ããçæéï¼å°ãªããã¬ã¼ãåæ°ã§ææãªæ¦ç¥ãç«ã¦ããã¨ããã¨ãåçã«é¢ããè©ä¾¡å¤ã ãã§ã¯ãã¾ãã«æ å ±ãå°ãªããã¦ãåã¡è² ãã®é åºããè² ãã®ç¨®é¡(ã¨ã³ããªã¼å¾ä¸åº¦ããã©ã¹ã«ãªããã«è² ãããã¨ããTPããããã¾ã§è¡ã£ã¦å¾ã ã«ä¸ãã£ã¦è² ããã¨ã) ã®ãããªã諸ã ã®ä»å æ å ±ãå«ããç¬èªã®è©ä¾¡é¢æ°ã使ã£ã¦æé©åãã»ã»ã»ã¡ãã£ï¼æåããï¼ã©ããã¦ããªãããã«ã»ã»ã»ã»ãã°ãµãã»ã»ã»ã°ãã£....