Appearance
Personalize your experience
Mode
Accent Color
Layout
Direction
Ichimoku Cloud
Admin's ChoiceFreeComplete Ichimoku Kinko Hyo with all 5 components
4.7(267)
6.7k installs 1.1k 2 commentsQ
42 listings12400 followers
Official QuaTick team — building advanced charting & trading tools for the Indian market.
View Profileichimokutrendcloudjapanesesupport-resistance
Free
Open in QuaTick IDE Edit in IDE Version3.0.1
Updated2025-08-15
Compatiblecandlestick, heiken-ashi
Live Preview — BTC/USDT
About
Full Ichimoku implementation — Tenkan-sen, Kijun-sen, Senkou Span A/B, and Chikou Span.
Components
Tenkan-sen: (Conversion Line): 9-period mid
Kijun-sen: (Base Line): 26-period mid
Kumo Cloud: forward-shifted Senkou A & B
Chikou Span: close projected 26 periods back
Outputs & Parameters
Outputs
Tenkan-senline
Kijun-senline
Kumo Cloudband
Chikou Spanline
Parameters
Tenkan Period9
Kijun Period26
Senkou B Period52
Displacement26
Source Code
Edit in IDEtypescript
| 1 | // Ichimoku Cloud — Quatick IDE (Tenkan-sen line) |
| 2 | // SDK math globals available: sma, ema, atr, rsi, macd, bollingerBands, vwap, etc. |
| 3 | |
| 4 | const metadata = { id: 'ichimoku', name: 'Ichimoku Cloud', version: '1.0.0', category: 'trend' }; |
| 5 | |
| 6 | interface BarData { |
| 7 | time: number; |
| 8 | open: number; |
| 9 | high: number; |
| 10 | low: number; |
| 11 | close: number; |
| 12 | volume?: number; |
| 13 | } |
| 14 | |
| 15 | const defaultParams = { tenkanPeriod: 9, kijunPeriod: 26, senkouBPeriod: 52 }; |
| 16 | |
| 17 | function donchianMid(highs: number[], lows: number[], period: number, idx: number): number { |
| 18 | let hh = -Infinity; |
| 19 | let ll = Infinity; |
| 20 | for (let j = idx - period + 1; j <= idx; j++) { |
| 21 | if (highs[j] > hh) hh = highs[j]; |
| 22 | if (lows[j] < ll) ll = lows[j]; |
| 23 | } |
| 24 | return (hh + ll) / 2; |
| 25 | } |
| 26 | |
| 27 | function calculate(bars: BarData[], params = defaultParams): { time: number; value: number }[] { |
| 28 | const highs = bars.map(b => b.high); |
| 29 | const lows = bars.map(b => b.low); |
| 30 | const result: { time: number; value: number }[] = []; |
| 31 | |
| 32 | for (let i = params.tenkanPeriod - 1; i < bars.length; i++) { |
| 33 | const tenkan = donchianMid(highs, lows, params.tenkanPeriod, i); |
| 34 | result.push({ time: bars[i].time, value: tenkan }); |
| 35 | } |
| 36 | |
| 37 | return result; |
| 38 | } |
Read-only preview. Open in the QuaTick IDE to edit and deploy.
Reviews
No reviews yet. Be the first to review this listing.
Discussion
Sign in to join the discussion.