Small edits to existing MT5 indicator (zones, trend, live update)

MQL5 インディケータ

指定

Project: XAUUSD_IND_PFA_NEW.mq5 – final structural upgrades
Goal: No rewrite. Just small, precise edits to the existing indicator.

1. Live recalculation (no prev_calculated)
- Current logic in OnCalculate uses prev_calculated.
- Change to recalc last 500 bars every tick.
- Concept:
  start = MathMax(SwingLeft + SwingRight + 2, rates_total - 500);
- Loop stays:
  for (int i = start; i < rates_total - SwingRight - 1; i++)

2. Trend must follow zones (remove MA logic)
- Remove MA handles and CopyBuffer logic.
- Replace UpdateTrend(int i) with:
    If LastZoneType == 1 → TrendState = 1;
    If LastZoneType == -1 → TrendState = -1;
    If no active zone → TrendState = 0;
- TREND label drawing stays unchanged.

3. Zones must use last opposite candle before BOS
Replace current 0.5-range logic with candle-based logic:

BOS UP → BUY zone:
- Find last bearish candle before BOS (close[b] < open[b]).
- Zone:
    LastZoneHigh = candle open or high
    LastZoneLow  = candle low
- LastZoneType = 1

BOS DOWN → SELL zone:
- Find last bullish candle before BOS (close[b] > open[b]).
- Zone:
    LastZoneLow  = candle open or low
    LastZoneHigh = candle high
- LastZoneType = -1

Keep:
  ZoneHighBuf[i] = LastZoneHigh;
  ZoneLowBuf[i]  = LastZoneLow;

4. Keep all visuals exactly as they are
- BUY zone = clrLavender
- SELL zone = clrGold
- All labels (BUP, BDN, SUP, SDN, confirmations) unchanged.

5. No new features
- Do not change swing logic, BOS logic, sweep logic, confirmation logic, or TREND label text.

ファイル:

応答済み

1
開発者 1
評価
(626)
プロジェクト
984
47%
仲裁
33
36% / 36%
期限切れ
97
10%
仕事中
パブリッシュした人: 6 codes
2
開発者 2
評価
(552)
プロジェクト
639
33%
仲裁
41
41% / 46%
期限切れ
11
2%
取り込み中
3
開発者 3
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
4
開発者 4
評価
(3)
プロジェクト
7
57%
仲裁
1
0% / 100%
期限切れ
1
14%
仕事中
5
開発者 5
評価
(3)
プロジェクト
4
0%
仲裁
1
100% / 0%
期限切れ
1
25%
仕事中
6
開発者 6
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
7
開発者 7
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
8
開発者 8
評価
(17)
プロジェクト
23
39%
仲裁
6
33% / 50%
期限切れ
0
9
開発者 9
評価
(3)
プロジェクト
4
50%
仲裁
0
期限切れ
0
10
開発者 10
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
11
開発者 11
評価
(270)
プロジェクト
552
49%
仲裁
57
40% / 37%
期限切れ
227
41%
仕事中
12
開発者 12
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
13
開発者 13
評価
(8)
プロジェクト
17
41%
仲裁
2
0% / 100%
期限切れ
4
24%
取り込み中
14
開発者 14
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
15
開発者 15
評価
(39)
プロジェクト
46
28%
仲裁
14
21% / 64%
期限切れ
1
2%
取り込み中
類似した注文
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
Hi, I need a custom MT5 indicator based on a multi-timeframe fractal break reversal. 1️⃣ The indicator should use two timeframes: Higher Timeframe (HTF) Lower Timeframe (LTF) (Timeframes should be adjustable in inputs, e.g., HTF = H1 and LTF = M5) 2️⃣ Use standard fractals to detect fractal highs and fractal lows. 3️⃣ Primary signal (HTF): When a Lower High fractal is formed and price breaks that Lower High in one
I’ve been following your profile and I'm interested in your expertise with the ATAS API and C# development. I have a clear technical scope for a high-performance M1 indicator focused on Binary Options and Scalping. ​The core logic is based on institutional Order Flow convergence: ​Stacked Imbalances: 300% ratio with a minimum of 3 consecutive levels. ​Delta/Price Divergence: Filtering for market exhaustion (New Highs
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar
APARTE DE PASAR EL CÓDIGO A MT5 QUIERO QUE CONTENGA TODOS LOS DATOS NECESARIOS PARA QUE ESTE NUEVO CÓDIGO SE PUEDA USAR EN LA FÁBRICACIÓN DE UN ROBOT, NO SE MUCHO DE ESTO PERO INVESTIGUE QUE DEBE LEER BUFFERS Y OTRAS COSAS
HENGtaykong 30 - 200 USD
Create a ZigZag indicator, which is constructed based on extreme values determined using oscillators. It can use any classical normalized oscillator, which has overbought and oversold zones. The algorithm should first be executed with the WPR indicator, then similarly add the possibility to draw a zigzag using the following indicators: CCI Chaikin RSI Stochastic Oscillator Algorithm and Terms The first stage is the
Hello programmer! I am looking to build an Indicator with your help :) you must speak English so if we have to conference call to work out details WHAT Indicator DOES: Alerts when pullbacks end and trend resumes ARROWS: 🟢 Green = Confirmed Long 🔴 Red = Confirmed Short 🔵 Blue = Add to position ⚫ Black = Better second chance 🟡 Yellow = Early warning (inside bar) ⚪ White = Early warning (pullback) CORE RULE: - Trail
I need an Expert Advisor for MetaTrader 5 based on SMT and CISD strategy using NASDAQ and S&P500. Strategy logic: - The bot compares NASDAQ and S&P500. - Timeframe: 3 minutes. - First condition: One of the pairs must take liquidity from a previous high or low while the other pair does NOT take that liquidity (SMT divergence). - Second condition: The pair that took liquidity must close back below the high (or above
Pinescript 100+ USD
I’m looking for a Pine Script developer who can reverse engineer the “Swing Only” logic of the Polytrends indicator on TradingView. The goal is to recreate how the swing trends are detected and plotted so it can be used as a custom indicator. If you have experience with TradingView Pine Script and reverse-engineering indicator logic , please reach out
I am looking for a quality coder that know the work to be done, i will only select coder with good feedback review be aware. price is flexible. I am looking to make an indicator based on API info from brokers. you will need to search if possible or not and what not possible be upfront and clear. The indicator design must be very confortable, easily readable, adjusteed based on different screen , compatibility is

プロジェクト情報

予算
30 USD
締め切り
最低 1 最高 2 日

依頼者

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