OPEN-SOURCE SCRIPT
Sloping Channels and Grid Drag/Drop

Sloping Channels and Grid Drag/Drop
This indicator plots a set of parallel, sloped projection lines anchored to a single point in time that you choose. Instead of the usual flat horizontal channel, the lines slope forward at a rate you define — either as a fixed percentage per day or a custom slope — so the channel tracks a directional bias rather than a static range.
How it works
Pick an anchor point with the time input. The script locks onto the price at that bar and builds everything from there.
Choose a slope (0–1, with a flip-to-negative option) to set the angle of the projection.
Set a band type — Percent, ATR, or Fixed value — to control the spacing between the base line and the outer bands. Five bands are plotted on each side.
Optionally enable Grid mode to overlay a second, mirrored set of lines (opposite slope) shifted by a multiple of the band width. This is particularly useful for visualizing symmetry between uptrend and downtrend structure around the same anchor.
A vertical marker line highlights your anchor point, and a small info table in the corner shows current band width and active slope.
Why sloped lines instead of flat channels
Flat horizontal channels don't account for underlying drift. Forex pairs in particular tend to respond well to predetermined, consistent slope angles rather than freshly-fitted trendlines — a fixed daily-rate slope often tracks price behavior more reliably than manually redrawing a channel each session. By anchoring a slope to a chosen reference point, this tool lets you project that directional expectation forward and see, in real time, how price behaves relative to it.
Suggested slope settings
For forex, slope values around 0.15, 0.5, and 1 (% per day) tend to work well as starting points. Stocks typically require different values given their different volatility and drift characteristics — treat the presets as a forex-tuned starting point, not a universal default.
Easier than a standard channel
Most channel tools require you to set three points (two to define the trendline, one for the offset) and manually redraw as price evolves. This indicator only needs one anchor point — the slope, spacing, and projection are handled automatically from there.
Notes
Lines are drawn using line.new() with extend.both, so once anchored, they persist and project infinitely in both directions — no repainting from redraws each bar.
Designed for intraday use but the timeframe multiplier scales the slope correctly across timeframes.
Grid shift factor lets you offset the secondary set by up to 2x the band width, without needing a second anchor.
This indicator plots a set of parallel, sloped projection lines anchored to a single point in time that you choose. Instead of the usual flat horizontal channel, the lines slope forward at a rate you define — either as a fixed percentage per day or a custom slope — so the channel tracks a directional bias rather than a static range.
How it works
Pick an anchor point with the time input. The script locks onto the price at that bar and builds everything from there.
Choose a slope (0–1, with a flip-to-negative option) to set the angle of the projection.
Set a band type — Percent, ATR, or Fixed value — to control the spacing between the base line and the outer bands. Five bands are plotted on each side.
Optionally enable Grid mode to overlay a second, mirrored set of lines (opposite slope) shifted by a multiple of the band width. This is particularly useful for visualizing symmetry between uptrend and downtrend structure around the same anchor.
A vertical marker line highlights your anchor point, and a small info table in the corner shows current band width and active slope.
Why sloped lines instead of flat channels
Flat horizontal channels don't account for underlying drift. Forex pairs in particular tend to respond well to predetermined, consistent slope angles rather than freshly-fitted trendlines — a fixed daily-rate slope often tracks price behavior more reliably than manually redrawing a channel each session. By anchoring a slope to a chosen reference point, this tool lets you project that directional expectation forward and see, in real time, how price behaves relative to it.
Suggested slope settings
For forex, slope values around 0.15, 0.5, and 1 (% per day) tend to work well as starting points. Stocks typically require different values given their different volatility and drift characteristics — treat the presets as a forex-tuned starting point, not a universal default.
Easier than a standard channel
Most channel tools require you to set three points (two to define the trendline, one for the offset) and manually redraw as price evolves. This indicator only needs one anchor point — the slope, spacing, and projection are handled automatically from there.
Notes
Lines are drawn using line.new() with extend.both, so once anchored, they persist and project infinitely in both directions — no repainting from redraws each bar.
Designed for intraday use but the timeframe multiplier scales the slope correctly across timeframes.
Grid shift factor lets you offset the secondary set by up to 2x the band width, without needing a second anchor.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.