TFlab

Liquidity Finder Library

­čöÁIntroduction
You may intend to utilize the "Liquidity" detection capability in your indicators. Instead of writing it, you can import the "Liquidity Finder" library into your code. One of the advantages of this approach is time-saving and reduction in scripting errors.

­čöÁKey Features

Identification of "Statics Liquidity"
Identification of "Dynamics Liquidity"

­čöÁHow to Use
Firstly, you can add the library to your code as shown in the example below:

import TFlab/LiquidityFinderLibrary/1 as Liq

The parameters of the "LLF" function are as follows:

sPP: A float variable ranging from 0 to 0.4. Increasing this number decreases the sensitivity of the "Statics Liquidity Line Detection" function and increases the number of detected lines. The default value is 0.3.
dPP: A float variable ranging from 0.4 to 1.95. Increasing this number increases the sensitivity of the "Dynamics Liquidity Line Detection" function and decreases the number of detected lines. The default value is 1.
SRs: An int variable. By default, it's set to 8. You can change this number to specify the periodicity of static liquidity pivot lines.
SRd: An int variable. By default, it's set to 3. You can change this number to specify the periodicity of dynamic liquidity pivot lines.
ShowHLLs: A bool variable. You can enable or disable the display of "High Statics Liquidity Line".
ShowLLLs: A bool variable. You can enable or disable the display of "Low Statics Liquidity Line".
ShowHLLd: A bool variable. You can enable or disable the display of "High Dynamics Liquidity Line".
ShowLLd: A bool variable. You can enable or disable the display of "High Dynamics Liquidity Line".


­ččúRecommendation
You can use the following code snippet to import Liquidity Finder into your code for time-saving.

//import Library
import TFlab/LiquidityFinderLibrary/1 as Liq

//input
SLLS = input.float(0.30 , 'Statics Liquidity Line Sensitivity', maxval = 0.4 ,minval = 0.0, step = 0.01) // Statics Liquidity Line Sensitivity
DLLS = input.float(1.00 , 'Dynamics Liquidity Line Sensitivity', maxval = 1.95 ,minval = 0.4, step = 0.01) // Dynamics Liquidity Line Sensitivity
SPP = input.int(8 , 'Statics Period Pivot') // Statics Period Pivot
DPP = input.int(3 , 'Dynamics Period Pivot') // Dynamics Period Pivot
ShowSHLL = input.bool(true , 'Show Statics High Liquidity Line')
ShowSLLL = input.bool(true , 'Show Statics Low Liquidity Line')
ShowDHLL = input.bool(true , 'Show Dynamics High Liquidity Line')
ShowDLLL = input.bool(true , 'Show Dynamics Low Liquidity Line')

//call function

Liq.LLF(SPP,DPP,SLLS,DLLS,ShowSHLL,ShowSLLL,ShowDHLL,ShowDLLL)

Biblioteka Pine

Dzia┼éaj─ůc zgodnie z prawdziwym duchem TradingView, autor opublikowa┼é ten kod Pine jako bibliotek─Ö o otwartym kodzie ┼║r├│d┼éowym, aby inni programi┼Ťci Pine z naszej spo┼éeczno┼Ťci mogli go ponownie wykorzysta─ç. Brawa dla niego! Mo┼╝esz korzysta─ç z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wy┼é─ůczenie odpowiedzialno┼Ťci

Informacje i publikacje przygotowane przez TradingView lub jego u┼╝ytkownik├│w, prezentowane na tej stronie, nie stanowi─ů rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny by─ç w ten spos├│b traktowane ani wykorzystywane. Wi─Öcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzysta─ç z tej biblioteki?

Skopiuj poni┼╝szy wiersz i wklej go w swoim skrypcie.