Appearance

Personalize your experience

Mode
Accent Color
Direction
All Docs/QuaScript//
QuaScript logo

QuaScript Documentation

Language guide, engine API, 601 builtins and the preset library · v3.0.0-phase1

Layouts

Multi-Chart Grid

analysis · presets/analysis/multichart/multi_chart_grid.qs

Asks the terminal for a 2 x 2 chart grid and draws a trend cloud on each chart.

QuaScriptengine result
Loading the engine result…
quatick-charts · QuaScript engine on synthetic 1-minute bars · drag to pan · scroll to zoom · Run executes the script on the engine (⌘/Ctrl+Enter while editing)
multi_chart_grid.qs
analysis "Multi-Chart Grid" {
    overlay = true
}
// Asks the terminal for a 2 x 2 chart grid and draws a trend cloud on each chart.
chart.grid(2, 2)
fast = ta.sma(close, 20)
slow = ta.sma(close, 50)
p_fast = render.spline(fast, "Primary trend", color = color.blue.500, width = 2)
p_slow = render.spline(slow, "Secondary trend", color = color.amber.500, width = 2)
render.band(p_fast, p_slow, color = color.blue.500, opacity = 0.12, title = "Trend cloud")
render.mark(ta.cross_up(close, fast), shape = shape.triangle_up, at = anchor.below_bar, color = color.emerald.500, text = "Buy")
render.mark(ta.cross_down(close, fast), shape = shape.triangle_down, at = anchor.above_bar, color = color.rose.500, text = "Sell")
alert.rule(ta.cross_up(close, fast), "Grid buy", "Price crossed above the primary trend")
alert.rule(ta.cross_down(close, fast), "Grid sell", "Price crossed below the primary trend")

© 2026 Quatick Technologies. All rights reserved.