GöstergeAçık kodPiyasa yapısı

Structure Compass

Reads market structure on two scales: direction, break strength, the level that would flip it, and where price sits in the range.

Structure CompassCanlıBinance verisi
Grafik yükleniyor…

Which way is the market pointing, how solid is that, which level would turn it around, and where is price within the last major range? Structure Compass is built to answer those questions at a glance.

How it works

Swing highs and lows are found by volatility rather than a fixed number of bars: a high is confirmed once price has come back from it by a set multiple of the average bar range (ATR). Two scales run side by side. The major scale reads the main direction; the minor scale reads the waves within it.

A close beyond the last confirmed swing is a break:

  • BOS (break of structure): price breaks the last swing in the direction of the trend, so the trend continues.
  • CHoCH (change of character): price breaks the last swing against the trend, so the trend turns.
  • CHoCH+ (strong change of character): a recent turn failed to hold, and the trend now turns back again.

Every break is graded weak, firm or strong by how far the close went past the level and by the volume of the breaking bar. Weak breaks are drawn faint.

Reading the chart

  • Green: rising structure. Upward breaks and order zones below price are drawn in green.
  • Red: falling structure. Downward breaks and order zones above price are drawn in red.
  • Amber line: the flip level, the confirmed major swing whose break would turn the major direction. It ends just after the last bar; the further price is from it, the more room the current direction has.
  • Grey dashed line: the middle of the last major range. Price above it is in the premium half, below it in the discount half.
  • Flip tag ("Flip · 82940.80 · 1.77% away"): the price of the flip level and how far the last close is from it. Watch this distance shrink: a close beyond the amber line turns the major direction.
  • BOS and CHoCH tags: a break of structure (the trend continues) or a change of character (the trend turns), written at the broken level. The three dots grade the break: one filled dot is weak, two firm, three strong (how far the close went past the level and how heavy the volume was).
  • "▼ 1.52% since" after a tag: the furthest price has travelled beyond the broken level since the break. A small figure on an old break means the move did not follow through.
  • Order zone label ("2.45K traded · buy 90% · sell 10% · 0.9% away"): the volume traded inside the zone since it formed, the estimated share of buyers and sellers in that volume, and the distance from price to the zone. When price is inside the zone, "inside" replaces the distance, and "no trades yet" means price has not come back to it.
  • "Major ·" before a zone label: the zone was left by a break on the major scale; a label without it comes from the minor scale. Major zones mark levels that mattered to the main direction.
  • Layers inside a zone: the shading grows darker toward the last bar, and the thick edge line is the side price would meet first. The green bar at the top and the red bar at the bottom of the right end show the buy and sell shares at a glance.
  • Range dial (ten slices to the right of the last bar): the last major range from its low to its high; the lower five slices are green (discount), the upper five red (premium), deeper toward the ends. The lit slice holds the current price and its box ("54%") gives the position of price in the range, 0% at the low and 100% at the high.
  • Small triangles: stop hunts, bars whose wick ran past the highs or lows of recent bars and then closed back. They often mark where stops were taken before price turned.
  • EQH and EQL: equal highs and equal lows, two minor swings that stopped at nearly the same price. Stops tend to gather beyond them, so a break of that line is often sharp.
  • Board, rows "Major" and "Minor": the direction of each scale and how many bars it has lasted. When both point the same way, the structure is aligned.
  • Board, row "Flip level": the distance from price to the flip level and whether the level is above or below price. A small distance means the major direction is close to turning.
  • Board, row "In range": where price sits in the last major range, with "premium" above 50% and "discount" below it. It tells you whether price is relatively high or low within the range.
  • Board, row "Held 12 bars": for each grade (weak, firm, strong), the share of past breaks on this symbol that held for 12 bars without a close back behind the level. Until enough breaks have finished, it shows a count such as "0/5" instead of a rate.
  • Board, row "Trend 1/5 up": on five timeframes (5 min, 15 min, 1 h, 4 h and daily), how many show the 20-bar average above the 50-bar one, with an arrow for each. The more arrows agree with the chart, the stronger the backdrop.
ExampleOn SOLUSDT 4h, the major structure is bearish while the minor structure has just turned bullish, and a CHoCH tag appears on the chart. The structure board shows the flip level 7.9% above price and places price in the lower half of the range, in the discount zone. Read together, this is a short-term recovery inside a downtrend; the main trend only reverses if price breaks above the amber level.

Settings

Major reversal (× ATR)
6
How far price must come back for a major swing to be confirmed. Smaller values flip the main direction more often.
Minor reversal (× ATR)
2.5
The same for the minor scale.
Lookback (bars)
1000
How many recent bars the structure is read from; about five months on 4h.
Bars a break must hold
12
Bars that must pass without a close back behind the level for a break to count as held.
Zones per side
4
The maximum number of active order zones kept above and below price.
Hunt lookback (bars)
15
How many earlier highs or lows a wick must run past to count as a stop hunt.
Show chart patterns
off
Turn on to draw double tops and bottoms, head and shoulders, triangles and wedges.
Breaks before showing a rate
5
Breaks needed before the board shows a hold rate.

Limitations

A swing is only confirmed once price has moved far enough away from it, so the structure always trails price by a few bars.

Hold rates are counted from this symbol's own history and describe past behaviour. They are hidden until there are enough breaks, and even then they cannot say how the next break will turn out.


Piyasa hangi yöne bakıyor, bu yön ne kadar sağlam, hangi seviye kırılırsa yön döner ve fiyat son büyük aralığın neresinde? Structure Compass bu soruları tek bakışta cevaplamak için yazıldı.

Nasıl çalışır

Tepe ve dipler sabit bir bar sayısıyla değil, oynaklıkla bulunur: fiyat bir tepeden ortalama bar aralığının (ATR) belli bir katı kadar geri gelince o tepe kesinleşir. Yan yana iki ölçek çalışır: büyük ölçek ana yönü, küçük ölçek o yönün içindeki dalgaları okur.

Son kesinleşmiş tepe ya da dibin ötesinde bir kapanış kırılımdır:

  • BOS (yapı kırılımı): fiyat, eğilimle aynı yönde son tepeyi ya da dibi kırıyor; eğilim sürüyor.
  • CHoCH (yön değişimi): fiyat, eğilimin tersine son tepeyi ya da dibi kırıyor; eğilim dönüyor.
  • CHoCH+ (güçlü yön değişimi): yakın zamanda yaşanan bir dönüş tutmamıştı; yön şimdi yeniden çevriliyor.

Her kırılım, kapanışın seviyeyi ne kadar geçtiğine ve kırılım barının hacmine göre zayıf, sağlam ya da güçlü diye derecelendirilir. Zayıf kırılımlar soluk çizilir.

Nasıl okunur

  • Yeşil: yükselen yapı. Yukarı kırılımlar ve fiyatın altındaki emir bölgeleri yeşille çizilir.
  • Kırmızı: düşen yapı. Aşağı kırılımlar ve fiyatın üstündeki emir bölgeleri kırmızıyla çizilir.
  • Sarı çizgi: dönüş seviyesi; kırılırsa büyük ölçekteki yönü çevirecek kesinleşmiş tepe ya da dip. Son barın hemen sağında biter; fiyat ondan ne kadar uzaksa mevcut yönün o kadar alanı vardır.
  • Gri kesikli çizgi: son büyük aralığın ortası. Fiyat bu çizginin üstündeyse pahalı yarıda, altındaysa ucuz yarıdadır.
  • Dönüş etiketi ("Dönüş · 82940,80 · %1,77 uzakta"): dönüş seviyesinin fiyatı ve son kapanışın ona uzaklığı. Bu uzaklığın daraldığını izleyebilirsiniz; sarı çizginin ötesinde bir kapanış büyük ölçekteki yönü çevirir.
  • BOS ve CHoCH etiketleri: kırılan seviyeye yazılan yapı kırılımı (eğilim sürüyor) ya da yön değişimi (eğilim dönüyor). Üç nokta kırılımın derecesidir: bir dolu nokta zayıf, iki sağlam, üç güçlü (kapanışın seviyeyi ne kadar geçtiği ve hacmin ağırlığı).
  • Etiketin yanındaki "▼ %1,52 kırılımdan beri": kırılımdan bu yana fiyatın kırılan seviyenin ötesine en çok ne kadar gittiği. Eski bir kırılımda küçük bir oran, hareketin devam etmediğini gösterir.
  • Emir bölgesi etiketi ("2,45K işlem gördü · alış %90 · satış %10 · %0,9 uzakta"): bölge oluştuğundan beri içinde işlem gören hacim, bu hacimde alıcı ve satıcı payının tahmini ve fiyatın bölgeye uzaklığı. Fiyat bölgenin içindeyse uzaklık yerine "içinde" yazar; "henüz işlem yok" ise fiyatın bölgeye geri dönmediğini gösterir.
  • Etiketin başındaki "Büyük ölçek ·": bölge büyük ölçekteki bir kırılımdan kalmıştır; öneksiz etiket küçük ölçekten gelir. Büyük ölçek bölgeleri ana yön için önemli olmuş seviyelerdir.
  • Bölgenin içindeki katmanlar: dolgu son bara doğru koyulaşır; kalın kenar çizgisi fiyatın ilk karşılaşacağı taraftır. Sağ uçtaki üstte yeşil ve altta kırmızı çubuk, alış ve satış payını tek bakışta gösterir.
  • Aralık kadranı (son barın sağındaki on dilim): son büyük aralık, dibinden tepesine. Alttaki beş dilim yeşil (ucuz), üstteki beş dilim kırmızıdır (pahalı); uçlara doğru renk koyulaşır. Yanan dilim fiyatın bulunduğu dilimdir; içindeki kutu ("%54") fiyatın aralıktaki yerini verir: dipte %0, tepede %100.
  • Küçük üçgenler: stop avları; fitili yakın barların tepesini ya da dibini geçip geri kapanan barlar. Çoğu zaman fiyat dönmeden önce stopların alındığı yeri gösterirler.
  • EQH ve EQL: eşit tepeler ve eşit dipler; neredeyse aynı fiyatta duran iki küçük tepe ya da dip. Ötelerinde stoplar birikir; bu çizginin kırılması çoğu zaman sert olur.
  • Pano, "Büyük ölçek" ve "Küçük ölçek" satırları: iki ölçeğin yönü ve bu yönün kaç bardır sürdüğü. İkisi aynı yönü gösteriyorsa yapı uyumludur.
  • Pano, "Dönüş seviyesi" satırı: fiyatın dönüş seviyesine uzaklığı ve seviyenin fiyatın üstünde mi altında mı olduğu. Uzaklık küçükse büyük ölçekteki yön dönmeye yakındır.
  • Pano, "Aralıkta" satırı: fiyatın son büyük aralıktaki yeri; %50'nin üstü "pahalı bölge", altı "ucuz bölge". Fiyatın aralık içinde görece yüksekte mi alçakta mı olduğunu gösterir.
  • Pano, "12 bar tutunma" satırı: her derece (zayıf, sağlam, güçlü) için bu sembolde geçmiş kırılımların 12 bar boyunca seviyenin gerisine kapanış gelmeden tutma oranı. Yeterli kırılım tamamlanana kadar oran yerine "0/5" gibi bir sayı yazar.
  • Pano, "Trend 1/5 yükselişte" satırı: beş periyotta (5 dakika, 15 dakika, 1 saat, 4 saat ve günlük) 20 barlık ortalamanın 50 barlık ortalamanın üstünde olduğu periyot sayısı; her periyot için bir ok. Oklar grafikle ne kadar aynı yöndeyse arka plan o kadar güçlüdür.
ÖrnekSOLUSDT 4 saatlikte büyük ölçek düşüşte, küçük ölçek yukarı döndü ve CHoCH etiketi çıktı. Pano, dönüş seviyesinin fiyatın %7,9 üstünde olduğunu ve fiyatın aralığın alt yarısında, ucuz bölgede durduğunu söylüyor. Yani kısa vadede toparlanma var ama ana yön ancak sarı seviye kırılırsa döner.

Ayarlar

Major reversal (× ATR)
6
Büyük ölçekte bir tepenin ya da dibin kesinleşmesi için gereken geri dönüş. Küçük değer ana yönü daha sık çevirir.
Minor reversal (× ATR)
2,5
Aynısı küçük ölçek için.
Lookback (bars)
1000
Yapının kaç barlık geçmişten okunduğu. 4 saatlikte yaklaşık beş ay.
Bars a break must hold
12
Bir kırılımın tutmuş sayılması için seviyenin gerisine kapanış gelmeden geçmesi gereken bar sayısı.
Zones per side
4
Fiyatın üstünde ve altında tutulan en çok emir bölgesi.
Hunt lookback (bars)
15
Bir fitilin stop avı sayılması için kaç önceki barın tepesini ya da dibini geçmesi gerektiği.
Show chart patterns
kapalı
Açılırsa ikili tepe ve dip, omuz baş omuz, üçgen ve kama çizilir.
Breaks before showing a rate
5
Panoda tutma oranı gösterilmeden önce gereken en az kırılım sayısı.

Sınırlar

Tepe ve dip ancak fiyat ondan yeterince uzaklaşınca kesinleşir; bu yüzden yapı her zaman birkaç bar geriden gelir.

Tutma oranları bu sembolün geçmişinden sayılır ve geçmiş davranışı gösterir. Az sayıda kırılımla oran gösterilmez; çok sayıda kırılımla bile bir sonraki kırılımın aynı biçimde sonuçlanacağı söylenemez.

Structure Compass984 satırSürüm 1Kodun tamamı
indicator("Structure Compass", "Compass", overlay = true, max_lines_count = 500, max_labels_count = 500, max_boxes_count = 500) // ── Palette (terminal design language, dark theme) ──var TONE_RISE = "#33d69f"var TONE_FALL = "#fb5b6b"var TONE_WARN = "#e3b341"var TONE_INFO = "#5d87c5"var TONE_SOFT = "#818692" var G_SWINGS = "Swings"var G_STRENGTH = "Strength"var G_LEVELS = "Levels"var G_ORDERS = "Resting orders"var G_HUNTS = "Hunts and gaps"