gts.bar() |
table |
Last received bar (any frame): {symbol, period, open, close, high, low, volume, date} |
gts.bar("5Min") |
table |
Latest bar for a specific frame (not overwritten by other frames). |
gts.bars() |
table |
All bars keyed by frame: {"1Min"=bar, "5Min"=bar, ...} |
gts.symbol() |
string |
Current symbol name this script is handling. |
gts.expr("name") |
number |
Expression value by name. |
Auto-provisioned getters — no pre-selection needed; call :value() |
getInd("RSI","30Min") |
handle |
Any indicator (RSI/EMA/MACD/ATR/...). getInd("RSI"):value() < 30 |
getCdl("ENGULFING","5Min","Bearish") |
handle |
Candle pattern (trend Bullish/Bearish); compare :value() > 0. |
getPricePattern("BullFlag",10,"5Min") |
handle |
Chart pattern formation; :value() > 0 on OnFormationDone. |
getAshi("DIRECTION","15Min") · getRenko("ON_BAR_CREATION","5Min",15) |
handle |
Heikin-Ashi / Renko bar fields. |
getAccount("Balance") · getOpenPos("TotalUnits") · getLastPos("CurrentProfitTicks") |
handle |
Account & position metrics (no manual position loops). |
getExt("FvgDetector","15Min") |
handle |
Extended/ICT indicators (200). Multi-output → pass a field. :value() > 0 |
getTickRev("TickRevEvent",10,"Bid") |
handle |
Tick-reversal bar (field, tickRevVal, direction). Fields: TickRevEvent, Direction, Close Price… |
getFibo("TickRevRatioEvent",28,100) |
handle |
Fibonacci bar (field, tickRevRatio, minLenAB). |
getTrend("FastPrice","5Min",9,21) |
handle |
Trend object (field, frame, fastSize, slowSize). Fields: FastPrice, SlowPrice, TrendSide… |
getChannel("UpperChannel","5Min",20,5) |
handle |
Channel (field, frame, minWidth, doneTicks). Fields: UpperChannel, LowerChannel, CurrentLeg… |
getPivot("Pivot Point","5Min") |
handle |
Pivot levels (field, frame). Fields: Pivot Point, Support 1-3, Resistance 1-3. |
getQuote("Bid") |
handle |
Live quote. Fields: Bid, Ask, MidPrice, SpreadInTicks, TicksInPoint, OpenDate. |
getFund("revenue","annual",0) |
handle |
Fundamentals (89): revenue, netIncome, epsBasic, operatingCashflow… (field, periodMode, offset). |
getMove("Direction","5Min") |
handle |
Price move (field, frame). Fields: onPriceMove, Direction, getCurrentWidth/Speed/Duration. |
getABC("Direction","AB",28,2) |
handle |
ABC wave (field, wave, tickRevVal, numElements). Fields: Direction, Distance, Start/End Price… |
getConsensus("SignalA","SignalB") |
handle |
Composite score over real selected signal expressions; compare the score (e.g. :value() > 0.6). |
getInd("RSI"):zscore():meandev(4) |
handle |
Unary history transforms chain on ANY getter: zscore(n) meandev(n) momentum(n) max(n) min(n) accel(n) pctrank(n) signmomentum(n). End with :value(). |
gts.has_bar() / has_bar("5Min") |
boolean |
True if any bar / specific frame bar has been received. |
gts.has_expr("name") |
boolean |
True if expression has been received at least once. |
gts.has_tick() |
boolean |
True if any tick has been received. |
gts.has_open() / has_open(id) |
boolean |
True if any / specific open position exists. |
gts.has_closed() / has_closed(id) |
boolean |
True if any / specific closed position exists. |
gts.tick() |
table |
Last tick: {symbol, bid, ask, volume, date} |
gts.current_open() |
table/nil |
First/only open position, or nil if none. |
gts.last_closed() |
table/nil |
Most recently closed position (by closeDate), or nil. |
gts.open_positions() |
table |
All open positions keyed by id. |
gts.closed_positions() |
table |
All closed positions keyed by id. |
gts.bar_count() / gts.tick_count() |
number |
Running counters of received bars and ticks. |