How vedaaaaaaant/pj_orb_backtester works
Main Components
a. External Systems:
• Zerodha KiteConnect API
• Zerodha Historical Data API
b. Core Components:
• API Initialization Module (represented by init_api-dummy.py)
• Backtester Engine (represented by orb_backtester.py)
• Configuration Layer (for user inputs/parameters)
Data Flow and Interactions
• [Zerodha APIs] ←→ [API Initialization Module] → [Backtester Engine]
• ↑
• [Configuration Layer]
Component Details
a. Configuration Layer (Bottom):
• Stock List (tPF)
• Date Range (stockyear, stockMonth, endMonth)
• Trading Parameters (mta, ord, profitTarget, stoplossTarget)
b. API Initialization Module (Left):
• Authentication and connection management
• Connection to Zerodha's APIs
c. Backtester Engine (Center):
• Subcomponents:
• Data Fetcher
• Strategy Processor
• Results Calculator
Additional Elements
• Version/date information
• Performance-related metrics or limitations
Key Technical Details to Highlight:
• Authentication flow with Zerodha
• Historical data retrieval process
• Strategy execution pipeline
• Results calculation and output format
Remember to include a note about the system's limitations, particularly regarding:
• Current month calculations
• Indian stocks only
• Zerodha API dependencies