Support and Resistance Based on Fractals

MQL5 インディケータ

指定

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
評価
(30)
プロジェクト
43
19%
仲裁
7
29% / 43%
期限切れ
5
12%
2
開発者 2
評価
(37)
プロジェクト
49
37%
仲裁
0
期限切れ
0
3
開発者 3
評価
(360)
プロジェクト
498
52%
仲裁
24
54% / 25%
期限切れ
5
1%
取り込み中
4
開発者 4
評価
(3)
プロジェクト
5
0%
仲裁
0
期限切れ
1
20%
仕事中
5
開発者 5
評価
(498)
プロジェクト
569
33%
仲裁
29
41% / 41%
期限切れ
9
2%
多忙
6
開発者 6
評価
(66)
プロジェクト
200
72%
仲裁
4
100% / 0%
期限切れ
1
1%
仕事中
類似した注文
Introduction This EA has 2 strategies, namely STRATEGY 1 AND STRATEGY 2 , and allows the user to choose ONLY 1 strategy to trade. These strategies are different because they have different calculation methods to determine the price levels for EA to open the pending BUY and SELL LIMIT orders at the OPEN of a daily candle. The EA trading and operation logics ARE THE SAME for these 2 strategies. This EA is a
CBn> 50 - 1000 USD
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service
Need 6 selection boxes to find a pattern to enter a trade. Each selection will be either buy or sell candle. A) Needs 2 type of trade option. Buy if pattern is met sell if pattern is met Open trade after 1,2,3,4,5,6 pattern options met B) Candle pattern options: 1 buy/sell 2 buy/sell /not used 3 buy/sell /not used 4 buy/sell/not used 5 buy/sell /not used 6 buy/sell /not used C). If pattern is met, the type of
a developer managed to add and fix everything within a few hours but he is disappeared for a week now editing/ adding features need to edit, fix mtf/ array out of range issue and add a few more features to existing High - low trend 3.04 (mtf + alerts + candles + bt).mq4 indicator
Hello mate I need to set up an automated process for extracting order book (DOM) data from a trading platform for key assets like USD/JPY, Oil, Gold, GBP/USD, NASDAQ, and EU/USD. This data should ideally come from platforms such as CQG, Sierra Charts, or Denali, but I am open to any other reliable platform that provides excellent DOM (Depth of Market) data. The extracted DOM data (buy and sell volumes) should be fed
any programmer who have a positive grid hedge marti EA logic similar to brilliant ea grid can apply i have an idea of making better logic it should work same with the same logic but with new indicators
HAVING INDICATOR SOURCE CODE AND ADDITION OF THREE INDICATOR MORE FOR BETTER RESULT. THE PROGRAM RUN EA MODE AS WELL AS INDICATOR MODE. REST ALL THE CONDITION AND SETTTING AS PER FILE. AFTER DEMOSTRATION IF ANY CHANGE REQUIRE IS APPLICABLE. DETAIL BACKTEST REQURIED OF ALL EXCEUTABLE ORDER
Hello Great developer . I have another project in mind though (I have the source code). This expert, when attached to a chart with an open trade with no TP and/or SL set, will create hidden SL/TP (broker does not know) of xx/yy pips from the entry price and when the said TP/SL is hit the trade should be closed. I want you to modify it such that the expert will continously scan all 28 pairs and check those trades with
I need an indicator that will scan the forex pairs that I indicate for comparison in the parameters section, scan multiple timeframes and display result with alerts on the dashboard. If you are able to do this, please reach out to me if you understand the SMT divergence concept. Thanks
I need help Converting VuManChu Cipher b Indiator on Tradingview to MT5 I need this in 3 or 4 days maximum. If you can do that please reach out to me Thanks

プロジェクト情報

予算
30 - 115 USD
締め切り
最低 7 最高 14 日

依頼者

出された注文1
裁定取引数0