Create Fractal Indicator with Swing Points and Market Strcuture ATR

MQL4 指标

工作已完成

执行时间19 天
客户反馈
Developer coding skills are exceptionally great, he was able to code what we want efficiently and did it perfectly without delay!
员工反馈
Very nice person

指定

Indicator features
- Must be able to adjust lookback (max bars) in the settings to reduce lag

- Calculated on every candle close instead of every tick

 

Indicator Input settings

- Maxbars (Bars to look back into history)  [Code this input at the start of Step 1]

- Show Fractals on Chart (Enable/Disable)  [Code this input at the start of Step 1]

- Fractals (Number of bars to start counting from left and right)  [Code this input at the start of Step 1]

- Show Swing Lines on Chart (Enable/Disable)  [Code this input at the start of Step 2]

- ATR Period- ATR Multiplier (To multiply the ATR based on candle close between the previous swing points and the new swing points)  [Code this input at the start of Step 4]

- Show Market Break of Structure on Chart (Enable/Disable)  [Code this input at the start of Step 5]


Indicator description


Step 1: Create a fractal indicator from scratch

An up fractal occurs when there is a low point with one HIGHER or EQUAL low candles on each side of it.

A down fractal occurs when there is a high point with one LOWER or EQUAL low candles on each side of it.

The reason for the need to create the simple fractal indicator from scratch is because the default fractals indicator doesn’t account for candles besides with EQUAL highs and lows.


As you can see in the above example, there should be a fractal where I placed the red arrow based on our custom fractal indicator, because the candle in front has the same high.

In the event of a case of equal highs, I want the fractal to be drawn on the first candle instead of the next one or third one (in rare cases).



Step 2: Code line connecting all the fractal points subsequent fractal points

In the illustration, I made the bodies grey so that the line is more visible.


This part should be straightforward because it's just a line connecting the current fractal to the next one. However, there will be special instances whereby a special candle would contain both an up fractal

and a down fractal. Such as those highlighted below.

For these special candles connect the current line to the up fractal if the “previous fractal was a down fractal” and connect the current line to the down fractal if the “previous fractal was an up fractal”.



Step 3: Disregard series of subsequent same-direction fractals 


A series of same-direction fractals are highlighted above in the blue box.

In the event of 1 or more subsequent candles of the same direction, I want the line drawn to the lowest of a series of down fractals and the highest to the series of up fractals.

The finished result should look something like this below.


This scenario is also special whereby a series of down fractals is followed by a special single candle that contains both an up and a down fractal.

In such instances, I want the line drawn this way. The down fractal of that special candle with an up and down fractal, is not considered in the series of subsequent same-direction fractals.




Step 4: ATR Based Swings


Alright so for this step I would like for each swing leg to be the minimum current ATR of the current timeframe x ATR Multiplier (inside indicator settings).

So based on the current line already drawn, I want each swing leg to have a minimum length based on the ATR. 




Step 5: Break Of Structure


So every time a break of structure happens a single candle must break and close above or below the previous swing point.




Step 6: Create a MT5 MQL5 version of it after completing a MT4 MQL4.


In Summary
I want the code to be fresh from the start, do not use any existing indicator to start, and after completion of each step, please send me the Indicator so I could check if everything is done correctly, so as to avoid

any errors. Once I checked every step is correct, we can proceed to the subsequent steps. 


Throughout the project, if there is any doubts, I can explain to you again. 


反馈

1
开发者 1
等级
(43)
项目
49
29%
仲裁
4
25% / 25%
逾期
0
空闲
2
开发者 2
等级
(44)
项目
53
38%
仲裁
8
13% / 38%
逾期
8
15%
空闲
相似订单
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
i need an expert to develop Bot TO trade using MT5 with a profitable strategy ... work daily with good indicators the price will be negotiable will try the bot first after we can decide
The indicator should identify the high and low of two configurable trading sessions, draw their levels on the chart, and generate reliable breakout alerts. 1. Session Settings Symbol: Current chart symbol (EURUSD for testing). Timeframe: M5. Two independent sessions: Session A: 08:00–10:00 Session B: 13:00–15:00 All times use MT5 broker server time. Start and end times must be configurable. The indicator should
Project: Convert TradingView Indicator to MT4 We are looking for an experienced MQL4 developer to convert a high-quality TradingView indicator into a MetaTrader 4 (MT4) indicator. Indicator Details: The TradingView indicator generates buy and sell arrows for trade entries. It is non-repainting, has no lag, and is highly reliable. Arrows appear only after the candle closes and remain visible permanently. Requirements
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
Project Overview: I am looking for an experienced MQL5 developer to convert a suite of 6 custom MT4 indicators into native, fully optimized MQL5 (.mq5) indicators. I will provide the uncompiled .mq4 source files for all seven tools upon hiring. The indicators must compile cleanly in MetaEditor for MT5 without errors or critical warnings, function correctly together on a multi-timeframe chart setup (specifically
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

项目信息

预算
80+ USD