Robrecht99

DC Breakout Strategy | This is simplicity at its finest.

Robrecht99 Cập nhật   
As the title already describes: this is a Donchian breakout strategy. This strategy, as of now, only goes long. It goes long when the price close makes a new high and the 8 day moving average is above the 32 day moving average. The strategy exits the trade if the price breaks the atr trailing stop of * 3 or the 8 day moving average crosses below the 32 day moving average.

This is simplicity at its finest.
Phát hành các Ghi chú:
-
Phát hành các Ghi chú:
I added short signals to the strategy. And I changed the stop and trailing stop on the long side to 4 ATRs from 3. I kept the 3 ATRs as an SL and TSL on the short signals though.
Phát hành các Ghi chú:
Added ATR based position size.
Removed the stoploss, so you will stay in your trades as long as possible. This also means that you'd close a long position and then almost right away open a short as the trend could reverse.
Phát hành các Ghi chú:
Added customization for the moving averages, the Donchian Channels and your own risk tolerance when it comes to the position sizing. Those include the percentage, shown as 0.01 for example, you're willing to risk per trade and the length of the ATR.
Added a custom back test window.
Phát hành các Ghi chú:
Added pyramiding feature. It takes in account the position sizing formula in the code. I've noticed that the overall performance is greatly improved when applying this pyramiding feature. And combine pyramiding into profitable trades and cut your losses short, and you will earn a lot of money.
Phát hành các Ghi chú:
The multiplier that's needed to calculate the position size has been changed to syminfo.pointvalue. This means that the formula now takes into account the point value of the crypto perpetual contracts.
Phát hành các Ghi chú:
Adjusted the position size formula.
Improved the stoploss multiplier.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?