วันเสาร์ที่ 26 ตุลาคม พ.ศ. 2556

+++ แนวคิดการลงทุนแบบเน้นคุณค่า ดร.นิเวศน์ เหมวชิรวร

แนวคิดการลงทุนแบบเน้นคุณค่า ดร.นิเวศน์ เหมวชิรวรากร
  • ผลตอบแทนทบต้นทำได้ 15% ต่อปีก็ถือว่าเยี่ยมแล้ว อย่าไปตั้งเป้ารวยเร็ว 
  • ตั้งเป้าเกินตัว บัฟเฟตต์ได้ปีละ 20 กว่า% แต่เป็นระยะเวลาที่ยาวนานมาก 
  • บางคนตั้งเป้ารวยเร็วเช่น ปีละ 100% แบบนี้อันตราย


การซื้อขายหุ้น 2 แบบ
   1.Value Investor ซื้อหุ้นเหมือนซื้อธุรกิจ รวยตามธุรกิจที่เติบโต พบคนล้มเหลวน้อยกว่า
   2. Stock Trader ใช้ข้อมูลพื้นฐานมาเก็งกำไร พบคนล้มเหลวที่ลงทุนด้วยวิธีนี้มากกว่า

     ดร.นิเวศน์ ซื้อหุ้นเหมือนซื้อธุรกิจ เช่น มาม่า คนกินเป็น 10 ปี เปลี่ยนแปลงยาก  สามารถปรับราคาได้ เสริมสุข ตอนนั้น market cap 2000 ล้าน เงินสด 500 ล้าน ยอดขาย 15000 ล้าน กำไร 500 ล้าน คิดว่า 3 ปีก็คืนทุน ราคาถูกมากๆ Intrinsic Value มูลค่าที่จริง ดร.นิเวศน์ให้นิยามว่า “มูลค่าที่เราห้ามขาย”  ปัจจุบัน สไตล์เล่นหุ้นของคนส่วนใหญ่ จะเน้นการ ขุดหุ้น คล้ายๆ ไปหาหอยที่ดอนหอยหลอด คือ พอกำไรก็ขาย ไปขุดหุ้นตัวใหม่ จนปัจจุบันหาหุ้นที่จะขุดยากขึ้น เหมือนดอนหอยหลอด ก็ไม่ค่อยจะมีหอยแล้ว เกรแฮม เลือกหุ้นคุณภาพไม่ต้องดีมาก ขอให้ราคาถูกมากๆ บัฟเฟตต์เลือกหุ้นคุณภาพดีมาก ยอมจ่ายในราคายุติธรรม 

ลักษณะของกิจการที่มีคุณภาพ

1.กำไรสม่ำเสมอ เพิ่มขึ้นช้าๆ มานาน (เพิ่มเร็วต้องระวัง)
2.หนี้น้อย
3.Net profit margin สูง ROE สูง
4. ผู้บริหารโปร่งใส ไม่โกง ไม่เอาเปรียบ
5.ผู้บริหารไม่ขยายงานมั่วไปหมด
6.มองประโยชน์ของผู้ถือหุ้นทุกคนเป็นหลัก

ยุคปัจจุบัน Brand ลดความสำคัญลงมาก สิ่งที่สำคัญมากขึ้นคือ เรื่อง ความสะดวกสบาย ยกเว้น brand แฟชั่น เช่น หลุยส์ วิตอง ยังคงมีสำคัญคุณภาพของธุรกิจแต่ละประเภท

1. ธุรกิจที่มี brand แข็งแกร่ง ขึ้นราคาได้ ไม่มีสินค้าทดแทน เป็นผู้นำตลาด
2. ธุรกิจสัมปทาน ที่ดีควรจะจ่ายสัมปทานน้อย มีคู่แข่งน้อย ไม่ถูกควบคุมราคา มีกำไรดี
3. สถาบันการเงิน แบงค์ดี เงินทุนไม่ดี หลักทรัพย์ไม่ดี
4. สื่อสาร มือถือดี โทรศัพท์พื้นฐานไม่ดี ทีวีดี
5. สาธารณูปโภค ไฟฟ้าดี น้ำดี ทางด่วนไม่ดี (ลงทุนเยอะ ปริมาณรถเริ่มอิ่มตัว)
6. ธุรกิจมีจุดเด่น มีเทคโนโลยีเหนือคู่แข่ง มีความสามารถในการผลิตสูง
7.ธุรกิจโภคภัณฑ์ เป็นบริษัทส่วนใหญ่ในตลาดหลักทรัพย์ ผลการดำเนินงานไม่สม่ำเสมอ  ไม่เด่น ลูกค้าไม่ยิดติดยี่ห้อ ไม่มีความแตกต่าง ราคาเป็นไปตามตลาดโลก

ข้อสังเกต
     คนที่รวยมากๆ ส่วนใหญ่จะเป็น เจ้าของธุรกิจที่ดีมากๆ และคงอยู่มานาน ดร.นิเวศน์ เวลาประเมินมูลค่ากิจการ ท่านจะดู maket cap เป็นหลัก ว่าสมศักดิ์ศรีหรือไม่ การใช้ PE ใช้กับกิจการที่ทำกำไรเติบโตต่อเนื่อง ไม่เหมาะกับหุ้นวัฎจักรที่บางครั้งกำไรลดลง ธุรกิจที่เติบโตด้วยการลงทุนหนักๆ ไม่ดี ธุรกิจที่ดีควรขยายโดยการลงทุนน้อยๆ

การลงทุนระยะยาว

   1. ต้องอาศัย การรู้กว้าง + รู้จริง มองในภาพใหญ่ คิดแบบเจ้าของธุรกิจ ขยายได้อีกมากแค่ไหน เช่น ธุรกิจขนาดช้าง แต่ตอนนี้น้ำหนักแค่ 40 kg ก็น่าลงทุน แต่ถ้าธุรกิจเป็นแมว แต่ตอนนี้น้ำหนัก 40 kg ไม่น่าลงทุน
   2. มี sense มองแนวโน้มธุรกิจ เช่นประเทศกำลังพัฒนาต้องใช้พลังงานมาก ประเทศพัฒนาแล้วเน้นความสะดวกสบาย บันเทิง ธุรกิจโรงงาน พวก OEM ลำบาก เพราะแข่งขันทั่วโลกบางครั้งการซื้อหุ้น โดยฟังจากคนรอบข้างก็มีประโยชน์ เช่น ดร.นิเวศน์เคยฟังลูกสาวแนะนำว่า google ดี Apple ดี Sumsung ดี (แต่ท่านยังไม่ได้ซื้อ) เพราะคนเหล่านั้นอยู่ในสังคมที่ได้สัมผัสจริงๆ ใช้งานจริงๆ และไม่มีส่วนได้เสียในตลาดหุ้น


คำถามที่ต้องระวัง
  1. ขายหุ้นเมื่อไหร่ คำตอบคือขายเมื่อ Over Value แล้วอะไรคือ Over Value ถ้าลงทุนตลอดชีวิต เลือกกิจการดีเยี่ยม เติบโตต่อเนื่อง ก็ไม่จำเป็นต้องขาย
  2. การใช้PEG ต้องระวัง ถ้า PE ข้อมูลผิด G ข้อมูลผิด คำนวณสุดท้ายมันก็ผิดหมด (แต่อาจจะ work ก็ได้เพราะทุกคนก็ใช้เหมือนกัน)
  3. PE อาจจะไม่มีความหมายมากนัก ให้ดูที่ คุณภาพกิจการ + growth ในระยะยาว
  4. ตัวเลขต่างๆไม่ต้องดูมาก เน้นที่การแข่งขันใครจะชนะ ใครแข็งแกร่งกว่ากัน
  5. การลงทุน perception สำคัญที่สุด ดร.นิเวศน์ดู maket cap มากที่สุดในการประเมินมูลค่าหุ้น


ความเข้าใจผิดของคนที่ไม่ได้ลงทุนแบบวีไอ
  1. นักลงทนขาใหญ่ มืออาชีพ นักลงทุนสถาบัน ย่อมเก่งกว่านักลงทุนสมัครเล่น >> ไม่จริง เพราะขึ้นกับผลประกอบการบริษัท
  2. การลงทุนต้องมีเวลาตามหุ้นมากๆ มีความรู้ในการวิเคราะห์สูง มีเงินมากพอ
  3. การลงทุนในหุ้น เป็นเรื่องของการเก็งกำไร คนชอบเสี่ยง ได้เสียเร็ว ถ้าไม่อยากหมดตัวอย่าซื้อหุ้น
  4. เล่นหุ้นระยะยาว มีความเสี่ยงสูง การเล่นหุ้นต้องไว เข้าเร็วออกเร็ว


คำถามหลังอบรม
  1. ราคาที่เหมาะสม ตาม ทฤษฎีตลาดมีประสิทธิภาพ Efficient market 
  2. ดร.นิเวศน์ บอกว่า อย่าไปประเมินราคาตลาดต่ำไป แล้วเชื่อมั่นราคาที่เราประเมินมูลค่าหุ้นด้วยตัวเราเองมากเกินไป เพราะราคาตลาดที่ปรากฏเป็นราคาที่ทุกคนในตลาดให้ราคา ณ ขณะนั้นดร.นิเวศน์ เปลี่ยนจาก CPN มาเข้า BigC เพราะช่วงนั้น bigC จะมีการเปลี่ยนแปลงครั้งใหญ่ ซื้อคาร์ฟู โดยที่ไม่เพิ่มทุน หาเงินกู้ได้ ทำให้ลดค่าใช้จ่ายผู้บริหาร(คาร์ฟูเดิม) ลดค่าโฆษณาซึ่งน่าสนใจมาก
  3. เปรียบเทียบตอนดัชนี 1700 และ 1300 ในตอนนี้ สิ่งที่เหมือนกันคือ หุ้น IPO เยอะและวิ่งแรง 2. มีการเทคโอเวอร์มาก สัญญาณส่งออกชะลอตัว แต่สิ่งที่แตกต่างคือ หนี้บริษัทจดทะเบียนตอนนี้น้อยกว่าตอนนั้นมาก และนักลงทุนมีหลายกลุ่มเพิ่มขึ้น มีความรู้เพิ่มขึ้น (ดร.สรุปในบทความล่าสุด เดจาวู) ช่วงนี้ตลาดหุ้นขึ้นมาเยอะ ดร.ท่านยังไม่ได้ทำอะไรกับพอร์ต แต่หาโอกาสลงทุนต่างประเทศในกิจการคุณภาพดีๆ ยังไม่แพง
  4. เปรียบเทียบเมื่อก่อนกับตอนนี้ ดร.นิเวศน์ต้องใช้เวลาวิเคราะห์หุ้นเพิ่มขึ้น น้อยลงหรือไม่อย่างไร … ท่านบอกว่า ท่านก็ทำเหมือนเมื่อก่อน ปกติไม่วิเคราะห์มาก แต่เน้นสังเกตในการใช้ชีวิตประจำวัน สังเกตการณ์เปลี่ยนแปลง แล้วคิดเปรียบเทียบเป็นมุมมองของการแข่งขัน ใครจะชนะ/แพ้

ขอบคุณแหล่งที่มา : http://thaistockinvestor.com 

+++ นิสัยเซียน โดย ดร.นิเวศน์ เหมวชิรวรากร

     เซียนหุ้นชั้นนำของโลกแต่ละคนมักมีคุณลักษณะที่แตกต่างกัน แต่ละคนมักมีเอกลักษณ์ของตนเอง แต่ศึกษาดูจะพบว่าเซียนเหล่านั้นมักมีนิสัยเหมือนกันหรือคล้ายคลึงกันในหลายๆเรื่อง และต่อไปนี้คือนิสัยที่ผมคิดว่าเราควรศึกษาและประยุกต์ใช้ ถ้าเราอยากจะเป็น “เซียน” บ้าง

เรื่องแรก ก็คือ เซียนตัวจริงนั้น เวลาลงทุน เรื่องที่คิดมากที่สุดกลับไม่ใช่ว่าจะทำกำไรได้มหาศาลแค่ไหน แต่เป็นว่า จะรักษาเงินต้นเอาไว้ได้อย่างไร และนี่ก็คือกฎข้อหนึ่งและข้อสองของ วอเร็น บัฟเฟตต์ ซึ่งบอกว่า หลักการลงทุนที่สำคัญที่สุดก็คือ อย่าขาดทุน และอย่าขาดทุน

เรื่องที่สอง ก็คือ การลงทุนนั้น เซียนแต่ละคนจะมีหลักปรัชญา หลักการ และวิธีการลงทุนที่ชัดเจนเป็นแบบฉบับของตนเอง ไม่มีการมั่วหรือเป็น “มวยวัด” สิ่งต่างๆเหล่านั้นถูกพัฒนาและทดสอบมาเป็นอย่างดีเป็นเวลายาวนาน และจะไม่เปลี่ยนแปลงอย่างรวดเร็วกลับไปกลับมา

เรื่องที่สาม ก็คือ เซียนหุ้นนั้นไม่ชอบความเสี่ยงแต่ชอบความแน่นอน และความ “ได้เปรียบ” เวลาจะลงทุนอะไรมักจะคิดถึงโอกาสชนะว่ามีสูงกว่าโอกาสที่จะแพ้มากน้อยแค่ไหน ถ้าโอกาสชนะมากกว่าแพ้เพียงเล็กน้อย เขามักจะ “ไม่เล่น” เพราะฉะนั้น เราจะไม่เห็นคนเหล่านี้เล่นรูเล็ตหรือเข้าคาสิโนเพื่อการพนันซึ่งโอกาสชนะมี แค่ 30-40% ขณะที่โอกาสแพ้อยู่ที่ 60-70% แต่การลงทุนที่โอกาสชนะสูงมากๆนั้นมีไม่มาก ดังนั้นเซียนจึงมักไม่เล่นหรือลงทุนบ่อยนัก

เรื่องที่สี่ ก็คือ เซียนนั้นลงทุนในสิ่งที่ตนเองรู้จักดี มีการวิเคราะห์และคิดเอง ไม่เชื่อคนอื่นโดยไม่ได้พิจารณาด้วยตนเองอย่างลึกซึ้ง ในทางตรงกันข้าม เซียนจะไม่ลงทุนในสิ่งที่ตนเองไม่เข้าใจ หรือการลงทุนนั้นไม่เข้าเงื่อนไขที่ตนเองกำหนด หรือตนเองไม่สบายใจที่จะลง ตัวอย่างเช่นหุ้นที่มีค่า PE และ/หรือ PB สูงเกินไป หุ้นที่ผู้บริหารไม่น่าไว้วางใจ เป็นต้น แม้ว่าหุ้นเหล่านั้นอาจจะทำกำไรให้ได้ง่ายและเร็วในบางสถานการณ์

นิสัยที่ห้า ก็คือ เซียนส่วนใหญ่จะไม่ “กระจายความเสี่ยง” โดยการกระจายการถือหุ้นมากเกินไป เซียนมักจะมีหุ้นหลักตัวใหญ่ๆในพอร์ตซึ่งเป็นตัวที่จะกำหนดผลงานหรือความเป็นความตายในการลงทุนเพียงไม่กี่ตัวแม้ว่าเขาจะมีหุ้นย่อยๆเป็น 10 หรือ 100 และแม้แต่ 1,000 ตัว อย่างพอร์ตของ ปีเตอร์ ลินช์ หุ้นตัวหลักๆเหล่านั้นก็คือหุ้นที่สร้างความแตกต่างและทำให้เซียนเป็นเซียนขึ้นมาได้

     ข้อสรุปในเรื่องนี้ก็คือ การเป็นเซียนนั้น คุณไม่จำเป็นที่จะต้องเลือกหุ้นถูกทุกตัวหรือแม้จะเป็นส่วนใหญ่ด้วยซ้ำ ข้อสำคัญก็คือ ในหุ้น 10 ตัว คุณอาจจะเลือกถูกเพียง 3 ตัว แต่ถ้าหุ้น 3 ตัวนั้นเป็นหุ้นที่ทำกำไรมหาศาลก็เพียงพอแล้วสำหรับผลงานที่ดีเยี่ยม

นิสัยที่หก ก็คือ เซียนหุ้นตัวจริงนั้นมี “EQ” ของการลงทุนสูง ไม่ใคร่หวั่นไหวกับภาวะตลาดผันผวนหรือข่าวต่างๆ ที่อาจจะดูรุนแรงแต่ผลกระทบจริงต่อการลงทุนมีน้อย นิสัยในกลุ่มนี้ที่ผมเห็นว่ามีความสำคัญก็คือ เซียนหุ้นนั้นมักใจเย็น สามารถอดทนรอได้อย่าง “ไม่มีเวลาจำกัด” ถ้ายังไม่เห็นโอกาส ขณะเดียวกัน ถ้าเห็นโอกาส “ลอยมาตรงหน้า” เซียนหุ้นสามารถตัดสินใจ และลงมือได้ทันทีไม่มีการผัดวันประกันพรุ่ง หรือต้องไปศึกษาพินิจพิจารณายืดยาว ความรู้สึกของผมก็คือ เซียนหุ้นชั้นนำคงจะมีความคิดต่างๆอยู่ในใจที่พร้อมอยู่แล้ว เมื่อโอกาสเปิดก็คว้าได้ทันที

พฤติกรรมที่เจ็ดของเซียนหุ้น ก็คือ ยอมรับความผิดพลาดและแก้ไขปรับเปลี่ยนได้รวดเร็ว ภาษาหุ้นและการลงทุนก็คือ สามารถ “Cut Loss” ได้ทันทีเมื่อเห็นว่าหลักทรัพย์ที่ตนถืออยู่ไม่เป็นไปตามที่คาด หรือเกิดการเปลี่ยนแปลงที่ทำให้เหตุผลในการซื้อหมดไป พูดง่ายๆ เซียนหุ้นมักไม่ยอม “ติดหุ้น” อย่างนักลงทุนประเภท “แมงเม่า” ซึ่งไม่สามารถยอมรับความผิดพลาดโดยการขายหุ้นที่ขาดทุนมากทิ้งได้

ข้อแปด ที่ผมเลือกมาก็คือ เซียนหุ้นนั้น เวลาลงทุนแต่ละครั้งจะต้องมี “Story” หรือเรื่องราว หรือเหตุผลหลักว่าทำไมจึงลงทุนในหุ้นหรือหลักทรัพย์นั้น ซึ่งไม่ใช่เพราะคิดว่าราคาหุ้นจะขึ้น แต่จะต้องเป็นเรื่องอื่นๆที่เมื่อเกิดขึ้นจะส่งผลต่อราคาหุ้นในที่สุด เรื่องราวอาจเป็นได้ทั้งเรื่องระยะสั้นหรือระยะยาว อาจเป็นได้ทั้งเรื่องของตัวธุรกิจเอง หรือเรื่องภายนอกที่จะส่งผลอย่างสำคัญต่อตัวธุรกิจและราคาหลักทรัพย์ในที่สุด

นิสัยที่เก้า ก็คือ เซียนหุ้นนั้นมักจะเป็นคนบ้าหุ้น หายใจเข้าออกเป็นเรื่องของการลงทุน ทรัพย์สมบัติส่วนใหญ่ของตนมักจะอยู่ในหลักทรัพย์ การลงทุนเป็นชีวิตจิตใจ แต่ไม่ใช่คนที่เฝ้ากระดานหุ้น ติดตามราคาหุ้นทุกนาที เพราะเซียนหุ้นตัวจริงนั้นไม่จำเป็นและมักไม่สนใจการเคลื่อนไหวของราคาหุ้น ในระยะสั้น เซียนหุ้นชอบศึกษาและติดตามความเป็นไปของกิจการ ภาวะแวดล้อม และประเด็นอื่นๆที่อยู่นอกตลาดหลักทรัพย์มากกว่า

สุดท้าย ก็คือ นิสัยส่วนตัวของเซียนการลงทุน ที่ดูแล้วก็น่าแปลก ค่าที่ว่าเซียนหุ้นมักจะเป็นคนที่มีความมั่งคั่งมหาศาล (ถ้าไม่มั่งคั่ง ใครจะเรียกว่าเป็นเซียน!) แต่ส่วนใหญ่แล้วกลับใช้ชีวิตธรรมดาแบบคนชั้นกลางระดับสูงเล็กน้อย และไม่มีใครเลยที่ใช้ชีวิตความเป็นอยู่สูงกว่าระดับความมั่งคั่งของตนเอง ทั้งที่ดูไปแล้ว เงินสำหรับเซียนนั้น หามาได้ง่ายและเร็ว แต่คนเหล่านั้นกลับไม่ฟุ่มเฟือย ไม่ชอบใช้เงินในสิ่งที่ไม่จำเป็นหรือใช้เงินไม่คุ้มค่า

     นิสัยทั้ง 10 ข้อนี้ ไม่ได้หมายความว่าเซียนทุกคนต้องมีเหมือนกันหมด เพียงแต่เป็นนิสัยที่เซียนหลายๆคนที่ผมศึกษามี และผมคิดว่านิสัยหลายๆข้อมีส่วนสำคัญในการสร้างความสำเร็จในการลงทุนให้แก่เขาและผมเชื่อว่า ถ้า Value Investor นำเอาไปใช้และทำให้เป็นนิสัย โอกาสที่จะประสบความสำเร็จในการลงทุนคงจะมีสูงขึ้น


นิสัยเซียน
ดร.นิเวศน์ เหมวชิรวรากร
22 ตุลาคม 2547

วันศุกร์ที่ 25 ตุลาคม พ.ศ. 2556

+++ Average True Range (ATR) คืออะไร ใช้ยังไง มีประโยชน์แบบไหน โน๊ตไว้หน่อย

     Average True Range (ATR) เป็นตัวชี้วัดที่ใช้ในการวัดความผันผวนของตลาดนั้นๆ โดยทั่วไปมันจะเป็นค่าเฉลี่ยเคลื่อนที่ ในรอบของมันที่ได้กาหนดเอาไว้เป็นความแตกต่างที่มากที่สุดของราคาสูงสุดของวันนี้และราคาต่าสุดของวันนี้ ราคาสูงสุดของวันนี้และราคาปิดเมื่อวานและราคาต่าสุดของวันนี้และราคาปิดเมื่อวาน ซึ่งถ้าค่ามันมีค่ามากก็จะทำให้ความผันผวนของหุ้นตัวนั้นมีความผันผวนมากขึ้นตามไปด้วย ส่วนค่าที่น้อยค่าความผันผวนก็จะน้อยตาม สรุปคือ มันใช้ดูการแกว่งตัวของหุ้น ว่ามากหรือน้อย แต่ไม่ได้เอาไว้ใช้ดูเทรนนะ 

ใน e-fin ก็มี ATR ให้ใช้นะครับ ไล่ตามเมนูนี้เลย click ขวาที่กราฟ

     ส่วนอันนี้ผมปรับแต่งตามแนวคิดผมเองนะ คือพอเรา Add ATR เข้ามา มันมองยาก ว่าตกลงแล้วช่วงไหน แกว่งแรงไม่แรง ผมก็จะเอา EMA หรือ SMA เข้ามา อย่างที่เห็น SMA คือสีเหลือง ATR คือสีส้ม เท่านี้เราก็จะสามารถดูได้ง่ายขึ้นแหละว่า ช่วงไหนแกว่งแรง อย่างกรณี SET ก็ตามกรอบสีแดง คำว่าแกว่งแรง คือไม่ได้เกี่ยวกับว่าจะขึ้นหรือลงนะ แต่มันบอกว่าช่วงนั้น หุ้นหรือ products ตัวนั้นๆ มีความผันผวนสูง   


ถ้าจะดูสูตรคำนวณแบบจัดเต็ม
http://stockcharts.com/help/doku.php?id=chart_school:technical_indicators:average_true_range_a 

วันพฤหัสบดีที่ 24 ตุลาคม พ.ศ. 2556

+++ Remote ตรวจสอบการ Optimize จากทีทุกที่เวลา ด้วย Teamviewer ฟรี ..

     http://www.teamviewer.com/th/index.aspx แชร์เป็น idea เผื่อเป็นประโยชน์กับคนอื่น บางครั้งเวลาผม optimize model ที่มีหลายตัวแปล และหลาย time frame มันต้องใช้เวลานาน ผมจะปล่อยให้เครื่อง run ตลอด บางครั้งใช้เวลา 2-4 วันก็มี แล้วแต่ความบ้า แต่เวลาไปไหนมาไหน ผมก็จะใช้ team viewer remote เข้าไปดู และมันมี version จาก มือถือด้วย แต่กดยาก อย่างตัวนี้ผม optimize model สำหรับ us option 7 time frame วันนี้วันที่ 2 ถึงพรุ่งนี้ก็เข้าวันที่ 3 แต่ต้องปล่อยไปเรื่อย ๆ เพราะค่าที่ออกมา มันยังมีโอกาสอีกเยอะ


+++ สร้าง EA, Indicator, Script Generator MQL4 ของ MT4,MT5 แบบลากวาง http://www.forexgenerator.com/


+++ สร้าง EA, Indicator MQL4 ของ MT4 แบบง่าย ๆ ออนไลน์ ผ่าน User Interface แบบ Grapihcs ลาก วาง จาก FXPRO


เมื่อวานเจอ tools ทำ ea ว่าแจ่ม...เจออันนี้ online และ free เลย..http://www.fxpro.co.uk/trading/tools/quant-resources

+++ การอ่านค่า Report จาก Back Test / Optimize ของ Amibroker

1. Wining Ratio (อัตราความแม่นยำ) ซึ่งจะถูกคำนวนจากจำนวนครั้งที่คุณมีกำไรจากการซื้อขายหุ้นของคุณทั้งหมด ยกตัวอย่างเช่น หากระบบของคุณมีความแม่นยำอยู่ที่ 40 ใน 100 ครั้ง คุณจะมี Wining Ratio เท่ากับ 40% และมี Losing Ratio (อัตราความผิดพลาด) อยู่ที่ 60% นั่นเอง

2. Payoff Ratio (อัตราต่อรอง หรือผลตอบแทนต่อความเสี่ยงในการซื้อขายโดยเฉลี่ย) ซึ่งจะถูกคำนวนจาก Average Wining Trades (ผลกำไรโดยเฉลี่ยในแต่ละครั้ง) หารด้วย Average Losing Trades (ผลขาดทุนโดยเฉลี่ยในแต่ละครั้ง) หรือพูดง่ายๆก็คือ มันบอกให้คุณรู้ว่าโดยเฉลี่ยแล้วคุณได้กำไรเป็นกี่เท่าของการขาดทุนที่เกิดขึ้น ยกตัวอย่างเช่น หากค่าของมันอยู่ที่ 3:1 นั่นหมายถึงคุณจะได้กำไรครั้งละสามเท่าของการขาดทุนนั่นเอง

3. Percent of Capital Exposed to Trading (ความเสี่ยง หรือสัดส่วนที่จะยอมขาดทุนคิดเป็นร้อยละของเงินทุน) พูดง่ายๆก็คือ นี่คือสิ่งที่คุณจะกำหนดเอาไว้ว่าคุณจะยอมเสียเงินครั้งละมากแค่ไหนในแต่ละครั้ง (คิดเป็น%) เมื่อเทียบจากเงินทุนที่คุณมีอยู่ ซึ่งโดยส่วนใหญ่สำหรับคนทั่วๆไปหรือมือใหม่นั้น มันไม่ควรที่จะเกินครั้งละ 2% ของเงินทุนที่คุณมีอยู่ หรือคุณอาจจะสามารถหามันออกมาจากสมการของ Kelly ที่ใช้หาค่า Optimal F ก็ได้

4. Profit Factor=Profit/Lost ค่าที่ดีควรจะมี profit factor มากกว่า 1 แปลความออกมาได้ง่ายๆ คือตอนกำไรให้กำไรมากกว่าตอนขาดทุน


Reading backtest report

http://www.amibroker.com/guide/h_report.html

To view the report of last backest simply click Report button in the automatic analysis window. To view results of ALL past backtest, click drop down arrow on the Report button and choose Report Explorer option. This will display the Report Explorer window that will show the list of all backtests performed. If you double click on the line - detailed report will be shown.

New report is hugely enhanced compared to old one. It includes separate statistics for all, long and short sides as well as large number of new metrics. You can get short help on given figure by hovering your mouse over given field name. You will see the description in the tooltip. Short explanations are provided also below:

Exposure % - 'Market exposure of the trading system calculated on bar by bar basis. Sum of bar exposures divided by number of bars. Single bar exposure is the value of open positions divided by portfolio equity.

Net Risk Adjusted Return % - Net profit % divided by Exposure %

Annual Return % - Compounded Annual Return % (CAR)

Risk Adjusted Return % - Annual return % divided by Exposure %

Avg. Profit/Loss, also known as Expectancy ($) - (Profit of winners + Loss of losers)/(number of trades), represents expected dollar gain/loss per trade

Avg. Profit/Loss %, also known as Expectancy (%) - '(% Profit of winners + % Loss of losers)/(number of trades), represents expected percent gain/loss per trade

Avg. Bars Held - sum of bars in trades / number of trades

Max. trade drawdown - The largest peak to valley decline experienced in any single trade. The lower the better

Max. trade % drawdown - The largest peak to valley percentage decline experienced in any single trade. The lower the better

Max. system drawdown - The largest peak to valley decline experienced in portfolio equity. The lower the better

Max. system % drawdown - The largest peak to valley percentage decline experienced in portfolio equity. The lower the better

Recovery Factor - Net profit divided by Max. system drawdown

CAR/MaxDD - Compound Annual % Return divided by Max. system % drawdown. Good if bigger than 2

RAR/MaxDD - Risk Adjusted Return divided by Max. system % drawdown. Good if bigger than 2.

Profit Factor - Profit of winners divided by loss of losers

Payoff Ratio - Ratio average win / average loss

Standard Error - Standard error measures chopiness of equity line. The lower the better.

Risk-Reward Ratio - Measure of the relation between the risk inherent in a trading the system compared to its potential gain. Higher is better. Calculated as slope of equity line (expected annual return) divided by its standard error.

Ulcer Index - Square root of sum of squared drawdowns divided by number of bars

Ulcer Performance Index - (Annual profit - Tresury notes profit)/Ulcer Index'>Ulcer Performance Index. Currently tresury notes profit is hardcoded at 5.4. In future version there will be user-setting for this.

Sharpe Ratio of trades - Measure of risk adjusted return of investment. Above 1.0 is good, more than 2.0 is very good. More information http://www.stanford.edu/~wfsharpe/art/sr/sr.htm  . Calculation: first average percentage return and standard deviation of returns is calculated. Then these two figures are annualized by multipling them by ratio (NumberOfBarsPerYear)/(AvgNumberOfBarsPerTrade). Then the risk free rate of return is subtracted (currently hard-coded 5) from annualized average return and then divided by annualized standard deviation of returns.

K-Ratio - Detects inconsistency in returns. Should be 1.0 or more. The higher K ratio is the more consistent return you may expect from the system. Linear regression slope of equity line multiplied by square root of sum of squared deviations of bar number divided by standard error of equity line multiplied by square root of number of bars. More information: Stocks & Commodities V14:3 (115-118): Measuring System Performance by Lars N. Kestner

Color-coding in the backtest report (new in 5.60)

Version 5.60 brings enhanced backtest report: color-coding 'good' and 'bad' values in backtest report. Some of the metrics in the backtest report are color-coded. Blue means "neutral", Green means "good", Red means "bad". Metrics that are not colorized are always black.
This color coding is of course arbitrary and should be used as guideance only. Treat 'red' as a warning flag and advice to check the value in detail.

As of now the following metrics are colorized:
Net Profit, Net Profit % - bad < 0, good > 0
Annual Profit %, bad < 0, neutral betwen 0 and 10, good > 10
RAR % bad < 0, good > (10 / Exposure)
Avg. Profit/Loss all trades (Expectancy $) - bad < 0, good > 0
Avg Profit/Loss % all trades (Expectancy %) - bad < 0, good > 0
Max. system % drawdown - bad: dd worse than -30%, neutral: dd between -30 and -10%, good - -10% to 0%
CAR/MaxDD, RAR/MaxDD - bad < 1, neutral between 1 and 2, good > 2
Recovery factor - bad < 1, neutral between 1 and 2, good > 2
Payoff ratio - bad < 1, neutral between 1 and 2, good > 2

 http://www.amibroker.com/guide/h_report.html


Explanation of values:

Total net profit: This is total profit/loss realized by the test. Includes the closed-out value of the open position (if there is any).
Return on account: This is total profit/loss as a percentage of initial investment. 
Total commissions paid: The amount of commissions paid during trades.
Open position gain/loss: The closed-out value of open position that existed at the end of the test.
Buy-and-hold profit: The total profit/loss realized by buy-and-hold strategy (including commission).
Buy-and-hold % return: The total buy-and-hold strategy return as a percentage of initial investment.
Bars in test: The number of bars tested (Overall summary shows sum of number of bars in all symbols).
Days in test: The number of days between first bar date and last bar date (overall summary shows arithmetic average of number of days accross the population of symbols under test)
System to buy-and-hold index: An index showing how much better/worse is the system compared to buy-and-hold strategy. A value of 0% means that system gives the same profit as buy-and-hold strategy. A value of 200% means that system gives 200% more profit than buy-and-hold strategy. A value of -50% means that system gives a half of the gains of buy-and-hold strategy.
Annual system % return: Calculated compound annual percentage return of the system (*see the note) 
Annual B&H % return: Calculated compound annual percentage return of the buy and hold strategy (*see the note) 
System drawdown: The largest equity dip experienced by the system (relative to the initial investment). 
B&H drawdown: The largest equity dip experienced by the buy and hold strategy (relative to the initial investment). 

Max. system drawdown: The largest point distance between equity peak value and the following trough value experienced by the system
Max. system % drawdown: The largest percentage distance between equity peak value and the following trough value experienced by the system 
Max. B&H drawdown: The largest point distance between equity peak value and the following trough value experienced by the buy and hold strategy
Max. B&H % drawdown: The largest percentage distance between equity peak value and the following trough value experienced by the buy and hold strategy

Trade drawdown: The largest equity dip experienced by any single trade (relative to the trade's entry price).
Max. trade drawdown: The largest point distance between equity peak value and the following trough value experienced by any single trade
Max. trade % drawdown: The largest percentage distance between equity peak value and the following trough value experienced by any single trade
Total number of trades: The number of trades (winners + losers)
Percent profitable: The number of winning trades compared to total number of trades shown as a percentage
Profit of winners/Loss of losers: Total amount of money gained in winners/lost in losers.
Total # of bars in winners/losers: The number of bars spent during winning/losing trades
Largest winning/losing trade: The amount of biggest winner/loser
# of bars in largest winner/loser: The number of bars in the biggest winning/losing trade 
Average winning/losing trade: The average of winning/losing trades (sum of winners/losers divided by a number of winning/losing trades)
Average # of bars in winners/losers: The average of number of bars in winning/losing trades (total number of bars in winners/losers divided by a number of winning/losing trades)
Max consec. winners/losers: The largest number of consecutive winning/losing trades. 
Bars out of the market: The number of bars for which the system was completely out of the market (was neither long nor short). If you open and close the position during single day, even if you have no open position on market open and no position on close this day is NOT considered as out of the market.

Interest earned: The total interest earned between trades. Note that AmiBroker simulates O/N (overnight) deposits. This means that if you closed the position on Monday and opened the next one on Tuesday you earn interest for single O/N deposit.

Exposure: Shows how much you are exposed to the market. It is a ratio of bars in the market divided by total number of bars under test. (The number of bars in the market is given by total number of bars minus bars out of the market)

Risk adjusted ann. return: Shows annual return of the system (*see note) adjusted (divided) by market exposure. If your system gained 10% over one year with the exposure of 50% the adjusted return would be 20% (10%/0.5)

Ratio avg win/avg loss: The absolute value of the ratio of average winning trade to average losing trade
Profit factor: The absolute value of the ratio of the profit of winners to loss of losers
Avg. trade (win & loss): The average trade profit calculated as sum of winners and losers divided by the number of trades.

*Note: Calculation method used for annual percentage returns:

Most of the software (including two the most popular so-called professional packages) use very simple annualization method based on the following formula:

simple_annualized_percentage_return = percentage_return * ( 365 / days_in_test );

unfortunatelly this method is wrong and very misleading since it would tell you that annual return is 22% when your system earned 44% during two years. This value is too optimistic. In fact annual return in this case is only 20%: if your initial investment was 10000 you earn 20% during the first year so you then get 12000 and 20% the second year that gives you 14400 = ( 12000 * 120 % ). So after two years you earned 44% but annually it is only 20%.

AmiBroker is one of the few programs that calculates annual returns correctly and will give you correct value of 20% as shown in the example above. The formula that AmiBroker uses for annual return calculation is as follows:

correctly_annualized_perc_return = 100% * ( (final_value/initial_value) ^ ( 365 / days_in_test ) - 1 )

where x^y means rising x to the power of y.