Symmetrical Triangle Detector

  • 指标
  • Augusto Martin D'anna
    Augusto Martin D'anna
    你好,欢迎访问我的个人资料。我是 Augusto Danna,拥有7年经验的交易员。我擅长结合市场经验与编程技能来实现交易策略的自动化。如有任何疑问,欢迎随时联系我!
    自动交易系统: 开发 MT4 和 MT5 的智能交易系统 (Expert Advisors)。
    自定义指标: 开发和修改技术指标。
    高级风险管理: 实施移动止损 (Trailing Stop)、保本 (Breakeven) 和动态手数计算。
    策略转换: 将 TradingView (Pine Script) 策略转换为 MQL4/MQL5。
    策略优化: 策略回测与参数调整。
  • 版本: 1.0

Symmetrical Triangle Detector finds horizontal symmetrical triangles with objective rules and draws them up to the apex. Most traders draw triangles by eye; this indicator uses fixed, measurable criteria, so the same chart always gives the same triangles. It uses closed bars only and does not repaint.

What counts as a triangle

  • Pivots with N bars on each side, joined in an alternating zigzag.
  • The last 4 to 8 pivots: the upper line joins the first and last high, the lower line the first and last low, and the other pivots stay inside.
  • At least 3 touches on one line and 2 on the other.
  • Symmetric: the upper line falls, the lower line rises, and the steeper slope is at most 4 times the flatter one.
  • Horizontal and compact: the middle axis barely moves, the lines are not too steep and the pattern is not too tall.
  • Clean: no wick or candle body breaks the lines between the first and the last touch, and enough candles reach the lines (no empty space).
  • The apex is ahead of the last touch and not too far away.

All thresholds are measured in ATR(14), so the indicator adapts to any market and timeframe.

What it draws

  • Both lines from the first touch to the apex, with the touches numbered.
  • An arrow at the breakout (the first wick out of the lines, or a close outside the lines from the 0.75 time mark on), or the pattern ends at the apex.
  • Optional Gann box from the first touch to the apex: price levels 0 / 0.5 / 1 and time lines at 0.75 and 0.9.
  • Optional alerts when a new triangle appears and when it breaks.

Notes

  • This is a pattern detection tool, not a trading signal. In my own tests, trading the breakout or the false breakout of these triangles had no edge after costs on gold, Nasdaq and Bitcoin, so use it as context for your own analysis.
  • Defaults were calibrated on BTCUSD M5 and XAUUSD M15. On other markets you may want to adjust the touch tolerance, minimum width and maximum height.
  • It is a port of my open-source "Horizontal Symmetrical Triangle Detector" for TradingView, with the same detection rules.
作者的更多信息
Funded Account Guardian protects prop firm challenge and funded accounts from breaking the daily loss and maximum loss rules. It does not open trades. Attach it to one chart and it watches the equity of the whole account on every tick and once per second. What it does Daily loss : when equity reaches the daily floor, it closes all positions and pending orders and blocks trading until the next day. The floor can be measured from the initial balance or from the balance at the start of the day. Max
FREE
Equity Target Closer
Augusto Martin D'anna
Equity Target Closer closes all positions and pending orders when the profit or loss of the account reaches a level you choose. It does not open trades. Attach it to one chart and it checks the account on every tick and once per second. What it does Profit target : when the P/L reaches the target, it closes everything. Loss limit : when the P/L reaches the limit, it closes everything. Money or % : levels in account currency or in % of the balance. Two ways to measure : floating P/L of the open p
FREE
No Hedge Guard
Augusto Martin D'anna
No Hedge Guard keeps a hedging account free of hedges. If a buy and a sell are open on the same symbol at the same time, it closes the newer side at once. It works for manual trades and for any EA, and it never opens trades. Many prop firms do not allow hedging, and when two EAs trade the same symbol a hedge can appear by accident. Attach this utility to one chart and it watches the whole account. What it does Reacts to every new deal and also checks once per second. For each symbol it keeps the
FREE
News Day Blocker
Augusto Martin D'anna
News Day Blocker stops new trades on US inflation (CPI) release days and Federal Reserve decision (FOMC) days. The days are counted by the New York date, and the calendar for 2015-2027 is built in, so it works the same live and in the Strategy Tester. It never opens trades. What it does on a news day Closes any position opened that day, manual or from any EA (optional magic number filter). Deletes pending orders (optional). Closes positions that are still open at a New York time you choose, for
FREE
Slippage and Execution Logger measures how your broker fills your trades. For every deal on the account (manual trades, any EA, SL and TP executions) it records the requested price, the fill price, the slippage, the delay from order to fill and the spread. It never opens, modifies or closes trades. What it does Slippage in points for every deal: positive = in your favour, negative = against you. Fill delay in milliseconds, from the moment the order was placed to the fill. Spread at the moment of
FREE
Common Folder Copier
Augusto Martin D'anna
Common Folder Copier copies trades between MetaTrader 5 terminals running on the same computer or VPS. It is one EA with two modes: Master on the source account and Slave on each receiving account. They talk through a small file in the terminals' shared Common\Files folder, so no internet service, DLL or account password is needed. What it does Master : writes the open positions of its account several times per second. Slave : opens the positions that are missing, keeps SL, TP and volume in sync
FREE
Gold Morning Short
Augusto Martin D'anna
Gold Morning Short sells XAUUSD on M30 during the New York morning when the 4-hour trend is down. It is a simple, fully rule-based EA: one trade per day at most, a hard stop loss on every trade, no grid, no martingale, no averaging and no positions held overnight. Rules Trend filter : the close of the last finished 4-hour bar is below the TEMA(200) of 4-hour closes. The EA builds its own 4-hour bars on a fixed UTC grid (00:00, 04:00, 08:00...), so the signal does not depend on your broker's serv
筛选:
无评论
回复评论