Colorful code editor representing Lipi scripting engine
⚡ Built into GoCharting

Lipi — GoCharting's
Scripting Engine

Write custom indicators, strategy automations and data visualisations directly on the chart. Native access to orderflow metrics, COT data and a community of 7,000+ shared scripts.

7,000+ Community Scripts
3M+ Traders Worldwide
120+ Countries
#1 Web Orderflow Platform

Lipi is a powerful and flexible scripting language built directly into GoCharting. With access to orderflow metrics, COT data and a thriving community library, Lipi is the most capable scripting engine available in any web-based trading platform. No installs, no plugins — just open the Script Editor and start coding.

What You Can Build

📐
Custom Indicators
Plot any calculation as an overlay or in a separate pane. Combine price, volume and orderflow into a single visual.
Strategy Automation
Define entry and exit rules in code and backtest against historical or live data using GoCharting's built-in backtester.
🔬
Orderflow Metrics
Access Buy/Sell Volume, Delta, Open Interest and COT data natively inside scripts — unique to GoCharting.
📚
7,000+ Community Scripts
Browse and apply scripts published by the GoCharting community — from simple MAs to complex orderflow confluences.

Key Features

  • Full API documentation with examples and code snippets
  • Indicator-on-indicator support — chain multiple scripts together
  • Plot shapes, labels, lines, filled areas and backgrounds from code
  • Alert conditions defined in script — fires on chart or via notification
  • Save and share scripts from the cloud — works across all devices
  • Community support, self-help videos and guided tutorials

Learn & Reference

Community Scripts Showcase

Explore More

Discover what traders have built with Lipi. Browse all 7,000+ scripts →

HILEGA-MILEGA (M)
HILEGA-MILEGA (M)

HILEGA MILEGA BY NK SIR

USES 9 RSI 3 EMA AND 21 WMA

AVAILABLE FOR EVERYONE TO USE

by charun
option master 1
option master 1

buy sell indicator for premium chart 

perfect signal

its a master tool

green buy 

red sell

powerul moving average comination

driven by orderflow and delta 

by hardik pathak
Chop Zone Histogram Nitin 5M
Chop Zone Histogram Nitin 5M

This script is a custom version of the “Chop Zone” indicator.

It measures the angle/slope of the 34 EMA and colors a histogram based on trend strength and direction.

The idea is:


  • Strong upward EMA slope → bullish colors

  • Strong downward EMA slope → bearish colors

  • Flat EMA slope → yellow (choppy/ranging market)
     
by Nitin Patidar
Delta Flow && Resistance
Delta Flow && Resistance

Delta Flow

Delta Flow indicator describes the impact of the aggressive orders on the market price through Delta value. 

by Ali Baba
Delta Flow + Delta Resistance
Delta Flow + Delta Resistance
orderflow

Delta Flow

Delta Flow indicator describes the impact of the aggressive orders on the market price through Delta value.

Delta Rotation

Delta rotation describes the demand and supply per market rotation through Delta.

Delta rotation describes the demand and supply per market rotation through Delta. This allows us to assess whether or not each price movement can be assigned with an increase of demand/supply or on the opposite on the diminishing supply and demand.

The following examples cover different entry points from reference points based on supply and demand shifts

by DevKiller123
1BullBear™ - Sessions
1BullBear™ - Sessions
sessionstimerange

1BB Sessions — Multi-session high/low tracker for the four major global trading windows, with automatic DST handling.

What it shows

For each of Tokyo, London, Premarket (US), and New York, the indicator draws:

  • A top line tracking the running session high
  • A bottom line tracking the running session low
  • A single-character open marker above the first bar (T / L / P / N)

Each session is evaluated in its own local time, and DST is handled automatically — US sessions follow EDT/EST (2nd Sunday March → 1st Sunday November), London follows BST/GMT (last Sunday March → last Sunday October), Tokyo is fixed JST year-round.

Default windows (city local time)

  • Tokyo 09:00 – 15:00
  • London 08:00 – 11:00
  • Premarket 07:00 – 09:00
  • New York 09:30 – 16:00

Inputs

  • Show / hide each session independently
  • Pick a custom color per session

Notes (V1)

First port of the Sessions module from the Pine Script v6 indicator "1BullBear" by KweeBoss_ (TradingView, MPL 2.0).

LipiScript doesn't currently expose drawing primitives (no box.new, line.new, or label.new), so the original Pine boxes are approximated using paired plots for the top/bottom and per-bar character markers for the opens. If LipiScript adds those primitives — or relaxes some of the parser constraints around float math and typing inside functions — a V2 with editable times, background fills, and proper labels becomes straightforward.

Credit: Original Pine Script "1BullBear" by KweeBoss_ — TradingView, MPL 2.0.

by KB 1BB
Dual Rolling VWAP
Dual Rolling VWAP

El Rolling VWAP (VWAP rodante) es una evolución del VWAP tradicional diseñada para eliminar el "efecto memoria" o el sesgo del punto de inicio.

Para entenderlo, primero debemos recordar que el VWAP estándar siempre empieza a calcularse desde un evento fijo (normalmente la apertura de la sesión, el inicio del mes o del año). El Rolling VWAP, en cambio, utiliza una ventana móvil de tiempo o de velas. 

by Carlos Adrian HCD
RDC
RDC

On a 30 minute time frame, when a green candle has negative Min / max delta threshold, and the high of that candle Is broken by the next candle, then we get a buy alert. We star trailing SL at 5% while keeping the SL at 3%. Vice Versa for a red candle .

by kunal sadana
Delta Divergence with Delta Threshold
Delta Divergence with Delta Threshold

This indicator is designed to identify delta divergence-based reversal opportunities using order flow data.

For a buy setup, it first detects a divergence where the price shows strength (a green candle), but the underlying order flow is weak (negative delta). This suggests hidden selling pressure despite price moving up. The next candle must confirm strength by being bullish (green) with a strong delta (at least 90% of the maximum or minimum delta), indicating aggressive buying entering the market. When this confirmation occurs, an up arrow is plotted on the divergence candle, signaling a potential upward move.

For a sell setup, the logic is reversed. It identifies a red candle (price weakness) with positive delta, indicating hidden buying pressure. The following candle must be bearish (red) with a strong imbalance in delta, confirming aggressive selling. A down arrow is then plotted on the divergence candle, signaling a potential downward move.

Overall, the strategy combines price action and order flow imbalance to detect situations where the market may reverse after absorbing opposing pressure, making it useful for spotting high-probability trade entries. 

by TradeVision
Trap Fade Reversal (TFR)
Trap Fade Reversal (TFR)
TFRTrap TradingOderflow

📊 Trap Fade Reversal Indicator :

The Trap Fade Reversal Indicator (TFR) is designed to identify high-probability turning points in the market by analyzing volume footprint dynamics, delta imbalances, and trader aggressiveness. It highlights situations where one side of the market (buyers or sellers) becomes trapped, and fading that imbalance offers a reversal opportunity.

🔑 Core Features

  • Volume Footprint Analysis: Tracks traded volume at each price level to reveal hidden buying or selling pressure.
  • Delta Monitoring: Measures the difference between aggressive buyers and sellers to detect exhaustion or imbalance.
  • Trader Aggressiveness: Identifies when market participants are chasing moves too aggressively, often leading to traps.
  • Call & Put Signals: Generates clear reversal signals:
    • Call (Buy) when sellers are trapped and aggressive selling fails to push price lower.
    • Put (Sell) when buyers are trapped and aggressive buying fails to push price higher.

🎯 Trading Logic

  • Trap Detection: Spots failed breakouts or breakdowns where aggressive traders are caught on the wrong side.
  • Fade Setup: Signals a reversal entry against the trapped side, anticipating a move back toward equilibrium.
  • Confirmation by Volume: Strong signals are validated by volume surges and footprint imbalances.

⚡ Benefits

  • Helps avoid chasing false breakouts.
  • Provides early warning of potential reversals.
  • Enhances decision-making with objective, footprint-based signals.
by Rajib Lochan Sahu

Supported Markets

Lipi scripts work across all GoCharting markets — NSE/BSE Futures & Options, CME Futures (/ES, /NQ, /CL, /GC), Forex & Crypto and Indian equities. Orderflow metrics (delta, buy/sell volume, OI) are available wherever the underlying data feed supports them.

Related Features

← Back to Developers AI Charting Library → Charting Features → Orderflow Tools → Free Orderflow Education →
Start Scripting for Free →