OPEN-SOURCE SCRIPT
업데이트됨

Trend Following with Donchian Channels and MACD

9 320
This is a trend following system based on the Donchian Channels. Instead of using a simple moving average crossover, this system uses the MACD as the trendfilter:

Long positions:
* Price makes a new 50 day high,
* The MACD-line crosses above or is above the Signal-line.
* Both the MACD and the Signal-lines are above the zero-line.

Short positions:
* Price makes a new 50 day low,
* The MACD-line crosses below or is below the Signal-line.
* Both the MACD and the Signal-lines are below the zero-line.

Stoploss:
The initial and the trailing stoploss are 4 ATRs away from the price.



릴리즈 노트
Removed the MACD from the chart.
Changed entrycondition3 = macd and signal >/< hist to 0
Increased the pyramiding amount to 4 from 3
릴리즈 노트
-
릴리즈 노트
Replaced the multiplier in the position size formula with syminfo.pointvalue in order to get a more accurate position size.
릴리즈 노트
-
릴리즈 노트
Reverted the pyramiding setting from 4 back to 1 to keep the system simple and the max drawdown low.
Added a visual ATR trailing stop, so you know where to put your stoploss.
릴리즈 노트
Adjusted the position size formula.
Improved the stoploss multiplier.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.