How nehaverma00/stockbacktestproject works
This is a StockSharp-based stock backtesting application. Its main workflow is to load or build a cached, date-filtered CSV of market bars, run those bars through a backtest runner and the break-reversal strategy, then report logged trades and statistics. The repository also contains standalone SMA and end-of-day strategy implementations. The excerpts show their behavior, but not that the main program selects or runs them. No README content was provided, so capability coverage is limited to the source shown.
Main entry points: Program.cs Application Entry · TradeLogger.cs Trade Logger · BaseTradeStrategy.cs Strategy Base · BacktestRunner.cs Backtest Runner
Components 15
Market Data
- Application Entry
Program.cs - CSV Bar Files
- JSON Bar Cache
- Merged CSV
Backtest Runtime
- Backtest Runner
BacktestRunner.cs - History Connector
Strategies
- Break Reversal
BreakReversalStrategy.cs - Strategy Base
BaseTradeStrategy.cs - Strategy Contract
ITradeStrategy.cs - SMA Strategy
SmaStrategy.cs - EOD Strategy
BuyAndSellEodStrategy.cs
Trade Reporting
- Trade Logger
TradeLogger.cs - Trade Summary
TradeSummary.cs - Log And Reports
Other components
- Operator
Connections 18
- Operator → Application Entry: starts
- Application Entry → JSON Bar Cache: loads or saves
Program.cs - Application Entry → CSV Bar Files: scans
Program.cs - Application Entry → Merged CSV: writes
Program.cs - Application Entry → Backtest Runner: runs
Program.cs - Backtest Runner → Merged CSV: reads
BacktestRunner.cs - Backtest Runner → History Connector: configures
BacktestRunner.cs - Backtest Runner → Break Reversal: processes bars
BacktestRunner.cs - Break Reversal → Strategy Base: inherits
BreakReversalStrategy.cs - Strategy Base → Strategy Contract: implements
BaseTradeStrategy.cs - SMA Strategy → Strategy Base: inherits
- EOD Strategy → Strategy Base: inherits
BuyAndSellEodStrategy.cs - Application Entry → Trade Logger: attaches
Program.cs - Trade Logger → Strategy Contract: subscribes to
TradeLogger.cs - Strategy Base → Trade Logger: logs events
BaseTradeStrategy.cs - Trade Logger → Trade Summary: creates
TradeLogger.cs - Trade Logger → Log And Reports: writes
TradeLogger.cs - Application Entry → Trade Logger: prints reports
Program.cs