Indicator · Pine Script v5 · On the chart

EarnWithKoKo_1.1

by kamrankhoxa

The indicator plots a linear regression channel on the price chart to identify support and resistance levels.

View on GitHub

Repaints

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code780
Settings40inputs
LicenceNone stated
Last update2 years ago27 Apr 2024

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

EarnWithKoKo_1.1 includes options for diagonal trendlines, horizontal support lines, and detects broken channels. Users can show Fibonacci levels, extend lines, and customize colors and widths. It also provides trend identification based on the channel slope and broken status. The indicator draws on the main price chart with various line objects for visualization.

Details

Published by

kamrankhoxa on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Support & resistance, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

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

SettingTypeDefaultVariable
Diagonal Supportboolfalseinput_diagonal
Horizontal Supportboolfalseinput_horizontal
Sourcesourceclosesrc_lrgc
Lengthint100len_lrgc
Deviationfloat2.devlen_lrgc
Extend Linesbooltrueextendit_lrgc
Show Fibonacci Levelsboolfalseshowfibo_lrgc
Show Broken Channelboolfalseshowbroken_lrgc
brokencol_lrgccolorcolor.bluebrokencol_lrgc
Up/Down Trend Colorscolorcolor.limeupcol_lrgc
dncol_lrgccolorcolor.reddncol_lrgc
Line Widthint2widt_lrgc
Show all 40 settings
SettingTypeDefaultVariable
Color SchemestringBRIGHTcolors_obf
Relevant Periods to identify OBint5periods_obf
Min. Percent move to identify OBfloat0.0threshold_obf
Use whole range [High/Low] for OB marking?boolfalseusewicks_obf
Show latest Bullish Channel?booltrueshowbull_obf
Show latest Bearish Channel?booltrueshowbear_obf
Show Label for documentation tooltip?boolfalseshowdocu_obf
Show Latest OB Panel?boolfalseinfo_pan_obf
length_ex_p_connint100length_ex_p_conn
A-High Positionint1astart_ex_p_conn
B-High Positionint0aend_ex_p_conn
A-Low Positionint1bstart_ex_p_conn
B-Low Positionint0bend_ex_p_conn
Use Custom Source ?boolfalsecsrc_ex_p_conn
Custom Sourcesourceclosesrc_ex_p_conn
Watermarkbooltruewatermarki_supp
Positionstringtopi_tableYpos_oto_supp
i_tableXpos_oto_suppstringrighti_tableXpos_oto_supp
Heightint7i_height_oto_supp
Widthint30i_width_oto_supp
i_c_text_oto_suppcolorcolor.new(color.white, 0)i_c_text_oto_supp
_bg_oto_suppcolorcolor.new(color.blue, 70)_bg_oto_supp
Sizestringnormali_textSize
show time framebooltrueshowTF
show prefix titlebooltrueshowpf
Positionstringbottomi_tableYpos
i_tableXposstringcenteri_tableXpos
titlestringhugesize1
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

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans

Dynamic Linear Regression

by TradersPost
218 stars

Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

ATR Trailing Stop

by mihakralj
99 stars

Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during

Indicator v5 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of ATR Trailing Stop

Moon Dev Lunar Sniper

by moondevonyt
92 stars

Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b

Indicator v6 TrendOscillators & momentum Repaints
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Lunar Sniper

SuperTrend & Pivots

by dcaoyuan
55 stars

This overlay indicator plots a SuperTrend line on the price chart using a fixed ATR length of 10 and a factor of 3. When the trend direction is up it draws a green line and a light green fill toward the candle midpoint; when down it draws a red line and a ligh

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of SuperTrend & Pivots

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers