Find a MarketXLS India formula

MarketXLS India streams Indian market data into Excel through your Zerodha or Angel One account. Every function uses the MXLSIN. prefix.

96 functions in the reference
Example syntax
Try:
Skip to formula results
Categories

Explore functions

96 of 96 functions shown

ZerodhaLast

MXLSIN.ZerodhaLast(symbol)

Streams the live last traded price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaVolume

MXLSIN.ZerodhaVolume(symbol)

Streams the live traded volume for the day for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaOpen

MXLSIN.ZerodhaOpen(symbol)

Streams the live day open price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaHigh

MXLSIN.ZerodhaHigh(symbol)

Streams the live day high for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaLow

MXLSIN.ZerodhaLow(symbol)

Streams the live day low for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaPreviousClose

MXLSIN.ZerodhaPreviousClose(symbol)

Streams the live previous close for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaBuyQuantity

MXLSIN.ZerodhaBuyQuantity(symbol)

Streams the live total pending buy quantity for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaSellQuantity

MXLSIN.ZerodhaSellQuantity(symbol)

Streams the live total pending sell quantity for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaBidPrice

MXLSIN.ZerodhaBidPrice(symbol)

Streams the live best bid price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaAskPrice

MXLSIN.ZerodhaAskPrice(symbol)

Streams the live best ask price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaBidSize

MXLSIN.ZerodhaBidSize(symbol)

Streams the live best bid quantity for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaAskSize

MXLSIN.ZerodhaAskSize(symbol)

Streams the live best ask quantity for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaChange

MXLSIN.ZerodhaChange(symbol)

Streams the live change from previous close for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaLastTradeTime

MXLSIN.ZerodhaLastTradeTime(symbol)

Streams the live time of the last trade for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaOpenInterest

MXLSIN.ZerodhaOpenInterest(symbol)

Streams the live open interest for a futures or option contract from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaOpenInterestDayHigh

MXLSIN.ZerodhaOpenInterestDayHigh(symbol)

Streams the live day high of open interest for a futures or option contract from your Zerodha connection. Updates on every tick while the workbook is open.

ZerodhaOpenInterestDayLow

MXLSIN.ZerodhaOpenInterestDayLow(symbol)

Streams the live day low of open interest for a futures or option contract from your Zerodha connection. Updates on every tick while the workbook is open.

AngelOneLast

MXLSIN.AngelOneLast(symbol)

Streams the live last traded price for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneVolume

MXLSIN.AngelOneVolume(symbol)

Streams the live traded volume for the day for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneOpen

MXLSIN.AngelOneOpen(symbol)

Streams the live day open price for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneHigh

MXLSIN.AngelOneHigh(symbol)

Streams the live day high for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneLow

MXLSIN.AngelOneLow(symbol)

Streams the live day low for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOnePreviousClose

MXLSIN.AngelOnePreviousClose(symbol)

Streams the live previous close for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneBuyQuantity

MXLSIN.AngelOneBuyQuantity(symbol)

Streams the live total pending buy quantity for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneSellQuantity

MXLSIN.AngelOneSellQuantity(symbol)

Streams the live total pending sell quantity for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneBidPrice

MXLSIN.AngelOneBidPrice(symbol)

Streams the live best bid price for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneAskPrice

MXLSIN.AngelOneAskPrice(symbol)

Streams the live best ask price for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneBidSize

MXLSIN.AngelOneBidSize(symbol)

Streams the live best bid quantity for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneAskSize

MXLSIN.AngelOneAskSize(symbol)

Streams the live best ask quantity for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneChange

MXLSIN.AngelOneChange(symbol)

Streams the live percent change from the previous close for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneLastTradeTime

MXLSIN.AngelOneLastTradeTime(symbol)

Streams the live time (IST) of the last trade for an Indian stock, index, future or option from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneOpenInterest

MXLSIN.AngelOneOpenInterest(symbol)

Streams the live open interest for a futures or option contract from your Angel One connection. Updates on every tick while the workbook is open.

AngelOneUpperCircuit

MXLSIN.AngelOneUpperCircuit(symbol)

Streams the upper circuit (price band) limit for an Indian stock, future or option from your Angel One connection.

AngelOneLowerCircuit

MXLSIN.AngelOneLowerCircuit(symbol)

Streams the lower circuit (price band) limit for an Indian stock, future or option from your Angel One connection.

ZerodhaHistory

MXLSIN.ZerodhaHistory(symbol, interval, fromDate, toDate)

Returns historical OHLCV candles for a stock, index, future or option from Zerodha. Intervals from 1 minute to daily.

ZerodhaCloseHistorical

MXLSIN.ZerodhaCloseHistorical(symbol, date)

Returns the closing price for a symbol on a specific past date from Zerodha.

ZerodhaOpenHistorical

MXLSIN.ZerodhaOpenHistorical(symbol, date)

Returns the opening price for a symbol on a specific past date from Zerodha.

ZerodhaHighHistorical

MXLSIN.ZerodhaHighHistorical(symbol, date)

Returns the high price for a symbol on a specific past date from Zerodha.

ZerodhaLowHistorical

MXLSIN.ZerodhaLowHistorical(symbol, date)

Returns the low price for a symbol on a specific past date from Zerodha.

ZerodhaVolumeHistorical

MXLSIN.ZerodhaVolumeHistorical(symbol, date)

Returns the traded volume for a symbol on a specific past date from Zerodha.

ZerodhaOpenInterestHistorical

MXLSIN.ZerodhaOpenInterestHistorical(symbol, date)

Returns the open interest for a symbol on a specific past date from Zerodha. Works for futures and options.

ZerodhaReturn

MXLSIN.ZerodhaReturn(symbol, days)

Returns the percentage price return of a symbol over the last N days, using Zerodha history.

Zerodha52WeekHigh

MXLSIN.Zerodha52WeekHigh(symbol)

Returns the 52-week high price of a symbol from Zerodha history.

Zerodha52WeekLow

MXLSIN.Zerodha52WeekLow(symbol)

Returns the 52-week low price of a symbol from Zerodha history.

AngelOneHistory

MXLSIN.AngelOneHistory(symbol, interval, fromDate, toDate)

Returns historical OHLCV candles for a symbol from Angel One. Intervals from 1 minute to daily.

AngelOneCloseHistorical

MXLSIN.AngelOneCloseHistorical(symbol, date)

Returns the closing price for a symbol on a specific past date from Angel One.

AngelOneOpenHistorical

MXLSIN.AngelOneOpenHistorical(symbol, date)

Returns the opening price for a symbol on a specific past date from Angel One.

AngelOneHighHistorical

MXLSIN.AngelOneHighHistorical(symbol, date)

Returns the high price for a symbol on a specific past date from Angel One.

AngelOneLowHistorical

MXLSIN.AngelOneLowHistorical(symbol, date)

Returns the low price for a symbol on a specific past date from Angel One.

AngelOneVolumeHistorical

MXLSIN.AngelOneVolumeHistorical(symbol, date)

Returns the traded volume for a symbol on a specific past date from Angel One.

AngelOneOpenInterestHistorical

MXLSIN.AngelOneOpenInterestHistorical(symbol, date)

Returns the open interest of a futures or option contract at the close of a specific past date from Angel One.

AngelOneReturn

MXLSIN.AngelOneReturn(symbol, days)

Returns the percentage price return of a symbol over the last N days, using Angel One history.

AngelOne52WeekHigh

MXLSIN.AngelOne52WeekHigh(symbol)

Returns the 52-week high price of a symbol from Angel One history.

AngelOne52WeekLow

MXLSIN.AngelOne52WeekLow(symbol)

Returns the 52-week low price of a symbol from Angel One history.

Candles

MXLSIN.Candles(symbol, [interval], [bars], [mode], [broker])

Spills the last N candles (Date, Open, High, Low, Close, Volume, OI) from your connected broker and keeps them updating.

Indicator

MXLSIN.Indicator(symbol, indicator, [interval], [params], [output], [mode], [broker])

Calculates any supported technical indicator on live broker candles. Pick the indicator, interval, settings and output line.

RSI

MXLSIN.RSI(symbol, [interval], [period], [output], [mode], [broker])

Relative Strength Index (Wilder) on live broker candles. Returns the latest value or a dated series.

EMA

MXLSIN.EMA(symbol, [interval], [period], [output], [mode], [broker])

Exponential moving average on live broker candles.

SMA

MXLSIN.SMA(symbol, [interval], [period], [output], [mode], [broker])

Simple moving average on live broker candles.

MACD

MXLSIN.MACD(symbol, [interval], [fast], [slow], [signal], [output], [mode], [broker])

MACD on live broker candles. Leave output blank to spill MACD, Signal and Histogram across three cells.

Bollinger

MXLSIN.Bollinger(symbol, [interval], [period], [stddev], [output], [mode], [broker])

Bollinger Bands on live broker candles. Blank output spills Middle, Upper, Lower, Bandwidth and %B.

SuperTrend

MXLSIN.SuperTrend(symbol, [interval], [period], [multiplier], [output], [mode], [broker])

SuperTrend on live broker candles. Blank output spills the SuperTrend value and direction (+1 up, -1 down).

VWAP

MXLSIN.VWAP(symbol, [interval], [output], [mode], [broker])

Intraday volume-weighted average price on live broker candles. Resets each trading day.

ATR

MXLSIN.ATR(symbol, [interval], [period], [output], [mode], [broker])

Average True Range (Wilder) on live broker candles.

ADX

MXLSIN.ADX(symbol, [interval], [period], [output], [mode], [broker])

ADX with +DI and -DI on live broker candles. Blank output spills ADX, +DI and -DI.

Stochastic

MXLSIN.Stochastic(symbol, [interval], [k], [ksmooth], [d], [output], [mode], [broker])

Stochastic oscillator on live broker candles. Blank output spills %K and %D.

CalcIndicator

MXLSIN.CalcIndicator(indicator, params, close, [high], [low], [volume], [output])

Calculates any indicator on your own price ranges in the sheet. No broker connection needed.

Crossover

MXLSIN.Crossover(symbol, fast, slow, [interval], [output], [mode], [broker])

Detects a crossover of two values on the latest candle: +1 when the first crosses above the second, -1 when it crosses below, 0 otherwise.

Signal

MXLSIN.Signal(symbol, rule, [interval], [mode], [broker])

Returns TRUE when your rule holds on the latest candle. Combine indicators with AND / OR.

Scan

MXLSIN.Scan(symbols, rule, [interval], [output], [mode], [broker])

Scans a list of up to 500 symbols and returns the ones where your rule holds on the latest candle.

Backtest

MXLSIN.Backtest(symbol, entry, [exit], [interval], [from], [to], [options], [broker])

Backtests a rule-based strategy on broker history and returns a statistics table. Signals use candle closes and fill at the next open.

Backtest_Trades

MXLSIN.Backtest_Trades(symbol, entry, [exit], [interval], [from], [to], [options], [broker])

Returns the trade-by-trade list for a backtest. Takes the same arguments as Backtest.

OptionChain_Greeks

MXLSIN.OptionChain_Greeks(underlying, [expiry], [strikesAroundAtm], [riskFreeRate])

Live option chain with Black-76 IV and Greeks from Zerodha or Angel One. IV in %, Theta per day, Vega per vol point.

ZerodhaOptionChain

MXLSIN.ZerodhaOptionChain(underlying, [expiry])

Returns the option chain for an F&O underlying from Zerodha, optionally for a specific expiry.

AngelOneOptionChain

MXLSIN.AngelOneOptionChain(underlying, [expiry])

Returns the option chain for an F&O underlying from Angel One, optionally for a specific expiry.

PCR

MXLSIN.PCR(underlying, [expiry], [basis])

Live put-call ratio for one expiry from Zerodha or Angel One: total put OI divided by total call OI (or volume).

MaxPain

MXLSIN.MaxPain(underlying, [expiry])

Live max pain strike for one expiry from Zerodha or Angel One: the strike where option writers pay the least at expiry.

OIBuildup

MXLSIN.OIBuildup(symbol, [showDetails])

Classifies live OI buildup for a futures or option contract: Long buildup, Short buildup, Short covering, Long unwinding or Neutral.

IV

MXLSIN.IV(optionPrice, futuresPrice, strike, expiry, optionType, [riskFreeRate])

Black-76 implied volatility (in percent) of an Indian option priced off its futures price. Time to expiry runs to 15:30 IST.

opt_Delta

MXLSIN.opt_Delta(currentStockPrice, marketOptionPrice, expiryDate, optionType, strikePrice, [riskFreeRate], [dividendYield], [sigma])

Calculates option Delta from spot price, option price, expiry, type and strike. Rate, dividend and sigma are optional.

opt_Gamma

MXLSIN.opt_Gamma(currentStockPrice, marketOptionPrice, expiryDate, optionType, strikePrice, [riskFreeRate], [dividendYield], [sigma])

Calculates option Gamma from spot price, option price, expiry, type and strike.

opt_Vega

MXLSIN.opt_Vega(currentStockPrice, marketOptionPrice, expiryDate, optionType, strikePrice, [riskFreeRate], [dividendYield], [sigma])

Calculates option Vega from spot price, option price, expiry, type and strike.

opt_ImpliedVolatility

MXLSIN.opt_ImpliedVolatility(currentStockPrice, marketOptionPrice, expiryDate, optionType, strikePrice, [riskFreeRate], [dividendYield], [sigma])

Calculates implied volatility from spot price, option market price, expiry, type and strike.

Payoff

MXLSIN.Payoff(legs, [priceFrom], [priceTo], [steps])

Expiry P&L of a multi-leg option or futures strategy across a range of underlying prices. No broker connection needed.

Payoff_Summary

MXLSIN.Payoff_Summary(legs)

Max profit, max loss, breakevens and net premium of a multi-leg strategy at expiry. No broker connection needed.

ExpirationNext

MXLSIN.ExpirationNext(symbol, [numberOfExpirations])

Returns the next option expiry for a symbol as an Excel date. Ask for the 2nd or 3rd expiry with the optional count.

StrikeNext

MXLSIN.StrikeNext(symbol, [numberOfStrikes], [ExpirationDate])

Returns the strike closest to the underlying's last price, or N strikes away. Optional expiry.

OptionSymbol

MXLSIN.OptionSymbol(Symbol, ExpirationDate, CallOrPut, Strike)

Builds a MarketXLS option symbol from the underlying, expiry, call or put, and strike.

FutureSymbol

MXLSIN.FutureSymbol(symbol, expiryDate)

Builds a MarketXLS futures symbol from a base symbol and expiry date.

ZerodhaGetOrders

MXLSIN.ZerodhaGetOrders()

Lists the orders in your connected Zerodha Kite account.

ZerodhaOrderCount

MXLSIN.ZerodhaOrderCount()

Returns the number of orders in your connected Zerodha Kite account.

AngelOneHoldings

MXLSIN.AngelOneHoldings()

Lists the holdings in your connected Angel One account.

AngelOnePositions

MXLSIN.AngelOnePositions()

Lists the open positions in your connected Angel One account.

AngelOneOrders

MXLSIN.AngelOneOrders()

Lists the orders in your connected Angel One account.

AngelOneOrderCount

MXLSIN.AngelOneOrderCount()

Returns the number of orders in your connected Angel One account.

Broker

MXLSIN.Broker()

Returns the broker the indicator functions are using (Zerodha or Angel One) and updates when it changes.