Daily Close Price Comparison Strategy
Overview
This strategy determines direction by comparing the current bar's closing price to previous bar's closing price. It is a simple trend following strategy, going long when price rises and short when price drops. No complex indicators are needed, just the most basic price information is used to determine trend direction.
Strategy Logic
-
Calculate percentage difference between current bar's closing price and previous bar's closing price.
-
If percentage is greater than the threshold, it indicates rising price, go long.
-
If percentage is less than negative threshold, it indicates falling price, go short.
-
Threshold is set to 0, meaning go long on any rise and short on any drop.
-
No stop loss or take profit logic, relying solely on trend persistence for profitability.
Advantage Analysis
-
Very simple and intuitive trend determination method, easy to understand and implement.
-
No need to compute any technical indicators, reducing resource consumption.
-
Only focuses on core price information, avoiding unnecessary indicator noise.
-
Excellent backtest results but live performance is questionable.
Risk Analysis
-
No stop loss exposes unlimited loss risks.
-
Ineffective in range-bound choppy markets, prone to being trapped.
-
Overfitting risks exist, live performance yet to be validated.
-
Pure trend following cannot lock in profits, realized profit is limited.
Optimization Directions
-
Add trailing stop loss for risk control.
-
Incorporate volatility measures to reduce whipsaws in choppy markets.
-
Test different period parameters for increased robustness.
-
Add trend determination indicators to avoid irrational price moves.
-
Optimize profit taking like lookback highest price to expand profit potential.
Summary
The strategy's core idea is simple but its live performance is questionable. Stronger risk control mechanisms and parameter optimization testing are needed before real application. But the basic concept is worth learning from.
/*backtest
start: 2023-08-17 00:00:00
end: 2023-09-16 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
strategy("Daily Close Comparison Strategy (by ChartArt)", shorttitle="CA_-_Daily_Close_Strat", overlay=false)
// ChartArt's Daily Close Comparison Strategy- 1
