Coding of False Break-Out of Trend line indicator

MQL4 Indicators C++

Specification

  The most information is on two pictures. A 1-minute timeframe is used for quick control of the indicator's functionality (tick data). The job is based on 2 already existing indicators - 1st creates trend lines -  Fractals - adjustable period extended 2 .mq4.  The 2nd indicator - ATR -Average True range, is built in MT4 and defines the conditions for creating a pattern - NOTE, there MUST be used value of the previous, finished candle, not of the current one. 

The “a” & “b” indicate conditions successively with defined values. The "a" is the break-out step and determines the maximum price distance from the line after the break-out. The "b" confirms that it is the false break-out and this value defines the exact opposite distance price from the trend line (0.1 - 10 ATR (5)).

Terms explanation: 

ALINE = Ascending trend line : DLINE = Descending trend line,

B-candle - Breaking candle. FBO = False Break-Out.


Pseudo algorithm:

   THE FBO OF ASCENDENT TREND LINE

1. OPEN B-candle < ALINE , THEN

2. (a) PRICE GETS > ALINE , Max N ATR (5) , THEN

3. (b) PRICE GETS N ATR (5) < ALINE.


    THE FBO OF DESCENDENT TREND LINE

1. OPEN B-candle > DLINE), THEN

2. (a) PRICE GETS < DLINE, Max N ATR (5) , THEN

3. (b) PRICE GETS N ATR (5) > DLINE.

   Since it is possible to repeat the pattern multiple times on 1 line, the length of the line for FBO after breaking is determined by the formula: Length from the beginning of the line + the distance after the 1st Break-out / 2. 

This value is added to the time of 1st break-out of the line. Then the line stops being used.

   Last condition: Patterns are created on unfinished candles in real time. The Close price of a candle can only be used rarely. The correctness check will be on online charts. 


Responded

1
Developer 1
Rating
(180)
Projects
301
30%
Arbitration
54
24% / 56%
Overdue
98
33%
Free
2
Developer 2
Rating
(11)
Projects
13
23%
Arbitration
6
0% / 83%
Overdue
2
15%
Free
3
Developer 3
Rating
(451)
Projects
561
25%
Arbitration
22
41% / 36%
Overdue
85
15%
Working
Published: 6 codes
4
Developer 4
Rating
(284)
Projects
459
39%
Arbitration
95
43% / 18%
Overdue
73
16%
Loaded
Published: 2 codes
Similar orders
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
📌 DOGE/USDT Trading Bot – Full Strategy Current DOGE/USDT price: ≈ 0.2714 USDT (for reference only). Exchange: Binance Futures Margin type: Isolated Margin Leverage: x2 Pair: DOGE/USDT Language: Python (Binance API) ⸻ 🔹 Strategy Logic 1. Initial Entry • Open a Market Order with 2000 USDT as the base trade. • Base remains fixed for each cycle. 2. Reinforcement (During Downtrend) • Every 5 minutes during a price
PLEASE ONLY GENUINE APPLICATIONS! I am looking for a MT5 EA that I can successfully use to pass Prop Firm challenges in reasonable time and successfully trade funded account whilst staying within 4% daily drawdown and 8% max drawdown and profiting ideally 10% or more a month. The EA must: 1) Be suitable for prop firms 2) Stay within daily drawdown of 4% 3) Stay within max drawdown of 8% 4) Consistently profit 10%
I need developer to modify a simple mql4 indicator with non-repainting Buy/Sell arrows, selectable timeframe (current or higher), and alerts, push notifications.The indicator mq4 file will be provided as this is a simple change. I will need quick turnover of this work.Please apply if interested
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
I need an Expert Advisor (EA) that can trade on Forex pairs, Metals (like XAUUSD), and Crypto coins . Key points: Fixed lot size (configurable). EA should work on multiple asset classes. A simple on-chart control panel to manage EA: Start/Stop trading Enable/Disable strategies Change lot size (buttons +/–) Payout button → closes all profitable trades and adds profit to balance ATR-based option for stop loss /
Convert Advanced SMC Pine Script Strategy to MQL5 EA / Autotrade option Job Description: We are seeking an experienced MQL5 developer to accurately convert a sophisticated Smart Money Concepts (SMC) strategy from TradingView Pine Script into a robust, professional-grade MetaTrader 5 Expert Advisor (EA). The original code is complex and includes advanced logic for pivot detection, dynamic position sizing, and visual
Mthizo trades 30 - 200 USD
- *Currency Pairs*: Major pairs such as EUR/USD, XAU/USD and GBP/USD - *Funding Currency*: South African Rand (ZAR) - *Initial Deposit*: R100 (may require additional deposit for live trading) - *Risk Management*: Basic risk management features, such as stop loss and take profit - *Strategy*: Pre-defined strategy based on Smart Money Concept principles - *Cost*: Approximately R100-R200 (one-time cost or
I need an Expert advisor based on AOX signal . it must have check and handing of trade operation..errors. The main criterin for opening and dosing a position : moving average direction the price is higher than the previous bar Trade lots is input parameter bar
Indicator that finds zones. All details in word document Ask questions if need I’d also like to to change from finding bullish marker and main candles to bearish marker and main candles if price crosses past inputted price The document is showing zones for bullish price action. Id like to also change manually in setting for it to show bearish price action ( it will look for bullish candle markers and main) Zones

Project information

Budget
30 - 100 USD
For the developer
27 - 90 USD
Deadline
from 1 to 10 day(s)