Market State Engine
See market direction, weakening conditions, and conflicting signals at a glance.
Market State Engine combines adaptive market structure, Ichimoku clouds, and distinct candle colors. A compact vertical dashboard in the upper-right corner brings together market state, relative volume, volatility, and relative performance—with mini charts for added context.
READ MARKET CONDITIONS THROUGH COLOR
Not every price move marks the start of a new trend. Market State Engine distinguishes the prevailing regime from weakening conditions within it.
• Green — bullish regime.
• Blue — weakening within a bullish regime.
• Red — bearish regime.
• Amber — weakening within a bearish regime.
• Gray — conflicting or undetermined conditions.
Market structure and Kumo confirmation establish the directional regime. Price entering the Kumo or moving to the unfavorable side of the Tenkan–Kijun cloud can indicate weakening. Weakening colors require two consecutive qualifying closed bars within the same regime.
TWO CLOUDS FOR TREND PERSPECTIVE
The Kumo cloud provides broader trend context, while the Tenkan–Kijun cloud highlights shorter-term conditions.
The Kumo retains its Ichimoku displacement, but its drawing stops at the latest price bar to keep the space ahead of price clear.
KEY INFORMATION IN ONE DASHBOARD
State — Structure + Kumo
Displays BULLISH, BEARISH, NEUTRAL, or CONFLICT. A conflict appears when price closes beyond the opposite side of the Kumo without matching structure confirmation for a regime change.
Rel. Vol. — Volume / Avg.
Compares the evaluated bar’s volume with the average of the preceding bars, excluding that bar from the average. A reading of 1.50× means volume is 50% above average.
A mini column chart shows the latest 20 evaluated bars. Orange columns indicate readings at or above 1×; gray columns indicate readings below it. A dashed line marks the 1× reference level.
Volatility — Norm. BBW
Shows normalized Bollinger Band Width as a score out of 100. Lower readings indicate narrower bands relative to the reference range; higher readings indicate wider bands.
A mini line chart tracks the latest 20 evaluated scores on a fixed 0–100 scale. This score is neither a percentage price change nor a percentile ranking, and it does not indicate price direction.
Rel. Perf. — TechRank · Sector & Mkt Cap
Displays the latest available TechRank relative-performance score for the same-sector and market-cap comparison group. Higher scores indicate stronger relative performance.
A horizontal bar shows the current score out of 100. Readings below 20 are red, readings above 80 are green, and the middle range is gray.
BAR HANDLING
Structure, relative volume, and volatility use the selected chart timeframe. State confirmation and the volume/volatility dashboard readings exclude the rightmost bar, treating it as potentially unfinished. This also means they remain one bar behind when the rightmost bar has already closed.
Relative Performance uses the latest available reading from its separate data source. Dashboard metrics provide context and do not determine the regime or candle colors.
DESIGNED TO FIT YOUR CHART
Translucent clouds, adjustable calculation parameters, customizable candle colors, and a compact dark dashboard keep the display organized and price action visible.
Market State Engine is designed to help interpret market conditions. It is not a standalone buy/sell system.
TSBuild26
// ============================================================
// INDICATOR
// ============================================================
describe_indicator('Market State Engine', 'price', {
shortName: 'MSE',
warmup: 600
});
// ============================================================
// INPUTS - STRUCTURE
// ============================================================
const swingGroup = input.group('Structure');
const atrLength = swingGroup.number('ATR Length', 14, { min: 2, max: 100 });
const reversalATR = swingGroup.number('ATR Reversal', 1.50, { min: 0.25, max: 5 });
// ============================================================
// INPUTS - VOLATILITY
// ============================================================
const volatilityGroup = input.group('Volatility');
const bbLength = volatilityGroup.number('BB Length', 20, { min: 5, max: 100 });
const volatilityLookback = volatilityGroup.number(
'Reference Lookback', 100, { min: 20, max: 500 }
);
// ============================================================
// INPUTS - RELATIVE VOLUME
// ============================================================
const volumeGroup = input.group('Relative Volume');
const volumeLookback = Math.floor(volumeGroup.number('Average Length', 20, { min: 2, max: 500 }));
// ============================================================
// INPUTS - ICHIMOKU
// ============================================================
const ichimokuGroup = input.group('Ichimoku');
const ichiSettings = {
tenkan: Math.floor(ichimokuGroup.number('Tenkan Length', 9, { min: 1 })),
kijun: Math.floor(ichimokuGroup.number('Kijun Length', 26, { min: 1 })),
displacement: Math.floor(ichimokuGroup.number('Displacement', 26, { min: 1, max: 99 })),
senkouB: Math.floor(ichimokuGroup.number('Senkou B Length', 52, { min: 1 })),
colors: { tenkan: '#05589a', kijun: '#f47e1c', a: '#4ead51', b: '#ba1f1f' }
};
// ============================================================
// INPUTS - CANDLE COLORS
// ============================================================
const colorGroup = input.group('Candle Colors');
const bullColor = colorGroup.color('Bull', '#12AD68');
const bullMutedColor = colorGroup.color('Bull Muted', '#0977bb');
const neutralColor = colorGroup.color('Neutral', '#808896');
const bearMutedColor = colorGroup.color('Bear Muted', '#D99A32');
const bearColor = colorGroup.color('Bear', '#F04461');
// ============================================================
// CLOUD OPACITY
// ============================================================
const tkOpacity = 0.1;
const kumoOpacity = 0.3;
// ============================================================
// STATES
// ============================================================
const DIR_BEARISH = -1;
const DIR_NEUTRAL = 0;
const DIR_BULLISH = 1;
const LEG_FALLING = -1;
const LEG_NEUTRAL = 0;
const LEG_RISING = 1;
const PHASE_NEUTRAL = 0;
const PHASE_CLEAR = 1;
const PHASE_MUTED = 2;
// ============================================================
// HELPERS
// ============================================================
function validNumber(value) {
return Number.isFinite(value);
}
function clampValue(value, minimum, maximum) {
return Math.max(minimum, Math.min(maximum, value));
}
// ============================================================
// ADAPTIVE SWING
// ============================================================
function buildAdaptiveSwing(atrValues, reversalMultiplier) {
const activeLeg = series_of(LEG_NEUTRAL);
const confirmedHigh = series_of(null);
const confirmedLow = series_of(null);
let leg = LEG_NEUTRAL;
let candidateHigh = null;
let candidateLow = null;
let currentHigh = null;
let currentLow = null;
for (let i = 0; i < close.length; i += 1) {
const atrValue = atrValues[i];
const price = close[i];
if (validNumber(atrValue) && atrValue > 0 && validNumber(price)) {
const reversalDistance = atrValue * reversalMultiplier;
if (candidateHigh === null) {
candidateHigh = high[i];
candidateLow = low[i];
} else if (leg === LEG_NEUTRAL) {
candidateHigh = Math.max(candidateHigh, high[i]);
candidateLow = Math.min(candidateLow, low[i]);
const moveUp = price - candidateLow;
const moveDown = candidateHigh - price;
if (moveUp >= reversalDistance || moveDown >= reversalDistance) {
if (moveUp >= moveDown) {
currentLow = candidateLow;
leg = LEG_RISING;
candidateHigh = high[i];
} else {
currentHigh = candidateHigh;
leg = LEG_FALLING;
candidateLow = low[i];
}
}
} else if (leg === LEG_RISING) {
candidateHigh = Math.max(candidateHigh, high[i]);
if (candidateHigh - price >= reversalDistance) {
currentHigh = candidateHigh;
leg = LEG_FALLING;
candidateLow = low[i];
}
} else {
candidateLow = Math.min(candidateLow, low[i]);
if (price - candidateLow >= reversalDistance) {
currentLow = candidateLow;
leg = LEG_RISING;
candidateHigh = high[i];
}
}
}
activeLeg[i] = leg;
confirmedHigh[i] = currentHigh;
confirmedLow[i] = currentLow;
}
return { activeLeg, confirmedHigh, confirmedLow };
}
const atrSeries = atr(atrLength);
const swing = buildAdaptiveSwing(atrSeries, reversalATR);
// ============================================================
// VOLATILITY - NORMALIZED BB WIDTH
// ============================================================
const bbBasis = sma(close, bbLength);
const bbDeviation = stdev(close, bbLength);
const bbw = for_every(bbBasis, bbDeviation, (basis, deviation) => {
if (!validNumber(basis) || !validNumber(deviation) || basis === 0) {
return null;
}
return deviation / Math.abs(basis);
});
const bbwMin = lowest(bbw, volatilityLookback);
const bbwMax = highest(bbw, volatilityLookback);
const normalizedBBW = for_every(bbw, bbwMin, bbwMax, (value, minimum, maximum) => {
if (!validNumber(value) || !validNumber(minimum) || !validNumber(maximum)) {
return null;
}
const span = maximum - minimum;
return span <= 0 ? null : clampValue(100 * (value - minimum) / span, 0, 100);
});
// ============================================================
// STRUCTURE
// ============================================================
const structureState = series_of(DIR_NEUTRAL);
let activeStructure = DIR_NEUTRAL;
for (let i = 0; i < close.length; i += 1) {
const highLevel = swing.confirmedHigh[i];
const lowLevel = swing.confirmedLow[i];
if (validNumber(highLevel) && close[i] > highLevel) {
activeStructure = DIR_BULLISH;
} else if (validNumber(lowLevel) && close[i] < lowLevel) {
activeStructure = DIR_BEARISH;
}
structureState[i] = activeStructure;
}
// ============================================================
// ICHIMOKU
// ============================================================
input.number('senkou_a__offset', ichiSettings.displacement, { hidden: true });
input.number('senkou_b__offset', ichiSettings.displacement, { hidden: true });
input.number('kumo_up_boundary__offset', ichiSettings.displacement, { hidden: true });
input.number('kumo_down_boundary__offset', ichiSettings.displacement, { hidden: true });
function ichiMidpoint(first, second) {
return for_every(first, second, (a, b) =>
Number.isFinite(a) && Number.isFinite(b) ? (a + b) / 2 : null
);
}
function ichiDonchian(length) {
return ichiMidpoint(highest(high, length), lowest(low, length));
}
function ichiFillAbove(upper, lower, upperLine, name, color, opacity) {
const boundary = for_every(upper, lower, (a, b) =>
Number.isFinite(a) && Number.isFinite(b) && a > b ? b : null
);
const boundaryLine = paint(boundary, {
name: name + ' Boundary',
color: color,
style: 'line',
thickness: 1,
hidden: true,
editorHidden: true,
hideInLegend: true,
hideInScriptEditor: true
});
fill(upperLine, boundaryLine, color, opacity, name);
}
const ichiData = {
tenkan: ichiDonchian(ichiSettings.tenkan),
kijun: ichiDonchian(ichiSettings.kijun),
rawB: ichiDonchian(ichiSettings.senkouB)
};
ichiData.rawA = ichiMidpoint(ichiData.tenkan, ichiData.kijun);
// ============================================================
// ICHIMOKU - TK CLOUD
// ============================================================
const tenkanLine = paint(ichiData.tenkan, { name: 'Tenkan-Sen', color: ichiSettings.colors.tenkan, style: 'line', thickness: 1, hidden: true, editorHidden: true, hideInLegend: true, hideInScriptEditor: true });
const kijunLine = paint(ichiData.kijun, { name: 'Kijun-Sen', color: ichiSettings.colors.kijun, style: 'line', thickness: 1, hidden: true, editorHidden: true, hideInLegend: true, hideInScriptEditor: true });
ichiFillAbove(ichiData.tenkan, ichiData.kijun, tenkanLine, 'TK Up', ichiSettings.colors.tenkan, tkOpacity);
ichiFillAbove(ichiData.kijun, ichiData.tenkan, kijunLine, 'TK Down', ichiSettings.colors.kijun, tkOpacity);
// ============================================================
// ICHIMOKU - KUMO CLOUD
// ============================================================
// ICHIMOKU - KUMO CLOUD
const visibleKumoA = series_of(null);
const visibleKumoB = series_of(null);
for (let i = 0; i < close.length; i++) {
if (i + ichiSettings.displacement < close.length) {
visibleKumoA[i] = ichiData.rawA[i];
visibleKumoB[i] = ichiData.rawB[i];
}
}
const senkouALine = paint(visibleKumoA, {name: 'Senkou A',color: ichiSettings.colors.a,style: 'line',thickness: 1,hidden: true,editorHidden: true,hideInLegend: true,hideInScriptEditor: true});
const senkouBLine = paint(visibleKumoB, {name: 'Senkou B',color: ichiSettings.colors.b,style: 'line',thickness: 1,hidden: true,editorHidden: true,hideInLegend: true,hideInScriptEditor: true});
ichiFillAbove(visibleKumoA, visibleKumoB, senkouALine,'Kumo Up', ichiSettings.colors.a, kumoOpacity);
ichiFillAbove(visibleKumoB, visibleKumoA, senkouBLine,'Kumo Down', ichiSettings.colors.b, kumoOpacity);
// ============================================================
// CLOUD REGIME
// ============================================================
const CLOUD_PHASE_CONFLICT = 3;
const cloudRegimeState = series_of(DIR_NEUTRAL);
const cloudPhaseState = series_of(PHASE_NEUTRAL);
const kumoPosition = series_of(null);
const tkPosition = series_of(null);
function cloudPosition(price, first, second) {
if (!validNumber(price) || !validNumber(first) || !validNumber(second)) {
return null;
}
if (price > Math.max(first, second)) return DIR_BULLISH;
if (price < Math.min(first, second)) return DIR_BEARISH;
return DIR_NEUTRAL; // Includes touching either boundary.
}
function nextCloudState(previousRegime, structure, kumo, tk) {
let regime = previousRegime;
if (kumo === DIR_BULLISH && structure === DIR_BULLISH) {
regime = DIR_BULLISH;
} else if (kumo === DIR_BEARISH && structure === DIR_BEARISH) {
regime = DIR_BEARISH;
}
if (regime !== DIR_NEUTRAL && kumo === -regime) {
return { regime, phase: CLOUD_PHASE_CONFLICT };
}
const muted = kumo === DIR_NEUTRAL
|| (regime === DIR_BULLISH && tk === DIR_BEARISH)
|| (regime === DIR_BEARISH && tk === DIR_BULLISH);
const phase = regime === DIR_NEUTRAL ? PHASE_NEUTRAL
: muted ? PHASE_MUTED : PHASE_CLEAR;
return { regime, phase };
}
let confirmedCloudRegime = DIR_NEUTRAL;
let confirmedCloudPhase = PHASE_NEUTRAL;
let consecutiveMutedBars = 0;
for (let i = 0; i < close.length; i += 1) {
const sourceIndex = i - ichiSettings.displacement;
const kumo = sourceIndex >= 0
? cloudPosition(close[i], ichiData.rawA[sourceIndex], ichiData.rawB[sourceIndex])
: null;
const tk = cloudPosition(close[i], ichiData.tenkan[i], ichiData.kijun[i]);
kumoPosition[i] = kumo;
tkPosition[i] = tk;
if (i < close.length - 1 && kumo !== null && tk !== null) {
const state = nextCloudState(
confirmedCloudRegime, structureState[i], kumo, tk
);
if (state.regime !== confirmedCloudRegime) consecutiveMutedBars = 0;
if (state.phase === PHASE_MUTED) {
consecutiveMutedBars = Math.min(2, consecutiveMutedBars + 1);
confirmedCloudPhase = consecutiveMutedBars >= 2 ? PHASE_MUTED : PHASE_CLEAR;
} else {
consecutiveMutedBars = 0;
confirmedCloudPhase = state.phase;
}
confirmedCloudRegime = state.regime;
} else if (i < close.length - 1) {
consecutiveMutedBars = 0;
}
cloudRegimeState[i] = confirmedCloudRegime;
cloudPhaseState[i] = confirmedCloudPhase;
}
// ============================================================
// CANDLE COLORS
// ============================================================
const candleColors = for_every(cloudRegimeState, cloudPhaseState, (regime, phase) => {
if (regime === DIR_NEUTRAL || phase === CLOUD_PHASE_CONFLICT) return neutralColor;
if (regime === DIR_BULLISH) {
return phase === PHASE_CLEAR ? bullColor : bullMutedColor;
}
return phase === PHASE_CLEAR ? bearColor : bearMutedColor;
});
color_candles(candleColors);
// ============================================================
// RELATIVE PERFORMANCE
// ============================================================
const rpResult = await request.relative_performance(
current.ticker, 'techrank', 'same_sector_mktcap'
);
let lastRelativePerformance = null;
if (Array.isArray(rpResult)) {
for (let i = rpResult.length - 1; i >= 0; i -= 1) {
const value = rpResult[i][1];
if (validNumber(value)) {
lastRelativePerformance = clampValue(value, 0, 100);
break;
}
}
}
// ============================================================
// RELATIVE VOLUME
// ============================================================
function relativeVolumeAt(values, index, length) {
if (!values || index < length || !validNumber(values[index]) || values[index] < 0) return null;
let total = 0;
for (let i = index - length; i < index; i += 1) {
if (!validNumber(values[i]) || values[i] < 0) return null;
total += values[i];
}
return total > 0 ? values[index] / (total / length) : null;
}
// ============================================================
// DASHBOARD - LATEST VALUES
// ============================================================
const lastIndex = close.length - 1;
const lastClosedIndex = lastIndex - 1;
const lastRelativeVolume = relativeVolumeAt(
typeof volume === 'undefined' ? null : volume,
lastClosedIndex,
volumeLookback
);
const lastVolatilityValue = lastClosedIndex >= 0
? normalizedBBW[lastClosedIndex]
: null;
const latestRegime = cloudRegimeState[lastIndex];
const latestCloudPhase = cloudPhaseState[lastIndex];
// ============================================================
// DASHBOARD - TEXT AND COLORS
// ============================================================
const regimeText = latestCloudPhase === CLOUD_PHASE_CONFLICT ? 'CONFLICT'
: latestRegime === DIR_BULLISH ? 'BULLISH'
: latestRegime === DIR_BEARISH ? 'BEARISH' : 'NEUTRAL';
const regimeColor = latestCloudPhase === CLOUD_PHASE_CONFLICT ? neutralColor
: latestRegime === DIR_BULLISH ? bullColor
: latestRegime === DIR_BEARISH ? bearColor : neutralColor;
const relativeVolumeText = validNumber(lastRelativeVolume)
? lastRelativeVolume.toFixed(2) + '×' : 'N/A';
const volatilityText = validNumber(lastVolatilityValue)
? lastVolatilityValue.toFixed(0) + ' / 100' : 'N/A';
const hasRelativePerformance = validNumber(lastRelativePerformance);
const relativePerformanceText = hasRelativePerformance
? lastRelativePerformance.toFixed(0) + ' / 100' : 'N/A';
const relativePerformanceColor = !hasRelativePerformance ? neutralColor
: lastRelativePerformance < 20 ? bearColor
: lastRelativePerformance > 80 ? bullColor : neutralColor;
// ============================================================
// DASHBOARD - METRICS
// ============================================================
const metrics = [
{label: 'State',subtitle: 'Structure + Kumo',value: regimeText,color: regimeColor,width: '140px'},
{label: 'Rel. Vol.',subtitle: 'Volume / Avg.',value: relativeVolumeText,color: '#e55200',width: '140px'},
{label: 'Volatility',subtitle: 'Norm. BBW',value: volatilityText,color: '#d62060',width: '140px'},
{label: 'Rel. Perf.',subtitle: 'TechRank · Sector & Mkt Cap',value: relativePerformanceText,color: relativePerformanceColor,width: '140px'}
];
// ============================================================
// DASHBOARD - CELL HELPER
// ============================================================
function metricCell(metric, index, kind) {
const cell = {
width: metric.width, textAlign: 'center', whiteSpace: 'nowrap',
borderLeft: index > 0 ? '1px solid var(--border-color)' : 'none'
};
if (kind === 'header') {
return Object.assign(cell, {
text: metric.label, color: 'var(--text-color)', opacity: '0.85',
whiteSpace: 'pre-line', height: '34px', verticalAlign: 'bottom',
fontSize: '14px', fontWeight: '500', padding: '8px 10px 8px 10px'
});
}
return Object.assign(cell, {
text: metric.value, color: metric.value === 'N/A' ? neutralColor : metric.color,
borderTop: '1px solid var(--border-color)',
fontSize: '20px', fontWeight: '700', padding: '9px 10px 12px 10px',
fontVariantNumeric: 'tabular-nums'
});
}
// ============================================================
// RVOL MINI CHART
// ============================================================
const rvolHistory = [];
for (let i = Math.max(0, lastClosedIndex - 19); i <= lastClosedIndex; i++) {
rvolHistory.push(relativeVolumeAt(
typeof volume === 'undefined' ? null : volume,
i,
volumeLookback
));
}
const rvolMiniChart = {
width: '120px',
height: '48px',
type: 'bar',
data: {
labels: rvolHistory.map((_, i) => String(i + 1)),
datasets: [{
label: 'RVOL',
data: rvolHistory,
backgroundColor: rvolHistory.map(value =>
value >= 1 ? '#e55200' : '#505966'
),
borderWidth: 0
}, {
type: 'line',
label: '1×',
data: rvolHistory.map(() => 1),
borderColor: '#e55200',
borderWidth: 1,
borderDash: [2, 2],
pointRadius: 0,
fill: false
}]
},
options: {
animation: false,
plugins: {
legend: { display: false },
tooltip: { enabled: false }
},
scales: {
x: { display: false },
y: { display: false, beginAtZero: true, suggestedMax: 2 }
}
}
};
// ============================================================
// VOLATILITY MINI CHART
// ============================================================
const volatilityHistory = [];
for (let i = Math.max(0, lastClosedIndex - 19); i <= lastClosedIndex; i++) {
const value = normalizedBBW[i];
volatilityHistory.push(validNumber(value) ? value : null);
}
const volatilityMiniChart = {
width: '120px',
height: '48px',
type: 'line',
data: {
labels: volatilityHistory.map((_, i) => String(i + 1)),
datasets: [{
label: 'Volatility',
data: volatilityHistory,
borderColor: '#d62060',
borderWidth: 1,
pointRadius: 1,
fill: false,
tension: 0,
spanGaps: false
}]
},
options: {
animation: false,
plugins: {
legend: { display: false },
tooltip: { enabled: false }
},
scales: {
x: { display: false },
y: { display: false, min: 0, max: 100 }
}
}
};
// ============================================================
// RELATIVE PERFORMANCE MINI CHART
// ============================================================
const relativePerformanceMiniChart = {
width: '120px',
height: '48px',
type: 'bar',
data: {
labels: ['Relative Performance'],
datasets: [{
label: 'Score',
data: [hasRelativePerformance ? lastRelativePerformance : null],
backgroundColor: relativePerformanceColor,
borderWidth: 0,
barThickness: 8
}, {
label: 'Remaining',
data: [hasRelativePerformance ? 100 - lastRelativePerformance : null],
backgroundColor: 'rgba(128, 136, 150, 0.20)',
borderWidth: 0,
barThickness: 8
}]
},
options: {
indexAxis: 'y',
animation: false,
plugins: {
legend: { display: false },
tooltip: { enabled: false }
},
scales: {
x: {
display: false,
stacked: true,
min: 0,
max: 100
},
y: {
display: false,
stacked: true
}
}
}
};
// ============================================================
// DASHBOARD
// ============================================================
const dashboardCharts = [
null,
rvolMiniChart,
volatilityMiniChart,
relativePerformanceMiniChart
];
paint_overlay('Market State Dashboard', {
position: 'top_right',
offset_x: -45,
offset_y: 20,
order: 'above_all'
}, {
width: '210px',
background: '#191C22',
border: '1px solid rgba(128, 136, 150, 0.20)',
borderRadius: '8px',
borderCollapse: 'collapse',
overflow: 'hidden',
rows: metrics.flatMap((metric, index) => {
const rows = [{
cells: [{
text: metric.label.replace(/n/g, ' '),
color: '#D8DCE3',
fontSize: '13px',
fontWeight: '600',
textAlign: 'left',
padding: '12px 0px 8px 12px',
borderTop: index > 0
? '1px solid rgba(128, 136, 150, 0.16)'
: 'none'
}, {
text: metric.value,
color: metric.value === 'N/A'
? neutralColor
: metric.color,
fontSize: index === 0 ? '15px' : '18px',
fontWeight: '700',
textAlign: 'right',
whiteSpace: 'nowrap',
padding: '12px 12px 8px 6px',
borderTop: index > 0
? '1px solid rgba(128, 136, 150, 0.16)'
: 'none'
}]
}];
if (metric.subtitle) {
rows.push({
cells: [{
colspan: 2,
text: metric.subtitle,
color: '#9299A5',
fontSize: '11px',
fontWeight: '400',
textAlign: 'left',
padding: '0px 12px 6px 12px'
}]
});
}
if (dashboardCharts[index]) {
rows.push({
cells: [{
colspan: 2,
padding: '0px 15px 10px 15px',
chart: {
...dashboardCharts[index],
width: '180px'
}
}]
});
}
return rows;
})
});