INVITE-ONLY SCRIPT

Cyatophilum Bands Definitive Edition

Cập nhật
█ OVERVIEW

A Swing Trade indicator providing backtest and alerts which can be used as a long, short or reversal strategy.

Its main goal is to catch breakouts and huge moves, and to try and beat the Buy & Hold Return.


█ CONCEPTS

The strategy consists of a unique custom indicator that works like this:

ảnh chụp nhanh

A Smoothed Donchian Channel combined with a consolidation check will trigger an entry.
The entry is then guided by a faster channel used as a trailing stop.


█ HOW TO USE

The most effective way to use this indicator is on high timeframes, from 2H to 1D.
The recommended pairs are trending pairs with consolidation areas. Yes, I'm especially looking at crypto.

The first appproach would be to catch long and short breakouts, and ride the trend using the trailing stop.
Adjust the Bands wisely to trigger entries at the right time.

ảnh chụp nhanh

The second approach is to go longs only, and try to beat the Buy & Hold return.
For this, click "Go long" and use an order size of 100% equity. Then adjust the Bands, trailing stop and chart timeframe.
The Buy & Hold comparator will come handy when backtesting.

ảnh chụp nhanh


█ INDICATOR SETTINGS

Strategy Direction
Choose wether to go long only, short only or both directions.

Bands Configuration
The bands lookback, smoothing and consolidation % are used to change the behavior of the bands. More info in the settings tooltips.

Trailing Stop
The "speed" of the trailing stop can be configured, allowing more or less room for the price to move before exiting.

Volume Condition
In addition to the consolidation condition, you can add a volume check to your entry. Is the volume rising or not? Useful in most scenarios.

Exit Alert Type
If you want to receive alerts during bars or prefer to ignore wicks.

Backtest Settings
This is where you choose the backtest period which is also used to calculate the B&H return.

Graphics
The configuration panel with all the indicator settings backtest info.
The buy & Hold Comparator is an additional panel that turns green when the strategy's return is greater than the Buy & Hold return.
Note: The Strategy Return is the strategy netprofit + the strategy openprofit.


█ ALERTS

Configure your alert messages for all events in the indicator settings.
Then click "Add Alert". In the popup window, select the option "alert() function calls only", give the alert a name and you are good to go!


█ BACKTEST RESULTS

The backtest settings used in this snapshot are the following:
  • Initial Capital: 10 000$
  • Order size: 100% equity (It indeed compounds and this is intended since the main goal of the strategy is to compare to Buy & Hold return)
  • Commission: 0.1%
  • Slippage : 10 ticks


The Indicator settings used for this are shown in the main chart above.
Phát hành các Ghi chú
Added new Backtest Results panel
You can disable it by going in the style tab -> tables, or by clicking the indicator setting "Backtest Results Table".
You can also change its size if you want to make it bigger or smaller.

It replaces the Buy & Hold Comparator
Phát hành các Ghi chú
fix backtest closing orders with calc on every tick
Phát hành các Ghi chú
Added a take profit feature with trailing TP and 2nd take profit target.
When TP is hit, the strategy will re-enter on the next consolidation + breakout signal.
ảnh chụp nhanh
Phát hành các Ghi chú
Added alerts for TP 1 & TP 2
Phát hành các Ghi chú
When the exit alert type is set to "once per bar", the backtest now properly exits inside bar, at the exact price of the trailing stop and at the same time as the alert, using a stop order.
ảnh chụp nhanh
Phát hành các Ghi chú
Added a Trailing Stop Loss feature, indeed some losses could be prevented in case of reversal.
ảnh chụp nhanh
Phát hành các Ghi chú
Small visual bug fix (when using once per bar exit type sometimes the trailing line was off)
Phát hành các Ghi chú
Added an option to switch from Donchian Channels to Bollinger Bands + another option to filter stronger breakouts based on Keltner channels.
Phát hành các Ghi chú
Updated Alert text inputs. Now allows line returns!
Phát hành các Ghi chú
Never miss a single breakout with the new 'Keltner' Band option!
Added Bands settings: Multiplicator and Offset
Phát hành các Ghi chú
Updated config panel
Phát hành các Ghi chú
Added tooltip
Removed multiplicator for DC channel
Fix some visual bug with Take Profit line continuing when SL was hit
Added custom order size setting
Phát hành các Ghi chú
Added alert placeholders
All alerts:
{price} will return the close price
{ticker} symbol name without exchange prefix
{tickerid} symbol name with exchange prefix
Buy & Sell alert:
{TP}, {TP2}, {SL} will return the TP & SL prices
Phát hành các Ghi chú
Added EMA Trendline as filter
Phát hành các Ghi chú
  • Inputs (quality of life)
  • New ATR trailing stop option
  • Backtest Table new design and options (colors, position)
  • Added Alerts placeholders
  • Plots (gradients, yay!)
Phát hành các Ghi chú
bugfixes (backtest table, limit take profit)
- Added a take profit option to NOT take profit when the global trend is in our direction
- The strategy will no longer enter a trade immediately after take profit is hit
Phát hành các Ghi chú
New inputs:
- Bands Timeframe: Make the Bands higher timeframe and go trade on lower timeframes without changing bands settings!
- Bands Source: Choose between 'Donchian', 'SMA' or 'EMA' to create your bands. Note that SMA and EMA are meant to be used with the new ATR and STDEV inputs but can work on their own!
- Add Standard Deviation to the Bands: This input replaces the previous 'Bollinger Bands' input, and allows more customisation.
- Add Average True Range to the Bands: This input replaces the previous 'Keltner Channels' input, and allows more customisation. Can be combined with the previous inputs!

Bug fixes:
Only graphical fixes within the backtest panel: open profit % is now correct!

New plot: Take Profit EMA used for Trend condition (option released in a previous update)
Phát hành các Ghi chú
Bugfixes: Backtest settings period input for trades.
Phát hành các Ghi chú
Added the option "Entry alert type"
Phát hành các Ghi chú
Updated Trailing Stop line, reduces drawdown and trails the price better!
ảnh chụp nhanh
Phát hành các Ghi chú
Added new features:
Strategy Direction
- reverse order option

Bands Settings
- Range Filter
Prevents fakeouts from previously touched support/resistance (recommended)
- Trend Filter
Creates a MTF pivot to filter trades (recommended)

Stop Loss
- Mode 'Auto', '%', 'pips', 'ATR'.
- Trailing Stop Loss Mode 'Classic', 'ATR', MTF.

Take Profit
- Mode '%', 'pips', 'Auto'.

Alerts
- Take Profit, Exit and Stop loss alerts are all grouped into a single 'EXIT' alert for easier setup.
Phát hành các Ghi chú
Fix of the reverse orders feature
Phát hành các Ghi chú
Backtest Panel: added ATH buy and hold, which is the maximum return a holder can get if he sold at ATH. Useful to compare with your strategy returns, because the buy and hold captured at the end of a bear market is easier to beat.

Added ATR settings for the trailing stop.
Phát hành các Ghi chú
Fix "once per bar" bands exit condition
Phát hành các Ghi chú
The faster exit band is improved to better adapt to the type of bands used, (donchian, true range, standard deviation..)
Added ATR settings for stop loss start price
Phát hành các Ghi chú
Added alert messages for Long & Short TP / SL, in case the unique exit alert wasn't enough.
Phát hành các Ghi chú
Bug fixes
Phát hành các Ghi chú
Fixes:
- "long/short sl alert type" input
- "exit alert (faster band)" replaces "exit all" alert
Phát hành các Ghi chú
Added MTF Trend Filters:
'EXTERNAL', 'Tilson T3', 'Adaptive Tilson T3', 'EMA', 'SMA', 'WMA', 'HULL MA', 'Adaptive HULL MA', 'KAMA', 'ALMA', 'RMA', 'SWMA', 'VWMA','SMMA','VIDYA','FRAMA','DEMA'.

Added NASDAQ/BTC.D Filters.
  • Add a filter for long: do not enter when NASDAQ/BTC.D are falling.
  • Add a filter for long: only enter when NASDAQ/BTC.D are rising.
Phát hành các Ghi chú
Added entry options "rebounds/bounce entries on pivot supports"
- Pick a higher timeframe (for ex 5 days)
- select which supports to enable (ex S2 to S5)
In contrary to the breakouts, the rebound entry can only happen when price is not consolidated.
The rebound entries are affected by the Nasdaq/BTC.D filter.
ảnh chụp nhanh
These rebounds do not happen often but give great buy opportunity.
Long only (for now)
Phát hành các Ghi chú
  • Fixed a repainting issue with the nasdaq/BTC.D filter
  • Code optimisation
Phát hành các Ghi chú

  • Added a "Fast & Simple" Graphics mode to further reduce loading time and chart graphics
Phát hành các Ghi chú

  • Added Alert tutorial label
Phát hành các Ghi chú
Updated Backtest Panel
  • Increased readability
  • Added tooltips
Phát hành các Ghi chú
  • Pivot rebounds will now trigger a short exit event when shorts enabled
  • Inputs clarification
backtestbreakoutsbuyandholdDonchian Channels (DC)swingtradingVolume

Tập lệnh chỉ hiển thị cho người được mời

Quyền truy cập vào tập lệnh này bị hạn chế đối với người dùng được tác giả ủy quyền và thường yêu cầu thanh toán. Bạn có thể thêm nó vào mục yêu thích của mình, nhưng bạn sẽ chỉ có thể sử dụng nó sau khi yêu cầu sự cho phép từ tác giả. Liên hệ cyatophilum để thêm thông tin, hoặc làm theo hướng dẫn của tác giả bên dưới.

TradingView gợi ý bạn không trả tiền để sử dụng tập lệnh trừ khi bạn tin tưởng 100% vào tác giả của tập lệnh và hiểu cách hoạt động của tập lệnh. Trong nhiều trường hợp, bạn có thể tìm thấy giải pháp thay thế nguồn mở tốt miễn phí trong Tập lệnh cộng đồng của chúng tôi.

Hướng dẫn của tác giả

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

Cảnh báo: vui lòng đọc trước khi yêu cầu quyền truy cập.

🔥Get the Cyatophilum Indicators today and automate them on Binance! => blockchainfiesta.com/strategies/

Discord Server: discord.gg/RVwBkpnQzm

I am taking PineScript Commissions ✔
=> blockchainfiesta.com/contact/
Ngoài ra, trên:

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