—
Generic Stuff
—
· CODE WILL BE MY PROPERTY ONCE FINISHED SO I CAN MARKET IT
· CODE MUST PASS MQL5 MARKET PLACE CHECKS
· It must also work exactly as what is showing in the video clip plotting the high lows. The video helps greatly to show exactly what is required.
—
SUMMARY
—
Video: https://drive.google.com/drive/folders/1JgeMfEYXF0i-UB8ogt0p4kUdlS_Efval?usp=sharing
Little over 4mins showing exactly how the high - low lines should move
I am looking for an indicator to plot the high/lows of the previous hour on the hourly candle.
It will need to draw a horizontal line on the hourly candle of the high or low.
How does it work?
Basically, we are looking for if a high or low breaks the previous high/low to confirm a trend direction.
If we have a blank chart to start, we would need to look back in time for the latest high or latest low.
This will help me to identify a trend. There would need to be calculations done every hour on the hourly candle close. Only once the recent high or low is broken by another candle, would you calculate back where the other high/low would be.
How to identify a recent low? The price has to break the most recent high.
Confirmation will only be once the recent high gets broken. The low will continue to move up as the highs get broken during each pull back in counter trend. If the candles are bouncing in between the high/low lines there is nothing to move each hour.
If the price is moving up each H1 candle close, then you do not need to move the Low horizontal line.
You would only move the Low line, when the next H1 candle does not break the most recent high horizontal line. Then if in a few hours it breaks the high line again, only then would you recalculate the low line. And visa versa for High lines.
Most recent low will only be confirmed once a new candle breaks the high line again.
Once it breaks the most recent high, you will look back on the chart at the previous candles and mark out the most recent low.

In the example above, the previous high/low is marked in yellow and written High/Low.
As you can see the blue candle breaks the previous high, as such the high line is now moved to the red line. Also, now the most recent low is confirmed as the high was broken, it is now also marked in red.
Final result will be:

Each candle after this high if it continues up will be a continuation of marking the highs.
UNTIL we get a counter trend move that does not take out the previous candles high.

A candle with the wick on each side can also mark the high and low as seen here.
So I open EURUSD chart on H1 time frame. Then you click the horizontal line drawing tool and click on the high candle and the low candle
That’s how I would do it manually
And then grab that line and move it manually
—
Additions
—
· Users should be able to adjust the thickness of the horizontal lines
· Users should be able to adjust the colour of the horizontal lines
Solicitudes similares
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
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
calcVolume( void ) { //--- MqlRates rates[]; if ( CopyRates ( _Symbol , PERIOD_CURRENT , startTime, endTime, rates) > 0 ) { double rangeHigh = rates[ 0 ].high, rangeLow = rates[ 0 ].low; int count = MathAbs ( iBarShift ( _Symbol , PERIOD_CURRENT , startTime) - iBarShift ( _Symbol , PERIOD_CURRENT , endTime)) + 1 ; //---VERTICAL PRICE RANGE for ( int b = 0
Create an MT5 Expert Advisor (EA) for trading Gold (XAUUSD). The EA should provide BUY and SELL signals based on trend direction, market momentum, and price action. It should automatically place trades only when the entry conditions are met. Risk management: Use a small adjustable lot size. Include Stop Loss (SL) and Take Profit (TP). Include a maximum daily loss limit. Include a maximum number of open trades. Do not