Scalping Line
"Scalping Line Indicator" by KivancOzbilgic, MPL-2.0. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: Scalping Line Indicator (v1.0), read 2026-10-12T16:05:36.467Z; 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.
Scalping Line Indicator by KivancOzbilgic, ported from Pine v4. Pane indicator with 2 plots, 1 fill, alerts and 4 inputs.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © KivancOzbilgic
// ------------------------------------------------------------------------------------------------
// Original author: KivancOzbilgic
// Original title: Scalping Line Indicator
// 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("Scalping Line", overlay=false)
src = input(close, title="Source")
percent = input.float(1.0, "Percent", step=0.1, minval=0)
mainperiod = input(100, "Main Period")
signalperiod = input(7, "Signal Period")
MA = ta.sma(ta.sma(src, math.ceil(mainperiod / 2)), math.floor(mainperiod / 2) + 1)
ssMA = MA > close + MA * percent / 100 ? MA : MA < close - MA * percent / 100 ? MA : close
signalline = ta.sma(close, signalperiod)
ScalpLine = signalline - ssMA
k1 = plot(ScalpLine, "SLI", color.maroon, 2)
k2 = plot(0, "")
color1 = ScalpLine >= 0 ? color.green : color.red
fill(k1, k2, color=color.new(color1, 80))
alertcondition(ta.crossover(ScalpLine, 0), title="BUY ALARM!", message="SLI BUY Signal!")
alertcondition(ta.crossunder(ScalpLine, 0), title="SELL ALARM!", message="SLI SELL Signal!")
This file is under the Mozilla Public License 2.0; it is a port of the original by KivancOzbilgic, 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.