Support and Resistance Based on Fractals

MQL5 指标

工作已完成

执行时间58 天

指定

Inputs

  1. Number of bars to the left of fractal
  2. Number of bars to the right of fractal
  3. Number of bars we look back from the current bar (e.g., 30)
  4. Number of most recent up (or down) fractals we consider (e.g., 3) within the look-back period (from input 3) to form a valid level
  5. Option to either consider last consecutive fractals OR simply all fractals meeting criteria (within the look-back period for both)
  6. Fractals' distance from each other in order to form a valid level; it can be set as a fixed percentage, value, pips or dynamically calculated based on another indicator being a coefficient times current ATR or StdDev (e.g., within 1/3*ATR from each other)
  7. Draw level at either last fractal’s value or candle’s high (or low) associated with last fractal
  8. Terminate level after x bars
  9. Too far criteria for termination of drawn level (fixed distance, percentage, pips or coefficient*ATR or StdDev) with an option to turn it ON/OFF
  10. Indicators’ settings (different settings can be used for input 6 and 9)
  11. Anything else that is useful (suggestions are welcome)

Criteria for Finite Support or Resistance

A support or resistance level should be finite when any of the following conditions are met:

  • A new support or resistance level forms, meeting the updated criteria
  • Finite/terminate level after x bar
  • Price moved significantly far away from the level. Far being either a fixed value, pips, percentage difference or a coefficient*(ATR or StdDev) from the level, indicators value associated when price was last time at the level’s value. Example: price is currently at 78, valid level is at 74, we look at the indicators’ value when price was last time at 74 and not current levels because in fast-moving markets, indicators' values increase.

This is mainly implemented to keep the levels relevant.

Example Inputs

Assume we have the following settings:

  • Bars to the left of fractal: 2
  • Bars to the right of fractal: 2
  • Look-back period (bars): 30
  • Recent fractals count: 3
  • Consecutive mode
  • Distance between fractals: Fixed at 0.05%
  • Draw from last fractal value
  • Terminate level after 20 bars
  • Terminate if prices are 4*ATR or more far from drawn level
  • Default settings
  • ...

With these settings, in the last 30 bars, if the last 3 (so consecutive) or more down fractals (using 2 bars left, 2 bars right) have no more than a 0.05% difference from each other, a resistance line is drawn at the last fractal value. If either a new resistance is formed OR 20 bars passed OR price moved 4ATR from the level, we stop drawing the resistance for the future while letting the level visible for the whole period it was valid.

Purpose

This will be used in various Expert Advisors to detect potential turning points in the market (trade breakouts, failed breakout, etc.).

Quality

The indicator needs to be reliable, robust and non-repainting.


Note

The x-bar fractals indicator is provided to you for ease of programming.

I'm open to any suggestions or ideas to improve the indicator.

附加的文件:

反馈

1
开发者 1
等级
(62)
项目
90
29%
仲裁
24
13% / 58%
逾期
7
8%
工作中
2
开发者 2
等级
(51)
项目
71
37%
仲裁
4
25% / 75%
逾期
1
1%
空闲
发布者: 1 代码
3
开发者 3
等级
(435)
项目
641
53%
仲裁
34
62% / 21%
逾期
6
1%
工作中
4
开发者 4
等级
(20)
项目
23
39%
仲裁
4
25% / 50%
逾期
1
4%
空闲
发布者: 5 代码
5
开发者 5
等级
(619)
项目
722
33%
仲裁
46
48% / 41%
逾期
14
2%
已载入
6
开发者 6
等级
(78)
项目
246
74%
仲裁
7
100% / 0%
逾期
1
0%
空闲
发布者: 1 文章
7
开发者 7
等级
(45)
项目
91
13%
仲裁
34
26% / 59%
逾期
37
41%
空闲
8
开发者 8
等级
(443)
项目
570
37%
仲裁
106
39% / 33%
逾期
17
3%
空闲
9
开发者 9
等级
(29)
项目
33
27%
仲裁
20
10% / 50%
逾期
11
33%
空闲
10
开发者 10
等级
(69)
项目
146
34%
仲裁
13
8% / 62%
逾期
26
18%
空闲
发布者: 6 代码
相似订单
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
I want someone to check if the indicator is re-painting or drawing and modify it. When I refresh the chart sometimes it the buy and sell arrow change positions. I want the indicator draw and dot re-paint
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hello, I need a custom NON-REPAINT MT5 indicator that gives sell/buy arrow signals 1–2 candlesticks before a spike on Crash and boom indices respectively occurs. Requirements: Works perfectly on MT5 Shows arrows before the spike (1–2 candles earlier). Non-repaint – once the arrow appears, it must stay. Should be accurate, not quantity — only quality signals. Must work on both demo and live accounts. I want the
Hello, I saw an indicator on TradingView and would like to know if you will be able to convert it for use on Thinkorswim platform? Thanks. if anyone can help me with it kindly do well to bid it urgent thanks looking forward too see you

项目信息

预算
30 - 115 USD
截止日期
 7  14 天