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
등급
(438)
프로젝트
649
53%
중재
35
63% / 20%
기한 초과
7
1%
작업중
4
개발자 4
등급
(20)
프로젝트
23
39%
중재
4
25% / 50%
기한 초과
1
4%
무료
게재됨: 6 코드
5
개발자 5
등급
(634)
프로젝트
741
34%
중재
49
53% / 39%
기한 초과
14
2%
작업중
6
개발자 6
등급
(78)
프로젝트
247
74%
중재
7
100% / 0%
기한 초과
1
0%
무료
게재됨: 2 기고글, 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 코드
비슷한 주문
Custom MT5 Expert Advisor (EA) Development | MQL5 Automation Turn Your Trading Strategy into a Powerful Automated Trading System! Are you looking for a professional MT5 Expert Advisor developer to automate your trading strategy? I specialize in developing custom MetaTrader 5 (MT5) Expert Advisors and indicators using MQL5 , tailored to your trading rules, risk management preferences, and trading goals. Whether you
I am looking for an experienced MQL5 developer or development team to build a scalable Telegram-to-MT5 copy trading system. The main purpose of the system is to monitor trading signals from my Telegram channel and automatically execute those signals on connected client MT5 accounts. Core Requirements Receive and parse trading signals from Telegram Automatically execute trades on connected MT5 accounts Support more
Thana ram 30 - 200 USD
Hello, I want to develop a custom MT5 Expert Advisor (EA) for XAUUSD Gold. IMPORTANT: I want a proper rule-based automated trading EA, NOT a martingale, grid or guaranteed-profit bot. 1. MARKET & TIMEFRAME - Platform: MT5 - Symbol: XAUUSD only - Main trend timeframe: M15 - Entry timeframe: M5 - Must support broker suffixes such as XAUUSDm, XAUUSD., etc. 2. TREND RULE BUY trend: - M15 price above EMA 50 - EMA 50 above
I need a TradingView Pine Script (v6) indicator that gives BUY and SELL signals in real time on the live chart. MAIN REQUIREMENT – NO REPAINTING: 1. Signals must appear only when the candle closes (barstate.isconfirmed). Example: on 1-min chart, signal for the 10:35 candle must appear at 10:36 and never disappear or move. 2. Signals on historical bars must look exactly the same as they looked live. 3. No lookahead
Description I am looking for a highly skilled MQL5 Developer & Trader with strong experience in EA optimization, stress testing, and forward validation. The EA is already coded and running. What I need now is: 1.Simple code editing, code adjustment/upgrading and code tamplates inserting, 2.Parameter Optimization & Re-Validation – Find the best stable settings for XAUUSD (not overfitted). 3.Robustness / Stress Testing
المطلوب موشر لتداول الذهب مجرب وقوية يعطي اشاره قوية فقط مع وقف خساره ومختبر ومجرب في حال الموافقه علي لموشر بعد التجربه لمدة ٣ ايام يتم الشراء دايم مبلغ ٢٠٠ دولار
Strategy 40 - 60 USD
yo i have a strategy i would really like to turn into a signal bot basically please this is very technical and serious to me the strategy needs more time 1 time frame and the bot most be 100% accurate
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap
I need a trading system similar to the attached files. Check attachment for details on the indicator. i guess the indicator contains some of (Rainbow MA , MTF Dashboard , Symbol Switcher , and Trend Histogram), though may not be exactly as listed
I have a EA/Bot I’ve designed and want it to be put onto me MetaTrader5 this month. I’m new here and also need to figure out how to get a live account and add a UK broker

프로젝트 정보

예산
30 - 115 USD
기한
에서 7 로 14 일