LiquidityLines

Liquidity_Levels (MQL5) — Technical Overview
Liquidity_Levels is a MetaTrader 5 chart indicator that consumes pivot data (on a configurable timeframe , defaulting to PERIOD_CURRENT ) to track structural shifts and plot dynamic ILQ and TLQ price levels along with structural markers.

1. How It Works

  •  Pivot Source ( "PivotStructured" ):  ZigZag special points.

  • Structure Direction & Breakout Logic ( OnCalculate ):

    • Carries forward ILQBuffer , TLQBuffer , StructureDirection , TLQTimeBuffer , and ILQTimeBuffer from index [2] to [1] when a new bar forms (prev_calculated != rates_total ).

    • Bearish state ( StructureDirection[1] < 0 ): If high[0] > TLQBuffer[1] , it registers an upward structure shift, places a marker dot in Points[] (Wingdings arrow 159 ), updates TLQBuffer , ILQBuffer , and their anchor timestamps, and sets StructureDirection[1] = 1 . Otherwise, if ArraySize(h) > 1 && h[0].price < lastZZH , it updates ILQBuffer[1] from h[0] and TLQBuffer[1] from h[1] .

    • Bullish state ( StructureDirection[1] >= 0 ): Symmetrically, if low[0] < TLQBuffer[1] , it registers a downward shift, places a marker dot in Points[] , updates buffers/timestamps, and sets StructureDirection[1] = -1 . Otherwise, if ArraySize(l) > 1 && l[0].price > lastZZL , it updates ILQBuffer[1] from l[0] and TLQBuffer[1] from l[1] .

  • Chart Objects & Tester Optimization: Uses OBJ_TREND horizontal segments (RAY_RIGHT = false ) prefixed with ILQ_<TF>_ , TLQ_<TF>_ , and BOS_<TF>_ , updated up to time[1] . Object creation is automatically disabled in non-visual Strategy Tester runs (g_disegna ).

2. Indicator Buffers

Buffer Array Data Window Purpose
0 Points[] Visible ( DRAW_ARROW , code 159 ) Marked structural swing high/low prices ( EMPTY_VALUE otherwise)
1 ILQBuffer[] Visible ( DRAW_NONE ) Current ILQ price level
2 TLQBuffer[] Visible ( DRAW_NONE ) Current TLQ price level
3 StructureDirection[] Visible ( DRAW_NONE ) Structure direction state ( 1 bullish break, -1 bearish break)
4 TLQTimeBuffer[] Hidden ( PLOT_SHOW_DATA = false ) TLQ anchor datetime cast to double
5 ILQTimeBuffer[] Hidden ( PLOT_SHOW_DATA = false ) ILQ anchor datetime cast to double

3. MQL5 Integration Snippet

You can attach the indicator from an EA or script using iCustom and read its buffers via CopyBuffer :
Snippet di codice

input ENUM_TIMEFRAMES InpPivotTF = PERIOD_CURRENT; // TF PIVOTS input color InpClrILQ = clrDodgerBlue; input color InpClrTLQ = clrOrangeRed; input color InpClrBOS = clrLime; input int InpLineWidth = 1; int indHandle = INVALID_HANDLE; int OnInit() { indHandle = iCustom(_Symbol, _Period, "liquiditylines", InpPivotTF, InpClrILQ, InpClrTLQ, InpClrBOS, InpLineWidth); return (indHandle == INVALID_HANDLE) ? INIT_FAILED : INIT_SUCCEEDED; } void OnDeinit(const int reason) { if(indHandle != INVALID_HANDLE) IndicatorRelease(indHandle); } void OnTick() { double ilq[], tlq[], dir[], tlqTime[], ilqTime[]; ArraySetAsSeries(ilq, true); ArraySetAsSeries(tlq, true); ArraySetAsSeries(dir, true); ArraySetAsSeries(tlqTime, true); ArraySetAsSeries(ilqTime, true); // Read index 1 (last closed bar) if(CopyBuffer(indHandle, 1, 1, 1, ilq) != 1 || CopyBuffer(indHandle, 2, 1, 1, tlq) != 1 || CopyBuffer(indHandle, 3, 1, 1, dir) != 1 || CopyBuffer(indHandle, 4, 1, 1, tlqTime) != 1 || CopyBuffer(indHandle, 5, 1, 1, ilqTime) != 1) return; double currentILQ = ilq[0]; double currentTLQ = tlq[0]; double structDir = dir[0]; datetime anchorTLQTime = (datetime)tlqTime[0]; datetime anchorILQTime = (datetime)ilqTime[0]; }


Altri dall’autore
Vi presentiamo l'indicatore Donchian Channels per MQL4, uno strumento potente di analisi tecnica progettato per aumentare il successo delle vostre operazioni. Questo indicatore è composto da quattro linee che rappresentano i limiti superiori e inferiori del movimento dei prezzi in un periodo specificato. Con l'indicatore Donchian Channels potete facilmente individuare potenziali rotture e inversioni di tendenza sul mercato. La linea superiore mostra il massimo più alto del periodo specificato, m
Are you tired of the uncertainty that arises when your orders fail to stop at a specific line due to the spread? Look no further! Introducing our  indicator that plots candlesticks based on the Ask price instead of the traditional bid-based chart commonly used in MQL4. With this indicator, you can say goodbye to the frustrations caused by the bid-based chart, as it provides you with a more accurate representation of market movements. By utilizing the Ask price, which represents the price at whic
L'indicatore SuperChannel per MQL4 è un POTENTE strumento di ANALISI TECNICA progettato per aiutarti a prendere decisioni di trading informate. Basato sulla popolare TECNOLOGIA di indicatore SUPERTREND, questo indicatore offre un approccio UNICO Utilizzando MASSIMI e MINIMI a n periodi invece dell'Average True Range (ATR) per costruire la linea. L'indicatore SuperChannel ti consente di identificare facilmente le tendenze del mercato e di individuare i punti di ingresso e di uscita ottimali per l
quante volte è il range della candela proporzionato all'atr? QUESTO è L'INDICATORE DI CUI AVEVI BISOGNO!!! ti aiuterà a capire meglio il mercato con informazioni utili. fammi sapere nei commenti se ti piace l'indicatore e fammi sapere se ci sono migliorie che posso applicare, sarò felice di apportarle! l'indicatore restituisce un rapporto tra RANGE e ATR.
**** SPECIAL GIFT ****  Since this is my first strategy sold here, i want to give it for a special price for the first 100 buyers :)  **** SPECIAL GIFT **** https://www.instagram.com/reel/DHZE3P1IBED/ <-- here a live bt of my best backtest with this strategy, i bet you can beat me :D a unique strategy based on candlestick patterns and Bollinger Bands to identify and execute trading opportunities. It aims to capitalize on market momentum by analyzing the 'weight' or strength of candlesticks, com
Fortezza Sniper 5P: L'Elite dell'Algoritmo La Formula della Confluenza. Esistono migliaia di Expert Advisor. Poi esiste Fortezza Sniper 5P . Un protocollo riservato, sviluppato per chi esige stabilità istituzionale e protezione assoluta del patrimonio. La logica interna rimane protetta; i risultati parlano da soli. I Fatti (Biennio 2024-2026): Profit Factor: 2.92 Max Drawdown: 2.48% (Stabilità estrema). Efficienza: Rapporto Rendimento/Rischio superiore a 15:1 . Sicurezza: No Martingala. No
️ PROTOCOLLO ORION 2P: L’Architettura del Profitto Inevitabile Smetti di inseguire il mercato. Inizia a dettare le regole. Il trading convenzionale è una battaglia persa contro il caos. PROTOCOLLO ORION 2P non è un indicatore e non è un consiglio: è un Protocollo Algoritmico a Logica Binaria progettato per un’unica missione: l’estrazione sistematica di valore. Mentre gli altri cercano di indovinare la direzione, noi abbiamo costruito una gabbia matematica. L'Anatomia della Perfezione: Il Do
Are you tired of the uncertainty that arises when your orders fail to stop at a specific line due to the spread? Look no further! Introducing our  indicator that plots candlesticks based on the Ask price instead of the traditional bid-based chart commonly used in MQL4. With this indicator, you can say goodbye to the frustrations caused by the bid-based chart, as it provides you with a more accurate representation of market movements. By utilizing the Ask price, which represents the price at whic
Massimizza la precisione operativa con StrutturaFX: l'algoritmo avanzato per la validazione oggettiva della struttura di mercato. Dimentica la discrezionalità: questo strumento identifica i punti strutturali (Swing High/Low) basandosi esclusivamente sulla conferma dinamica del prezzo. Il punto di forza risiede nel filtro logico integrato: un massimo o un minimo viene tracciato come riferimento strutturale solo alla rottura effettiva del precedente livello di riferimento.     Identificazione Fr
Filtro:
Nessuna recensione
Rispondi alla recensione