Automatic Long/Short Trading Strategy Based on Daily Pivot Points
Overview
This strategy draws two lines based on the highest and lowest prices of daily candlesticks for judgments of long/short trends. It goes long when price breaks through the highest price line and goes short when price breaks through the lowest price line. It can automatically switch between long and short positions.
Strategy Logic
This strategy mainly utilizes the pivot points of daily candlesticks to determine long/short trends. The so-called "pivot points" refer to yesterday's highest and lowest prices. These two lines form a trading range. If today's price breaks through either of them, it indicates a reversal of the trend.
Specifically, the main logic is as follows:
- Highest price line: Plot yesterday's highest price level. A break-through signals long trend.
- Lowest price line: Plot yesterday's lowest price level. A break-through signals short trend.
- Long entry: Open long position when closing price breaks through highest price line.
- Short entry: Open short position when closing price breaks through lowest price line.
- Stop loss: Long stop loss near lowest price line, short stop loss near highest price line.
By capturing trends through break-throughs of highest/lowest prices, it realizes automatic switching between long and short.
Advantage Analysis
The main advantages of this strategy are:
- Simple logic, easy to understand and implement
- Based on daily bars, long cycle, less susceptible to short-term noises
- Automatic switch between long and short, avoid non-trending markets
- Clear stop loss, beneficial for risk control
Risk Analysis
Some risks:
- Daily bars have lower frequency, unable to stop loss timely
- Fake break-throughs may cause unnecessary losses
- Long holding may lead to expanded losses
Improvements:
- Add other higher frequency indicators for confirmation
- Optimize parameters to filter out fake break-throughs
- Adopt progressive stop loss methods for timely stop loss
Optimization Directions
Some directions:
- More backtesting on different products and longer datasets to test stability
- Explore other break-through indicators like channels, Bollinger Bands etc.
- Incorporate trading volume to avoid false breaks without volume
- Add more filters to reduce false breaks
- Utilize machine learning for parameter optimization
Summary
In summary, this simple strategy realizes auto long/short based on daily pivots. The logic is clear and easy to understand. Further optimizations can improve stability. Investors can apply it to live trading based on personal risk preference.
- 1

