ทำ backtest ของ S50 ด้วย Amibroker

Viewing 2 reply threads
  • Author
    Posts
    • #47789
      mainui1819
      Participant

      ตอนนี้ใช้ amibroker ทำ backtest ของหุ้นพอได้แล้ว

      อยากจะลองทำ Tfex S50 ดูบ้าง แต่ไม่ทราบว่าต้องตั้งค่าอะไร อย่างไรบ้าง

      พอจะมีคลิป เอกสาร หรือตัวอย่าง AFL บ้างไหมครับ

    • #47793
      dreamscat
      Keymaster

      ลองดูจากเอกสารของ amibroker ได้ที่นี่ครับ

      https://www.amibroker.com/guide/h_futbacktest.html

       

      หรือหนังสือเล่มนี้ หน้า 161 ครับ

      Introduction to AmiBroker

       

      ตัวอย่าง AFL สมัยค่าคอม Tfex = 1000 บาท/contract ครับ

      // custom backtest
      SetTradeDelays(0,0,0,0);
      SetOption(“AllowSameBarExit”,True);
      SetOption(“FuturesMode”,True);
      SetOption(“InitialEquity”,1000000);
      SetOption(“MaxOpenPositions”,1);
      SetOption(“CommissionMode”,3);
      SetOption(“CommissionAmount”,1000);
      BuyPrice = SellPrice = ShortPrice = CoverPrice = Close;
      MarginDeposit = PositionSize = 1;

       

      • This reply was modified 1 year, 9 months ago by dreamscat.
    • #47798
      mainui1819
      Participant

      ขอบคุณครับ

Viewing 2 reply threads
  • You must be logged in to reply to this topic.