RedK_Fibonacci on Doncian
"RedK_Fibonacci on Doncian (RedK_FibDC_v1)" by RedKTrader, MPL-2.0. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: RedK_Fibonacci on Doncian (RedK_FibDC_v1) (v1.0), read 2026-10-12T16:18:28.684Z; source language v4.
Licence: Mozilla Public License 2.0 (MPL-2.0) — full text. The source is published with it, modifications included, under the same licence.
RedK_Fibonacci on Doncian (RedK_FibDC_v1) by RedKTrader, ported from Pine v4. Overlay indicator with 9 plots and 14 inputs.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RedKTrader // ------------------------------------------------------------------------------------------------ // Original author: RedKTrader // Original title: RedK_Fibonacci on Doncian (RedK_FibDC_v1) // Licence: MPL-2.0 (the header above is the original notice, kept verbatim) // Pine version: 4 // Fetched: 2026-10-12 // Ported to FloScript by FloSignals; modifications under MPL-2.0. // Converter: @flosignals/floscript 0.1.0, strict mode, score 100/100 // ------------------------------------------------------------------------------------------------ //@floscript=1 //@version=5 // Converted by the FloScript converter from a Pine-compatible v4 source. indicator(title="RedK_Fibonacci on Doncian", shorttitle="Redk_FibDC_v1", overlay=true, timeframe="") //Input section dclength = input.int(title="Length", defval=10, minval=1, inline="DC", group="DC Channel") dcmidline = input.bool(title="Center Line", defval=true, inline="DCmidline", group="DC Channel") dcmidclr = input.color(title="......... Color", defval=#00bcd4, inline="DCmidline", group="DC Channel") dcoutline = input.bool(title="Outline", defval=true, inline="DCoutline", group="DC Channel") dcoutclr = input.color(title=".............. Color", defval=#1163f6, inline="DCoutline", group="DC Channel") uselvl_1 = input.bool(title="Level #1", defval=true, inline="Level #1", group="Fibonacci Levels") fiblvl_1 = input.float(title="", defval=0.368, inline="Level #1", group="Fibonacci Levels") fibclr_1 = input.color(title="Color", defval=#ffee33, inline="Level #1", group="Fibonacci Levels") uselvl_2 = input.bool(title="Level #2", defval=true, inline="Level #2", group="Fibonacci Levels") fiblvl_2 = input.float(title="", defval=0.618, inline="Level #2", group="Fibonacci Levels") fibclr_2 = input.color(title="Color", defval=#ff9800, inline="Level #2", group="Fibonacci Levels") uselvl_3 = input.bool(title="Level #3", defval=true, inline="Level #3", group="Fibonacci Levels") fiblvl_3 = input.float(title="", defval=1.272, inline="Level #3", group="Fibonacci Levels") fibclr_3 = input.color(title="Color", defval=#f44433, inline="Level #3", group="Fibonacci Levels") //======================================================================================= //Calcualte DC channel, the mid line, and the fib base unit = half the DC channel, used as base reference dchigh = ta.highest(dclength) dclow = ta.lowest(dclength) dcwidth = dchigh - dclow fibunit = dcwidth / 2 dcmid = (dchigh + dclow) / 2 // === plots plot(dcmidline ? dcmid : na, title="DC MidLine", color=dcmidclr, linewidth=2) plot(dcoutline ? dchigh : na, title="DC Top", color=dcoutclr, linewidth=2) plot(dcoutline ? dclow : na, title="DC Bottom", color=dcoutclr, linewidth=2) // === calculate & plot selected Fib level "pairs" fib1_hi = uselvl_1 ? dcmid + fiblvl_1 * fibunit : na fib1_lo = uselvl_1 ? dcmid - fiblvl_1 * fibunit : na plot(fib1_hi, title="Fib Level 1 Upper", color=color.new(fibclr_1, 50)) plot(fib1_lo, title="Fib Level 1 Lower", color=color.new(fibclr_1, 50)) fib2_hi = uselvl_2 ? dcmid + fiblvl_2 * fibunit : na fib2_lo = uselvl_2 ? dcmid - fiblvl_2 * fibunit : na plot(fib2_hi, title="Fib Level 2 Upper", color=color.new(fibclr_2, 50)) plot(fib2_lo, title="Fib Level 2 Lower", color=color.new(fibclr_2, 50)) fib3_hi = uselvl_3 ? dcmid + fiblvl_3 * fibunit : na fib3_lo = uselvl_3 ? dcmid - fiblvl_3 * fibunit : na plot(fib3_hi, title="Fib Level 3 Upper", color=color.new(fibclr_3, 50)) plot(fib3_lo, title="Fib Level 3 Lower", color=color.new(fibclr_3, 50))
This file is under the Mozilla Public License 2.0; it is a port of the original by RedKTrader, with the original licence header kept and the changes made for FloScript noted in the file.
- v2
Library refresh 2026-10-14
- v1
Library refresh 2026-10-12
Disclaimer. Scripts are written and published by members, or ported by FloSignals from open-source originals, and are their authors' own work and opinion. FloSignals does not review them for correctness and nothing in a script is financial advice or a recommendation to buy or sell anything — read the Risk Disclaimer. Posting here is under the Community Rules; a script that is not the poster's to post can be reported as the Copyright & Takedowns page says.

Comments (0)
No comments yet. Members can leave one.