Know performance, backtest now
that day.
Backtested Gross Gains
This graph compares the Algo's best and worst performance over time, showing how returns can vary depending on when you start using the Algo.
Know performance, backtest now
Performance Summary
Hover to see parameter details.
Tap to see parameter details.
Avg Drawdown
--
Indicates the average decline the strategy experiences in downturns, revealing how deep its typical losses go.
Risk : Reward
--
Indicates how much the Algo typically earns for every rupee it risks. E.g., 1:3 means it targets ₹3 in reward for every ₹1 of risk.
Frequency of trade
--
Indicates how often the Algo trades on average.
Risk
--
Indicates the expected volatility of the Algo and is classified into levels like Low, Medium, and High.
Max Drawdown
--
Indicates the largest decline the Algo has faced so far, reflecting its most severe historical downturn.
Success Ratio
--
Indicates the percentage of trades that end in profit. E.g., 70% means 7 out of 10 trades are winners.
Avg Profit in Trade
--
Indicates the average gain the Algo earns on its winning trades.
Avg Loss in Trade
--
Indicates the average loss the Algo incurs on its losing trades.
Avg Time to Recovery
--
Indicates the average number of days the Algo took to bounce back after experiencing its average drawdown.
Max Time to Recovery
--
Indicates the number of days the Algo took in the past to recover from its worst drawdown to date.
Sharpe Ratio
--
Indicates how well an Algo balances risk and return, showing how effectively it manages volatility.
*Metrics/Analytics basis past data. Historical data does not guarantee future results.
Know performance, backtest now

Strategy Overview
This Python algorithm implements a credit spread strategy on NIFTY options, specifically designed for overnight positions. It leverages intraday option chain data to identify opportunities where selling a credit spread (either call or put) can generate a profit. The core idea is to capitalize on potential range-bound movement or directional bias in the NIFTY index. It involves calculating a proprietary "alpha" signal derived from option chain data, incorporating factors like implied volatility (IV), open interest (OI), volume ratios, and Hamiltonian energy from option prices, which suggests the direction of price movement, and also incorporates kurtosis of IV and other factors for better signal generation. This alpha is designed to capture market sentiment and identify situations where option premiums are likely to decline overnight, leading to profitable credit spread positions. The algorithm generates trading signals based on the calculated "alpha" values. High alpha values (> 0.85 and > 0.8) suggest a potential credit put spread, where a put option is sold and a further out-of-the-money put option is bought for hedge. Conversely, low alpha values (< 0.15 and < 0.2) indicate a potential credit call spread. The algorithm retrieves option chain data, calculates the alpha, and if conditions are met, it places orders to sell the higher strike option and buy the lower strike option for the respective spread. Risk management is implemented through a stop-loss mechanism, calculated as a percentage of the required margin, and a target profit is set with multiple options including full target, and premature target and premature target expiry. The system also incorporates checks for market open status, trading hours (10:15 - 14:15), expiry date, and active trade status to prevent trading under unfavorable conditions, thus prioritizing capital preservation and consistent strategy execution.
This Algo is managed by
Stratzy
Stratzy is a place where you can get tailored guidance for your portfolio to help you make the right investments. Gain access to battle tested algos, automation of your investments and insights about the market, right in the palm of your hand. Your wealth generation begins here.
More algos by Stratzy









































































