Strategy · Pine Script v5 · On the chart

KC Integration

by Sikako

KC Integration is a trading strategy that calculates multiple sets of Keltner Channels tailored for both trend-following and counter-trend conditions.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code276
Settings13inputs
LicenceNone stated
Last update3 years ago4 Jun 2023

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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

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

KC Integration plots upper, middle, and lower channel bands directly on the main price chart to identify potential breakout and mean-reversion setups. Position management and risk controls are governed by customizable profit-to-loss ratios, maximum loss percentage rules, and break-even profit protection thresholds.

Details

Published by

Sikako on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
開始時間timetimestamp("1 Jan 2022 00:00 +0800")startTime
結束時間timetimestamp("1 Jan 2024 00:00 +0800")endTime
順勢 KC天數int310kc_length_same
順勢盈虧比float2.0P_L_ratio_same
逆勢 KC天數int170kc_length_convert
逆勢盈虧比float1.0P_L_ratio_convert
KC1順勢乘數float1.0mult1_same
KC2順勢乘數float1.5mult2_same
KC1逆勢乘數float1.5mult1_convert
KC2逆勢乘數float3.5mult2_convert
開啟套保門檻(%)int5trail_threshold
開啟套開倉門檻(%)int2tao_kai_cang
Show all 13 settings
SettingTypeDefaultVariable
單筆最大虧損率(%)float10.0max_loss_rate
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

BBPullback

by hasnocool
106 stars

This strategy executes pullback trades based on internally computed Bollinger Bands and candle price action directly on the main price chart. It tracks breakout and pullback states to trigger long and short entries. Users can select among three distinct take p

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BBPullback
3 stars

This strategy plots Bollinger Bands on the price chart and enters long only when flat. It buys on a strong bullish close above the middle band or on a small-body pullback that tags the middle band with a long lower wick. The stop sits below the signal bar by a

Strategy v5 Volatility & bandsBreakout
Updated 3 days ago · None stated GitHub repository of H4 布林ATR型態多單策略

A strategy that first classifies the market using ADX and a Bollinger-inside-Keltner squeeze check, then switches between two sub-strategies. In ranging conditions it fades asymmetric Bollinger Band extremes with a 200 EMA trend filter. In trending conditions

Strategy v6 Mean reversionBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Hierarchical HTS v6 Markov-Proxy Regime Switcher
1 stars

The strategy detects range expansion by comparing the previous bar's range to its ATR multiple. It places pending stop entries above highs of up bars or below lows of down bars. On trigger it enters positions with take profit and stop loss in ticks using OCA g

Strategy v6 Volatility & bandsSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 97 - tp/sl gap reversal oca

More Volatility & bands 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