Momentum and Fear Index Crossover Strategy
Overview
This strategy judges market trends by calculating the crossover between a momentum indicator and a fear index, and issues sell signals when the two indicators make specific crosses to catch sharp downturns.
Strategy Principle
-
Calculate the 50-period momentum indicator. It represents the price change relative to 50 periods ago.
-
Calculate the 22-period corrected fear index. It represents market panic through the ratio of highest and lowest prices.
-
When the momentum indicator crosses below the fear index, it indicates downside pressure in the market.
-
If the momentum continues to fall into the danger zone (between -5 and 5), a strong sell signal is issued.
Advantage Analysis
-
Using the fear index, an indicator of market sentiment, can effectively determine structural changes in the market.
-
The momentum indicator can judge the speed and magnitude of price changes and aid in determining trend changes.
-
Combining two different types of indicators can improve the accuracy of identifying sudden events.
-
Adjusting parameters allows flexible adaptation to different market environments.
Risk Analysis
-
Crossovers of the fear index and momentum do not guarantee every large decline. Other indicators need to be considered to make the final decision.
-
No stop loss after selling fails to effectively control losses.
-
Reversals and re-entries are not considered. The strategy only suits capturing sudden crashes.
Optimization Directions
-
Set a stop loss after selling to control losses.
-
Add other indicators to judge and improve signal reliability, e.g. volume, Bollinger bands.
-
Add re-entry signals to enable the strategy to run long-term cycles.
-
Optimize parameters to find the best parameter combinations.
Summary
The strategy issues market decline alerts through crossovers of the momentum indicator and fear index. It can effectively capture sudden market crashes. But the strategy only suits short-term usage without exit mechanisms and risk control. Further improvements are needed to make it a sustainable long-term strategy.
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © gary_trades
//THIS SCRIPT HAS BEEN BUIL TO BE USED AS A S&P500 SPY CRASH INDICATOR (should not be used as a strategy).- 1

