3.8 KiB
Name
回撤开仓策略Drawdown-Entry-Strategy
Author
ChaoZhang
Strategy Description
[trans]
概述
本文将介绍一种基于回撤判断的开仓策略。该策略通过监控账户回撤情况,在回撤达到设定值时选择性开仓做多,以在市场反弹时获得较好收益。
策略原理
该策略基于以下几点逻辑:
-
计算账户当前回撤幅度,并绘制于图表中。
-
当回撤达到设定阈值(如5%)时,判断行情可能超卖,做多开仓。
-
若次日收盘价较前一日收高,则平仓套现,回撤交易完成。
-
若无回撤或未达阈值,则不进行交易。
-
回撤交易后,账户将重新计算并等待下次条件达成。
优势分析
该策略具有以下优势:
-
回撤开仓可在市场反弹时获得较好收益。
-
设定回撤阈值后可进行自动化交易。
-
回撤时开仓量可设定较大,可获较大收益。
-
策略逻辑简单清晰,易于操作。
-
可根据市场调整回撤阈值。
风险分析
该策略也存在一些风险:
-
回撤判断不准确可能导致开仓失败。
-
回撤后行情再次下跌可能扩大损失。
-
应适当调整仓位和止损点。
-
需要关注交易频次,避免过度交易。
-
回撤阈值设定应考量账户承受能力。
总结
该策略试图捕捉回撤后的反弹行情。但交易者仍需审时度势,谨慎评估回撤交易时机,并控制好风险。
||
Overview
This article introduces an entry strategy based on drawdowns. It monitors account drawdowns and selectively goes long when drawdown reaches a threshold, aiming to profit from market bounces.
Strategy Logic
The logic is:
-
Calculate current account drawdown percentage and plot it.
-
When drawdown reaches a threshold (e.g. 5%), market may be oversold so go long.
-
If next day's close is higher than previous day's, close long for profit.
-
If no drawdown or threshold not reached, no trades are placed.
-
After drawdown trade, account is reset to recalculate for next signal.
Advantage Analysis
Advantages of the strategy:
-
Drawdown longs can profit from market bounces.
-
Auto trading after reaching drawdown threshold.
-
Larger size possible for higher returns during drawdown.
-
Simple and clear logic for easy implementation.
-
Threshold can be adjusted based on market conditions.
Risk Analysis
There are also some risks:
-
Inaccurate drawdown signal may cause failed trades.
-
Market could drop further after drawdown longs.
-
Position sizing and stops should be set appropriately.
-
Avoid overtrading from excessive signals.
-
Drawdown threshold should consider account risk tolerance.
Conclusion
This strategy tries to capture bounces after drawdowns. But traders should evaluate timing carefully and manage risks when trading drawdowns.
[/trans]
Strategy Arguments
| Argument | Default | Description |
|---|---|---|
| v_input_1 | -5 | Drawdown, % |
Source (PineScript)
/*backtest
start: 2023-08-16 00:00:00
end: 2023-09-15 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//Noro
//2019
//@version=3
strategy(title = "Noro's DD Strategy", shorttitle = "DD str", overlay = false, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, pyramiding = 0)
signal = input(-5.0, title = "Drawdown, %")
bull = close > close[1] ? 1 : 0
bear = close < close[1] ? 1 : 0
lastbull = 0.0
lastbull := bull ? close : lastbull[1]
dd = ((close / lastbull) - 1) * 100
plot(dd, color = black, transp = 20)
bottom = dd < signal
col = bottom ? lime : na
bgcolor(col, transp = 20)
if bottom
strategy.entry("Long", strategy.long)
if strategy.position_size > 0 and close > open
strategy.entry("Close", strategy.short, 0)
Detail
https://www.fmz.com/strategy/427001
Last Modified
2023-09-16 19:18:38