Touch Strength Zones
- 지표
-
Allan Aparece Ninal
MetaTrader 5용 인디케이터와 전문가 어드바이저(EA)를 개발합니다.
작업 방식:
- 모든 인디케이터는 리페인팅 여부를 확인합니다. 신호는 마감된 봉에서만 결정되며, 모든 틱 테스트로 이후에 바뀌지 않는다는 것을 확인합니다.
- 모든 계산은 독립적인 기준 계산과 봉 단위로 비교합니다.
- 전략은 최적화에 사용하지 않은 데이터로 백테스트합니다. 우위가 없는 규칙은 그렇다고 분명히 밝히고 전략으로 판매하지 않습니다. - 버전: 1.1
Touch Strength Zones is an indicator for MetaTrader 5. It draws support and resistance zones from swing points, with the number of touches as each zone's strength. It also draws horizontal levels and marks price-action setups at them. Every decision uses closed bars, so nothing repaints.
This indicator promises no profit. It draws, marks and sends alerts. It does not trade. The test notes below show what held up and what did not.
Quick start
- Attach it to any chart. The zones and levels appear at once.
- Each zone is a box. Its label shows the touches: S 4x is a support zone with four swing points in it, R is resistance. A stronger zone has a stronger fill and a thicker border.
- Set the maximum zones, the minimum touches, the lookback and the width (in ATR) in the inputs.
- Choose your alert types. The pop-up and push alerts are on by default.
Good to know
- Standalone: everything is built in. You do not need to buy or install any other product named on this page.
- Any symbol and timeframe. Nothing is tuned to one market.
- Swing points confirm late. A swing point (default 5 bars on each side) is known only 5 bars after it formed. A zone is built from confirmed points only, so it changes when a bar closes and never because of the forming bar. Zones are therefore never ahead of the market.
- Signal Trader: a separate free EA that can trade the Reclaim, Retest and Rejection signals of this indicator.
What it shows
- Zones: confirmed swing highs and lows of the last 250 bars are sorted by price. A zone starts at the lowest point left and takes every point within 0.5 x ATR(14) of it. A group with at least 2 points is a zone, from its lowest to its highest point (never thinner than 0.1 x ATR). The strongest zones stay, up to the maximum you set. A zone below the last close is shown as support, above it as resistance, and a zone that holds the price is amber.
- Strength: the number of touches. It sets the fill opacity and the border width and is written in the zone's label.
- Levels: the same swing points, grouped within a quarter of the ATR; a group with enough touches is one dotted level at the middle of its touches.
- Reclaim / Retest / Rejection (Reclaim on by default) and optional failed breakouts (off by default): markers at the levels, as before.
Test notes
I tested the three setups as trading rules on 37 symbols, on D1 and H4: 222 combinations, settings fixed on 2020-01 to 2023-06 and judged on 2023-07 to 2026-10. Only Reclaim on SOLUSD D1 passed. About 3.5 of 222 would pass by chance, so one pass is no proof of an edge. Failed breakouts showed no edge (0 of 65 passed): they are a marker and an alert only. The zones are drawn context, not a signal; I have not tested them as a trading rule. The tester results are backtests, and the broker's crypto history has a zero spread on many bars, so they are optimistic.
How it was checked
- Zones against an independent Python version of the rule, bar by bar: 27 files (EURUSD, XAUUSD, SOLUSD on H1, H4 and D1, three settings), 708,800 bars compared, 0 differences.
- The levels, setups and failed breakouts still equal the Python rules on 45 files, with the zone code added.
- Repaint test in the Strategy Tester (every tick and 1-minute prices, 3 symbol and timeframe pairs): no value changed after its bar closed, the forming bar stayed empty, and both tick models gave identical values.
- Strategy Tester runs on 5 symbol and timeframe pairs (EURUSD H1, XAUUSD D1, GBPUSD M30, EURUSD M1, GBPJPY H4) and on 100 and 1,000 USD deposits: 0 error lines.
Alerts and buffers
Alerts fire once per closed bar: pop-up, sound, push notification and e-mail. The buffers hold a price on the bar of a marker and are empty otherwise. The forming bar is always empty.
| Buffer | Content |
|---|---|
| 0 / 1 | Reclaim buy / sell: level price |
| 2 / 3 | Retest buy / sell: level price |
| 4 / 5 | Rejection buy / sell: level price |
| 6 / 7 | Failed breakout buy / sell: the broken level |
| 8 / 9 | Failed breakout buy / sell: invalidation level |
| 10 | Number of levels on the map |
| 11 | Number of zones |
| 12 | Top of the nearest zone below the close |
| 13 | Bottom of the nearest zone above the close |
| 14 / 15 | Strength of those two zones |
Inputs
| Input | Default |
|---|---|
| Swing pivot: bars on each side; minimum touches for a level | 5; 2 |
| Draw the levels | true |
| Show Reclaim; Retest; Rejection; only on the side of SMA(200) | true; false; false; false |
| Show failed breakouts; swing pivot; marker on | false; 5; Reclaim |
| Calculate this many bars back (0 = all); draw at most this many markers; extend by this many bars | 5000; 60; 5 |
| Draw zones; maximum zones; minimum touches; lookback in bars; zone width x ATR; label with touches | true; 8; 2; 250; 0.5; true |
| Alert: Reclaim / Retest / Rejection; failed breakout | true; true |
| Pop-up; sound; push notification; e-mail | true; false; true; false |
| Debug log for bug reports | false |
Works well with
These are workflow suggestions. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| Signal Trader | Choose the Price Action Levels source. | The EA reads the same levels and setups. The EA has the calculation built in, so the indicator is optional. |
| Session Levels | Add it to the same chart. | It draws session boxes and previous day and week levels as context. It is not a signal. |
| Risk Position Tool | Pick the trade from the chart, then drag the entry and stop lines. | It separates where you enter from how much you risk. The tool places no orders. |
Related products
- Signal Trader is a separate free EA. You do not need it to use this indicator.
- All my products on MQL5
FAQ
Does it repaint? No. Zones, levels and markers use closed bars only. A swing point counts only after the bars on its right side have closed, so a zone can only change when a bar closes.
Why does a zone appear late? Because its swing points confirm N bars late. That is the price of not repainting.
Can I trade these zones? Only after your own tests. They are context.
How do I use it in an EA? Read the buffers with iCustom. The table above lists them.
Custom work
Want an EA that trades this indicator, a custom version of it, or a new indicator or EA of your own? Order it through MQL5 Freelance and choose me as the developer: order through Freelance. Send your requirements, rules and the flow or algorithm you want. The whole order, payment and delivery stay inside MQL5 Freelance.
Found a problem?
- In the inputs, set "Debug log for bug reports" to true.
- Repeat what went wrong.
- Open the Experts tab in the Toolbox. Copy the lines that start with "DBG" and paste them in a comment on this page, with the symbol and timeframe.
- Set the debug log back to false.
The debug lines never contain your account number, name, server, balance or equity.
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading involves risk of loss. Backtest results do not predict future results.
