Strategy vault / Machine learning
Fast and Slow Kurtosis Trading Strategy
This strategy uses the crossover of fast and slow Kurtosis lines to generate trading signals. Kurtosis reflects market sentiment and can detect reversal opportunities. The fast line is more sensitive to short-term…
Overview
This strategy uses the crossover of fast and slow Kurtosis lines to generate trading signals. Kurtosis reflects market sentiment and can detect reversal opportunities. The fast line is more sensitive to short-term changes while the slow line filtrates noise. Together they form a stable trading system.
Strategy Logic
The core indicators and rules are:
Kurtosis value: Reflects the steepness of price distribution.
Fast Kurtosis line: Kurtosis calculated with short moving average.
Slow Kurtosis line: Kurtosis calculated with long moving average.
Long signal: Fast line crosses above slow line.
Exit long: Fast line crosses below slow line.
Short signal: Fast line crosses below slow line.
Exit short: Fast line crosses above slow line.
The strategy combines trend and mean-reversion in a simple and intuitive system.
Advantages
Compared to single Kurtosis, the main pros are:
Fast/slow combo avoids false signals.
Fast line captures turns, slow line filters noise.
Simple to implement without complex indicators.
Flexible Kurtosis MA tuning.
Reversal option adapts to different markets.
Clear rules, easy to execute.
Avoids chasing tops/bottoms, controls risk.
Good potential with parameter tuning.
Risks
Despite the merits, risks to consider:
Lag in Kurtosis, cannot avoid all losses.
MA settings significantly impact performance.
No volume filter, risk of false breakouts.
Reliance on historical data, need robustness.
No stops in place, uncontrolled loss per trade.
Overfitting risk from excessive optimization.
Performance degradation from changing markets.
Need to monitor reward/risk ratios and trade frequency.
Enhancements
Based on the analysis, enhancements may include:
Evaluating MA parameters impact on strategy.
Adding volume confirmation to avoid false breaks.
Implementing stop loss and take profit rules.
Robustness testing across markets.
Incorporating machine learning techniques.
Optimizing risk management strategies.
Combining with other indicators for robust signals.
Regular re-testing to prevent overfitting.
Adjusting position sizing and frequency to lower transaction costs.
Conclusion
This strategy uses Kurtosis crossover for a simple and intuitive system. But continual improvements and optimizations are key for any strategy to adapt to changing markets. Through systematic optimization, strategy stability and profitability can be enhanced.
Parameters
| Name | Default | What it controls |
|---|---|---|
| v_input_1 | false | BuyZone |
| v_input_2 | false | Trade reverse |
Source Pine Script
/*backtest
start: 2022-09-16 00:00:00
end: 2023-09-22 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version = 2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 16/12/2016
// This indicator plots the Fast & Slow Kurtosis. The Kurtosis is a market
// sentiment indicator. The Kurtosis is constructed from three different parts.
// The Kurtosis, the Fast Kurtosis(FK), and the Fast/Slow Kurtosis(FSK).
//
// You can change long to short in the Input Settings
// Please, use it only for learning or paper trading. Do not for real trading.
////////////////////////////////////////////////////////////
strategy(title="FSK (Fast and Slow Kurtosis) Backtest", shorttitle="FSK (Fast and Slow Kurtosis)")
BuyZone = input(0)
reverse = input(false, title="Trade reverse")
hline(BuyZone, color=green, linestyle=line)
xMOM_R = mom(mom(close, 3), 1)
xMOM_RAvr = ema(xMOM_R, 65)
xMOM_RWAvr = wma(xMOM_RAvr, 3)
pos = iff(xMOM_RAvr > BuyZone and xMOM_RWAvr > BuyZone, 1,-1)
possig = iff(reverse and pos == 1, -1,
iff(reverse and pos == -1, 1, pos))
if (possig == 1)
strategy.entry("Long", strategy.long)
if (possig == -1)
strategy.entry("Short", strategy.short)
barcolor(possig == -1 ? red: possig == 1 ? green : blue )
plot(xMOM_RAvr, color=blue, title="FK")
plot(xMOM_RWAvr, color=red, title="FSK")Published by ChaoZhang on the FMZ strategy square · last modified 2023-09-23. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Fast-and-Slow-Kurtosis-Trading-Strategy.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Intelligent Exponential Moving Average Trading Strategy Optimization SystemPine Script · Machine learning · 45m
- Neural Moving Average Crossover Trend Following Strategy with EMA Filtering SystemPine Script · Machine learning · 1h
- Bull Bear Power Trading Strategy with Volume Percentile Based Dynamic Take Profit SystemPine Script · Machine learning · 1d
- Multi indicator Quant Trading StrategyPine Script · Machine learning · 1h
- Multi Dynamic Indicator Combination StrategyPine Script · Machine learning · 2d
- Dual Pressure Quantitative Trading StrategyPine Script · Machine learning · 1h