The best last three possible support and resistance levels on a chart
1. Determine the primary trend using Simple Moving Average (SMA):
a. Calculate a 50-day SMA for the price data.
b. Calculate a 200-day SMA for the price data.
c. If the 50-day SMA is above the 200-day SMA, set the primary trend as bullish.
d. If the 50-day SMA is below the 200-day SMA, set the primary trend as bearish.
2. Identify swing highs and lows using the ZigZag indicator:
a. Apply the ZigZag indicator to the price data with a deviation setting of 5%.
b. Store the swing high and low points identified by the ZigZag indicator as potential support and resistance levels.
3. Apply Fibonacci retracement levels:
a. Calculate Fibonacci retracement levels (38.2%, 50%, and 61.8%) between the most recent significant high and low points identified by the ZigZag indicator.
b. Add these levels to the list of potential support and resistance levels.
4. Analyze horizontal price levels using a Support/Resistance indicator:
a. Apply a Support/Resistance indicator to the price data (e.g., Pivot Points or Horizontal Lines).
b. Identify significant horizontal price levels that have acted as support or resistance in the past.
c. Add these levels to the list of potential support and resistance levels.
5. Apply the Relative Strength Index (RSI) indicator:
a. Calculate the 14-day RSI for the price data.
b. Use the RSI levels of 30 (oversold) and 70 (overbought) as additional confluence factors for support and resistance levels.
6. Check for confluence:
a. For each potential support and resistance level, determine if it has multiple technical indicators and price action analysis converging at that level.
b. Assign a score to each level based on the number of confluence factors present (e.g., Fibonacci levels, horizontal price levels, and RSI levels).
7. Rank the levels:
a. Sort the list of potential support and resistance levels based on their assigned scores, with the highest scores representing the most significant levels.
8. Select the best three levels:
a. Extract the top three support levels and the top three resistance levels from the ranked list.
b. Return these levels as the best last three possible support and resistance levels on the chart.
Similar orders
PLATFORM: MetaTrader 5 (MQL5) ASSET: XAUUSD (Gold) ACCOUNT TYPE: Live Raw Spread Account (Floating Spread + Commission) 500x leverage The broker commission is exactly 3 usd per standart lot per side6.00 round turn). The EA's internal trade tracking, net profit/loss metrics, and trailing drawdown calculations must completely factor in these commission charges alongside the raw asset spread. I need a clean, optimized
Title: Need MT4 Expert Advisor for XAUUSD (SMC/ICT Strategy) Requirements: I need a professional MT4 Expert Advisor (EA) for XAUUSD based on Smart Money Concepts (SMC) / ICT strategy. Features: - Platform: MetaTrader 4 (MT4) - Symbol: XAUUSD - Automatic Buy and Sell trades. - Detect market trend automatically. - Use Break of Structure (BOS) and Change of Character (CHoCH) for trend confirmation. - Enter trades only
The EA must be fully automated , backtest-friendly , prop-firm-safe , and built with a clean modular architecture . Core Strategy Requirements 1. Higher Timeframe Bias Use D1 and H4 . Use 200 EMA as trend filter: If price is above 200 EMA on both D1 and H4 -> allow BUY only If price is below 200 EMA on both D1 and H4 -> allow SELL only If D1 and H4 are not aligned -> no trade 2. Market Structure Module Detect and
Pine Script Integration Request (Experienced Coders Only) I am looking for a highly experienced Pine Script developer to integrate a Demand & Supply Zone module into my existing indicator. Requirements Keep my current indicator (Rudy) exactly as it is. Do NOT modify, remove, or alter any existing logic, calculations, signals, alerts, or visual elements. Add only the Demand & Supply Zone boxes from a second Pine
🔍 Strategy Logic 📌 Indicators Used 21 EMA RSI (Upper Level: 61, Lower Level: 39 – Customizable) 📈 Buy Side Setup (Long Entry) Step 1 – Trend Confirmation A Green candle must close above 21 EMA. Step 2 – Pattern Formation After the green candle, observe next 4 candles. At least one Red candle must form (opposite candle). That Red candle must also close above EMA. Step 3 – Key Level Marking Mark the High of the Red
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation
Title: MT5 Forex Trading Robot Development I need a MetaTrader 5 (MT5) Expert Advisor (EA) for automated Forex trading. Requirements: 1. The robot must be fully automated and capable of opening and closing trades without manual intervention. 2. Compatible with MetaTrader 5 (MT5). 3. Adjustable lot size, Stop Loss, and Take Profit settings. 4. Built-in risk management based on account balance. 5. Ability to trade