Elevated Leverage index System
"Elevated Leverage index System - ELiS" by KivancOzbilgic, MPL-2.0. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: Elevated Leverage index System - ELiS (v1.0), read 2026-10-12T16:04:26.497Z; source language v5.
Licence: Mozilla Public License 2.0 (MPL-2.0) — full text. The source is published with it, modifications included, under the same licence.
Elevated Leverage index System - ELiS by KivancOzbilgic, ported from Pine v5. Pane indicator with 1 plot and 3 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: Elevated Leverage index System - ELiS
// Licence: MPL-2.0 (the header above is the original notice, kept verbatim)
// Pine version: 5
// 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
indicator('Elevated Leverage index System', 'ELiS', overlay=false, format=format.price, precision=0, timeframe='')
gear = input.int(defval=2, title='Conservative=1 Standard=2 Average=3 Risky=4 Agressive=5', minval=1, maxval=5)
src = input(close, title='Source')
period = input(title='Length', defval=50)
mult = 2
basis = ta.sma(src, period)
dev = mult * ta.stdev(src, period)
upper = basis + dev
lower = basis - dev
nATR = ta.atr(period) / src
hATR = ta.highest(nATR, period)
lATR = ta.lowest(nATR, period)
nSD = ta.stdev(src, period) / src
hSD = ta.highest(nSD, period)
lSD = ta.lowest(nSD, period)
MA = ta.wma(nATR, period)
perm = 100 * math.abs(nATR - MA) / MA
pers = 100 * (nSD - lSD) / (hSD - lSD)
pera = 100 * (nATR - lATR) / (hATR - lATR)
perb = 100 * (src - lower) / (upper - lower)
per = gear == 4 or gear == 5 ? (perm + pers + pera + perb) / 4 : gear == 1 ? math.min(100, (pers + pera + perb) / 2.5) : (pers + pera + perb) / 3
EL = (100 - per) / (6 - gear)
ELiS = math.max(1, int(EL + .5))
plot(ELiS, 'ELiS', color.new(#5218FA, 0), 2)
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.