Indicator · Pine Script v6 · On the chart

MapleStax CBC Trend Filter [Danny]

by Danny110217

MapleStax CBC Trend Filter is an overlay indicator that analyzes candle body breaks combined with multi-timeframe trend context.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,033
Settings40inputs
LicenceNone stated
Last update2 weeks ago10 Nov 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

MapleStax CBC Trend Filter [Danny] plots EMA clouds, VWAP, key reference levels, session opening ranges, LTF and HTF pivots, and touch signals for major moving averages. Users can filter buy and sell labels to only align with higher-timeframe trend direction using configurable trend filter modes. All elements are drawn directly on the price chart. Higher timeframe calculations may utilize lookahead logic on historical bars.

Details

Published by

Danny110217 on GitHub

Draws

On the price chart

Markets

Indices

Timeframes

M1-M5, M15-H1, H4 and above

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Solo senales a favor de tendenciabooltruetrend_filter_on
Confirmacion de tendenciastringEMA Cloudtrend_filter_mode
Filtrar tambien etiquetas LONG/SHORT HTFbooltruetrend_filter_htf
Show CBC Reversalbooltrueshow_reversal
EMA20 touch dotsbooltrueshow_ema_touch_dots
VWAP touch dotsbooltrueshow_vwap_touch_dots
EMA200 touch dotsbooltrueshow_ema200_touch_dots
BRSG Zoneboolfalseshow_brsg_zone
col_brsg_zonecolorcolor.graycol_brsg_zone
Highfloat0.55brsg_high_mult
Lowfloat0.45brsg_low_mult
Pivotboolfalseshow_ltf_pivots
Show all 40 settings
SettingTypeDefaultVariable
Nint1ltf_piv_n
Hcolorcolor.redcol_ltf_piv_res
Lcolorcolor.greencol_ltf_piv_sup
Widthint1ltf_piv_w
StyleenumRefLineStyle.dashedltf_piv_style
HTF EMA cloudboolfalseshow_htf_ema_cloud
htf_enabledbooltruehtf_enabled
Timeframetimeframe10htf_timeframe
Sizestringnormalhtf_label_size
HTF LONG/SHORT labelsbooltrueshow_htf_cbc_labels
Pivotboolfalseshow_htf_pivots
Nint1htf_piv_n
Hcolorcolor.redcol_htf_piv_res
Lcolorcolor.greencol_htf_piv_sup
Widthint2htf_piv_w
StyleenumRefLineStyle.dashedhtf_piv_style
CBC agreement bar colorsboolfalseshow_bar_coloring
New Yorkbooltrueor_ny
col_orb_ny_lblcolor#ffeb3bcol_orb_ny_lbl
col_orb_ny_fillcolorcolor.rgb(255, 235, 59, 90)col_orb_ny_fill
Londonboolfalseor_london
col_orb_ln_lblcolor#9c27b0col_orb_ln_lbl
col_orb_ln_fillcolorcolor.rgb(155, 39, 176, 90)col_orb_ln_fill
Asianboolfalseor_asian
col_orb_as_lblcolor#e65100col_orb_as_lbl
col_orb_as_fillcolorcolor.rgb(230, 81, 0, 90)col_orb_as_fill
Minutesint30or_minutes
YDHbooltrueshow_ydh
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Pivot Trendlines

by g-moe
3 stars

This indicator identifies pivot highs and lows using a swing lookback period and connects them with trendlines on the price chart. It generates long and short entry signals when price moves through predefined percentage thresholds in three steps for buy and se

Indicator v5 TrendSupport & resistance
Updated 6 months ago · None stated GitHub repository of Pivot Trendlines
2 stars

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Day Trading Strategy v1

TB: Main Indicators

by farias-hecdin
1 stars

This indicator collects overlay tools for the price chart in one script. It draws two configurable vertical time separators, tints the background by day of week, and plots two EMAs of 100 and 50 periods. It also marks support and resistance from pivot highs an

Indicator v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of TB: Main Indicators
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of Auto Trade Futures ES

Midnight VWAP

by TradersPost
228 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 4 months ago · None stated GitHub repository of Midnight VWAP

Ichimoku Cloud

by harryguiacorn
220 stars

This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers