Woodie Pivot Points Backtest Strategy
Overview
This strategy uses Woodie model to calculate pivots and trade breakouts for backtest. It is a classic pivot breakout strategy.
Strategy Logic
-
Calculate current period pivot and bands using previous period high, low and close.
-
Go long if price breaks above pivot from below.
-
Go short if price breaks below pivot from above.
-
Option to trade reverse signals.
-
Color code different trade signals.
Advantages
-
Woodie model calculation is simple and intuitive.
-
Trading pivot breakouts is a common technique.
-
Visualized pivots and signal markings.
-
Simple and practical default parameters.
-
Code is easy to understand and modify.
Risks
-
Risks of false breakouts after initial breakout.
-
No effective way to set stops and exits.
-
Incorrect model and parameters negatively affect performance.
-
Fails to differentiate trends and ranges.
-
Signals may not be timely.
Enhancement
-
Test different period parameters for optimum values.
-
Add trend filter for additional validation.
-
Incorporate stop loss and take profit for risk control.
-
Assess pullbacks after breakouts for continuing signals.
-
Research ways to gauge the strength of breakouts.
-
Consider combining with other factors for confirmation.
Conclusion
This strategy trades Woodie pivot breakouts. Optimizing parameters, adding stops and exits can improve stability for a reliable short-term system.
/*backtest
start: 2022-09-13 00:00:00
end: 2023-02-22 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 22/08/2018
// Simply input the vales of the high, low and closing price of the previous - 1
