รีวิว Python for Investing Beginner course — Investic

ปฐมบทของ Python เพื่อการลงทุน

Donato_TH
Donato Story
2 min readFeb 18, 2023

--

If you are interested in articles related to my experience, please feel free to contact me: linkedin.com/in/nattapong-thanngam

Note: จริงๆแล้ว Investic มีคอร์สปูพื้นฐาน Python ที่ชื่อว่า “Python for Time Series” ที่สอนเกี่ยวกับ Basic Python, For Loop, DataFrame, Data Visualization, etc. แต่ผมพอเขียน Python ได้อยู่แล้ว เลยขอข้ามนะครับ ^_^

Course Outline

เมื่อผ่าน “Python for Time Series” จะมาต่อด้วย “Python for Investing Beginner” ที่มีเนื้อหาคราวๆดังนี้

  • Python ทำอะไรในโลกลงทุนได้บ้างPreview
  • การดึงข้อมูลราคาหุ้น ราคา Crypto จาก Yahoo Finance และแหล่งอื่นๆ
  • การคำนวณหา Return, Volatility,
  • การ Resample, การ Aggregate data
  • การสร้าง Candlestick plot โดยใช้ mplfinance
  • การคำนวณ SMA, EMA,
  • การทำ CDC Action Zone จาก Bollinger Bands

Example Output:

ผมเลือก หุ้นบางจาก (BCP.BK) มาใช้ในการเขียน Code ตามเนื้อหาที่เรียนนะครับ

  • ดึงข้อมูลจาก Yahoo finance
ราคาหุ้นบางจาก (Image by Author)
  • ตัวอย่างการ Resample/Aggregate -> เปลี่ยน Daily data เป็น Weekly data หรือ Monthly data, และการหา Percent ผลตอบแทน
Resampling ข้อมูลเป็น Weekly data (Image by Author)
Percent ผลตอบแทนรายสัปดาห์ (Image by Author)
  • การคำนวณ 3M Volatility (Annualized from Daily)
3M Volatility — Annualized from Daily (Image by Author)
  • การคำนวณ Moving average และใส่ Volume กับ Return
Moving Average 12D, 26D และใส่ Volume กับ Return (Image by Author)
  • การทำ Signal ซื้อ/ขาย และการแปลงสัญญาณซื้อ/ขาย มาเป็น Return
CDC Action Zone (Image by Author)
Return Summary (Image by Author)

My opinion:

  • เป็น course เรียนด้านหุ้น + Python ที่ดี มีการปูพื้นฐาน และอธิบายเข้าใจง่าย เนื้อหาที่เรียนสามารถนำไปต่อยอดได้ เข้าใจว่าต่อๆไปจะมีสอน For loop, Tuning, Multi-Strategy, etc.
  • คอร์สนี้เป็นคอร์สพื้นฐาน ถึงแม้เรียนจบแล้วก็ยังไม่สามารถนำไปประยุกต์ใช้ในการ Trade ได้จริง แนะนำว่าต้องเรียนอีกหลายคอร์ส ช่วงท้ายของ course มีเนื้อหา Tie-in คอร์สอื่นๆมากมาย น่าสนใจทั้งนั้น
  • ผู้เรียนอาจต้องมีความรับผิดชอบในตัวเองนิดนึง เพราะเป็นการเรียน Online 100% ถ้าขี้เกียจก็น่าจะเรียนไม่จบ (ถ้ามีคำถาม Investic มี Discord ไว้ค่อยตอบคำถามต่างๆ ครับ)

Please feel free to contact me, I am willing to share and exchange on topics related to Data Science and Supply Chain.
Facebook:
facebook.com/nattapong.thanngam
Linkedin:
linkedin.com/in/nattapong-thanngam

--

--

Donato_TH
Donato Story

Data Science Team Lead at Data Cafe, Project Manager (PMP #3563199), Black Belt-Lean Six Sigma certificate