AFL 2015
Amibroker AFL Programming Workshop
Bangalore
© Copyright 2015 Marketcalls Financial Services Pvt Ltd ·
All Rights Reserved www.marketcalls.in
Day 1 - Agenda
• Introduction to Trading System Design and Design Concepts
• Basics of Amibroker AFL Programming and Advance Looping Concepts
• Backtesting, Optimization and Key Backtesting Metrics
• Custom Backtesting, Walk Forward Testing, Monte Carlo Simulation
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Day 2 - Agenda
• Symphony Fintech on Algo Trading
• Creating Intraday Trading Strategies and Dynamic Trading Strategies
• Designing Trading System Dashboard and Alerts
• Position Sizing, Scale In and Scale Out
• Timing Models and Rotational Trading System
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
What I do?
• Running a Financial Services Start-up
• Financial Blogger and Author of www.marketcalls.in since Sep 2007
• Passionate About Trading Analytics and Systems.
• System Trader.
• More www.marketcalls.in/about
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
INTRODUCTION
Introduction to Trading System Design
And Design Concepts
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
COMPONENTS OF TRADING SYSTEM
Trade
Data
Volatility
Trading
Software
Trading
Rules
Emotions
Testing &
Validation
Risk
Control
Market
Participants
Position
Sizing
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
What Kind of Trader You are?
• Intraday Trader
• Positional Trader
• Short Term
• Medium Term
• Long Term
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
What Matters
• Emotional Quotient
• Your Belief about your Trading System
• Quality Data feed
• Stable Trading Solution
• Low Cost Brokerage
• Lower Impact Cost
• Better Money Management
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Trading Software
• Amibroker
• Ninjatrader
• Multicharts, Multicharts.Net
• Esignal
• Metastock
• Metatrader
• Wealth-Lab Pro
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Free Data Providers for Amibroker
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Google Finance
(EOD, Intraday)
Yahoo Finance
(EOD, Intraday,
Fundamental)
ASCII
(csv, txt)
MSN Money
(EOD)
Quandl
(EOD)
Authorized Data Vendors for Amibroker
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Globaldatafeeds Neotradeanalytics
Esignal
(Platform + Data
feed)
True Data
Interactive Brokers
(Brokerage + Data
feed )
Type of Trading System
• Mechanical Trading System – Absolutely No Human Decision Making
- Trend Following
- Mean Reversion
- Statistical Arbitrage
• Discretionary Trading System – Human Decision Making Involved
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Disadvantages of Trend Following
• Always Lagging the trend
• Whipsaws even in Trending Market
• Loss Making in Sideways Market
• Extreme Volatility is Dangerous for Trend Following
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Disadvantages of Mean Reversion
• Extreme Volatility
• Unlimited Downside
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Stages in Trading System Design
Analysis
Design
ImplementTesting
Evaluate
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
SYSTEM HEALTH
Time
Drawdown
Confidence
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Equity Curve
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Drawdown
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Why Not to Loose More Money
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
SYSTEM EXPECTANCY
Helps to understand how winners, losers, gains and losses relate to
each other over the long term.
Expectancy = (Win Ratio * Average Win) - (Loss Ratio * Average Loss)
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
LISTEN TO VOLATILITY
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Listen To Market Dynamics (Discretionary)
• Volatility
• Market Participants
• Macro Economics
• Currency
• Commodities
• Global Market Sentiments
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Trading System Adoption
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Trading System Once Broken is
Broken
Don’t Try to Fix it!
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Aware About Unseen Risk
Try to Avoid!
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Beware of Stop Hunting
A strategy that attempts to force some market participants out of their positions by
driving the price of an asset to a level where many individuals have chosen to set their
stop-loss orders. - investopedia
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
Mid Day Stop Hunting
• Most of the Days 50% of Volume Happens in first or last 30min
• Liquidity Dry Up during mid of the day
• Very less volume is required to move the stock during mid-day
• Weak Longs/Short Removed from the Market
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in
A trader always has too much
size on when wrong, too little
on when right.
Avoid Too Much of Leveraged
Positions
© Copyright 2015 Marketcalls Financial Services Pvt Ltd · All
Rights Reserved www.marketcalls.in

More Related Content

PPTX
Tradezilla Daily market commentary 2nd mar 2016
PPTX
Divergence 2016 - Daily Market Commentary 14th Jan 2016
PPTX
Daily market commentary 25th feb 2016
PPTX
Trading sentimental analysis
PPTX
Daily market commentary 17th feb 2016
PPTX
Fears, Emotions & Market Crash
PPTX
LinTRA – Intraday Trading System
PPTX
TradeZilla - Trading system Design
Tradezilla Daily market commentary 2nd mar 2016
Divergence 2016 - Daily Market Commentary 14th Jan 2016
Daily market commentary 25th feb 2016
Trading sentimental analysis
Daily market commentary 17th feb 2016
Fears, Emotions & Market Crash
LinTRA – Intraday Trading System
TradeZilla - Trading system Design

Viewers also liked (20)

PPTX
Monte Carlo Simulation for Trading System in AmiBroker
PDF
AmiBroker ApplyStop Introduction
PPTX
Stock trader types
PPTX
Transition to a_hedge fund_-_wsi
PDF
Understand Foreign Equity in AmiBroker
PDF
OSGeo와 Open Data
PDF
황성수 공공데이터 개방과 공공이슈 해결
PPTX
Coimbatore amibroker workshop 2014
PDF
AmiBroker Buy sell target & stop loss trading signals software for equity, co...
PPTX
Distributed R: The Next Generation Platform for Predictive Analytics
PDF
Deciphering voice of customer through speech analytics
PDF
Optimizing Facebook Campaigns with R
PDF
The Next List: R&D Breakthroughs that are Changing the World
 
PDF
Implementing a highly scalable stock prediction system with R, Geode, SpringX...
PPTX
R lecture oga
PDF
Cloud Conf 2015 - Develop and Deploy IOT Applications
PDF
IMCSummit 2015 - Day 2 Developer Track - Implementing a Highly Scalable In-Me...
PDF
오픈데이터와 오픈소스 소프트웨어를 이용한 의료이용정보의 시각화
PDF
구조화된 데이터: Schema.org와 Microdata, RDFa, JSON-LD
PDF
II-SDV 2016 Patrick Beaucamp - Data Science with R and Vanilla Air
Monte Carlo Simulation for Trading System in AmiBroker
AmiBroker ApplyStop Introduction
Stock trader types
Transition to a_hedge fund_-_wsi
Understand Foreign Equity in AmiBroker
OSGeo와 Open Data
황성수 공공데이터 개방과 공공이슈 해결
Coimbatore amibroker workshop 2014
AmiBroker Buy sell target & stop loss trading signals software for equity, co...
Distributed R: The Next Generation Platform for Predictive Analytics
Deciphering voice of customer through speech analytics
Optimizing Facebook Campaigns with R
The Next List: R&D Breakthroughs that are Changing the World
 
Implementing a highly scalable stock prediction system with R, Geode, SpringX...
R lecture oga
Cloud Conf 2015 - Develop and Deploy IOT Applications
IMCSummit 2015 - Day 2 Developer Track - Implementing a Highly Scalable In-Me...
오픈데이터와 오픈소스 소프트웨어를 이용한 의료이용정보의 시각화
구조화된 데이터: Schema.org와 Microdata, RDFa, JSON-LD
II-SDV 2016 Patrick Beaucamp - Data Science with R and Vanilla Air
Ad

Similar to Trading System Design (20)

PPTX
Introduction to Algoaction -Web Based Trading Platform
PPTX
Trading Strategies for Active Traders
PPTX
Changing Notions of Risk Management in Financial Markets
PDF
The 7 principles of digital business strategy | Niall McKeown | iON
PDF
Changing Notions of Risk Management in Financial Markets
PDF
Quantitative Data Analysis of Cryptocurrencies
PDF
Maximize Your Trading Potential with Tradematics Enterprises
PPT
Highest paid career across the globe
PPTX
Market profile - ATMA 42nd Educational Meeting
PDF
Rtg it solutions
PPTX
Machine Learning For Stock Broking
PPTX
Financial Business Presentation
PPTX
Quant insti webinar on algorithmic trading for technocrats!
PPTX
“The Sum of The Parts Must Be Greater Than the Whole; Is There or What Is A C...
PPTX
How do AI Crypto Trading Bots Help in Crypto Profit?
PPT
AIOTrade_V4
PDF
Social Analytics Tools and Techologies
PPT
Usha infotech - Stock Inventory Management & Audit Tools for CA Study Circle
PDF
ZenLedger.io Early Seed Deck
PDF
Mind the Gap: Between ITSM & SAM in the ITIL World”
Introduction to Algoaction -Web Based Trading Platform
Trading Strategies for Active Traders
Changing Notions of Risk Management in Financial Markets
The 7 principles of digital business strategy | Niall McKeown | iON
Changing Notions of Risk Management in Financial Markets
Quantitative Data Analysis of Cryptocurrencies
Maximize Your Trading Potential with Tradematics Enterprises
Highest paid career across the globe
Market profile - ATMA 42nd Educational Meeting
Rtg it solutions
Machine Learning For Stock Broking
Financial Business Presentation
Quant insti webinar on algorithmic trading for technocrats!
“The Sum of The Parts Must Be Greater Than the Whole; Is There or What Is A C...
How do AI Crypto Trading Bots Help in Crypto Profit?
AIOTrade_V4
Social Analytics Tools and Techologies
Usha infotech - Stock Inventory Management & Audit Tools for CA Study Circle
ZenLedger.io Early Seed Deck
Mind the Gap: Between ITSM & SAM in the ITIL World”
Ad

More from Marketcalls (19)

PPTX
Trading API and Automation – Quantageddon 2.0 @ IIT Chennai
PPTX
OpenAlgo - Algotrading Platform for Everyone
PPTX
Python for Traders - Introduction to Python for Trading
PPTX
Line Trading Automation - Algomojo Amibroker Module
PPTX
Introduction to Option Greeks
PDF
New margin requirement for popular futures and options strategies
PPTX
Tradestudio 5.0 - Documentation
PDF
Trading Money on 2nd OCT 2019 - Market Outlook
PPTX
Trading money on 22nd sep 2019
PPTX
Budget 2019 - Nifty Futures Intraday Price Action
PPTX
Trading options and market profile
PPTX
Custom Algo Development - Marketcalls
PPTX
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
PDF
Marketcalls slack 24th dec 2018
PPTX
Amibroker Fast Track Course Bangalore
PPTX
Insights into Regime Switching Trading Strategy - TC2015
PPTX
Amibroker AFL Coding - Webinar
PPTX
Trading mechanisms at Commodity exchange
PPTX
Hedging mechanism and risk management in Commodities
Trading API and Automation – Quantageddon 2.0 @ IIT Chennai
OpenAlgo - Algotrading Platform for Everyone
Python for Traders - Introduction to Python for Trading
Line Trading Automation - Algomojo Amibroker Module
Introduction to Option Greeks
New margin requirement for popular futures and options strategies
Tradestudio 5.0 - Documentation
Trading Money on 2nd OCT 2019 - Market Outlook
Trading money on 22nd sep 2019
Budget 2019 - Nifty Futures Intraday Price Action
Trading options and market profile
Custom Algo Development - Marketcalls
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
Marketcalls slack 24th dec 2018
Amibroker Fast Track Course Bangalore
Insights into Regime Switching Trading Strategy - TC2015
Amibroker AFL Coding - Webinar
Trading mechanisms at Commodity exchange
Hedging mechanism and risk management in Commodities

Recently uploaded (20)

PDF
Principal of magaement is good fundamentals in economics
PDF
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
PPT
KPMG FA Benefits Report_FINAL_Jan 27_2010.ppt
PDF
Buy Verified Stripe Accounts for Sale - Secure and.pdf
PPTX
Q1 PE AND HEALTH 5 WEEK 5 DAY 1 powerpoint template
PDF
THE EFFECT OF FOREIGN AID ON ECONOMIC GROWTH IN ETHIOPIA
PDF
Buy Verified Payoneer Accounts for Sale - Secure and.pdf
PPTX
Maths science sst hindi english cucumber
PDF
CLIMATE CHANGE AS A THREAT MULTIPLIER: ASSESSING ITS IMPACT ON RESOURCE SCARC...
PDF
Truxton Capital: Middle Market Quarterly Review - August 2025
PDF
Fintech Regulatory Sandbox: Lessons Learned and Future Prospects
PPT
features and equilibrium under MONOPOLY 17.11.20.ppt
DOCX
BUSINESS PERFORMANCE SITUATION AND PERFORMANCE EVALUATION OF FELIX HOTEL IN H...
PPT
CompanionAsset_9780128146378_Chapter04.ppt
PPTX
INDIAN FINANCIAL SYSTEM (Financial institutions, Financial Markets & Services)
PPTX
28 - relative valuation lecture economicsnotes
PDF
International Financial Management, 9th Edition, Cheol Eun, Bruce Resnick Tuu...
PDF
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
PPTX
ML Credit Scoring of Thin-File Borrowers
Principal of magaement is good fundamentals in economics
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
KPMG FA Benefits Report_FINAL_Jan 27_2010.ppt
Buy Verified Stripe Accounts for Sale - Secure and.pdf
Q1 PE AND HEALTH 5 WEEK 5 DAY 1 powerpoint template
THE EFFECT OF FOREIGN AID ON ECONOMIC GROWTH IN ETHIOPIA
Buy Verified Payoneer Accounts for Sale - Secure and.pdf
Maths science sst hindi english cucumber
CLIMATE CHANGE AS A THREAT MULTIPLIER: ASSESSING ITS IMPACT ON RESOURCE SCARC...
Truxton Capital: Middle Market Quarterly Review - August 2025
Fintech Regulatory Sandbox: Lessons Learned and Future Prospects
features and equilibrium under MONOPOLY 17.11.20.ppt
BUSINESS PERFORMANCE SITUATION AND PERFORMANCE EVALUATION OF FELIX HOTEL IN H...
CompanionAsset_9780128146378_Chapter04.ppt
INDIAN FINANCIAL SYSTEM (Financial institutions, Financial Markets & Services)
28 - relative valuation lecture economicsnotes
International Financial Management, 9th Edition, Cheol Eun, Bruce Resnick Tuu...
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
ML Credit Scoring of Thin-File Borrowers

Trading System Design

  • 1. AFL 2015 Amibroker AFL Programming Workshop Bangalore © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 2. Day 1 - Agenda • Introduction to Trading System Design and Design Concepts • Basics of Amibroker AFL Programming and Advance Looping Concepts • Backtesting, Optimization and Key Backtesting Metrics • Custom Backtesting, Walk Forward Testing, Monte Carlo Simulation © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 3. Day 2 - Agenda • Symphony Fintech on Algo Trading • Creating Intraday Trading Strategies and Dynamic Trading Strategies • Designing Trading System Dashboard and Alerts • Position Sizing, Scale In and Scale Out • Timing Models and Rotational Trading System © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 4. What I do? • Running a Financial Services Start-up • Financial Blogger and Author of www.marketcalls.in since Sep 2007 • Passionate About Trading Analytics and Systems. • System Trader. • More www.marketcalls.in/about © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 5. INTRODUCTION Introduction to Trading System Design And Design Concepts © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 6. COMPONENTS OF TRADING SYSTEM Trade Data Volatility Trading Software Trading Rules Emotions Testing & Validation Risk Control Market Participants Position Sizing © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 7. What Kind of Trader You are? • Intraday Trader • Positional Trader • Short Term • Medium Term • Long Term © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 8. What Matters • Emotional Quotient • Your Belief about your Trading System • Quality Data feed • Stable Trading Solution • Low Cost Brokerage • Lower Impact Cost • Better Money Management © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 9. Trading Software • Amibroker • Ninjatrader • Multicharts, Multicharts.Net • Esignal • Metastock • Metatrader • Wealth-Lab Pro © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 10. Free Data Providers for Amibroker © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in Google Finance (EOD, Intraday) Yahoo Finance (EOD, Intraday, Fundamental) ASCII (csv, txt) MSN Money (EOD) Quandl (EOD)
  • 11. Authorized Data Vendors for Amibroker © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in Globaldatafeeds Neotradeanalytics Esignal (Platform + Data feed) True Data Interactive Brokers (Brokerage + Data feed )
  • 12. Type of Trading System • Mechanical Trading System – Absolutely No Human Decision Making - Trend Following - Mean Reversion - Statistical Arbitrage • Discretionary Trading System – Human Decision Making Involved © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 13. Disadvantages of Trend Following • Always Lagging the trend • Whipsaws even in Trending Market • Loss Making in Sideways Market • Extreme Volatility is Dangerous for Trend Following © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 14. Disadvantages of Mean Reversion • Extreme Volatility • Unlimited Downside © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 15. Stages in Trading System Design Analysis Design ImplementTesting Evaluate © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 16. SYSTEM HEALTH Time Drawdown Confidence © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 17. Equity Curve © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 18. Drawdown © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 19. Why Not to Loose More Money © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 20. SYSTEM EXPECTANCY Helps to understand how winners, losers, gains and losses relate to each other over the long term. Expectancy = (Win Ratio * Average Win) - (Loss Ratio * Average Loss) © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 21. LISTEN TO VOLATILITY © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 22. Listen To Market Dynamics (Discretionary) • Volatility • Market Participants • Macro Economics • Currency • Commodities • Global Market Sentiments © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 23. Trading System Adoption © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 24. Trading System Once Broken is Broken Don’t Try to Fix it! © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 25. Aware About Unseen Risk Try to Avoid! © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 26. Beware of Stop Hunting A strategy that attempts to force some market participants out of their positions by driving the price of an asset to a level where many individuals have chosen to set their stop-loss orders. - investopedia © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 27. Mid Day Stop Hunting • Most of the Days 50% of Volume Happens in first or last 30min • Liquidity Dry Up during mid of the day • Very less volume is required to move the stock during mid-day • Weak Longs/Short Removed from the Market © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in
  • 28. A trader always has too much size on when wrong, too little on when right. Avoid Too Much of Leveraged Positions © Copyright 2015 Marketcalls Financial Services Pvt Ltd · All Rights Reserved www.marketcalls.in