Shifting MA's
MQL4
Any currency pair
Any time frame
Slippage function
Spread function
LONG:
(Must have its own input fields as the variables/criteria will be different to SHORT):
MA
Period - input field
MA Shift - input field
MA Method - input field
MA Apply to - input field
Max Deals for Consecutive Time Frames - input field (example 5 or 15)
Only one Buy open within the same Time Frame
Lot size - input field
Take Profit - input field
Trailing stop - input field (function on each order separately)
Trailing stop - On/Off
selection
PM = Previous Move and must always be a positive value.
- If
previous candle was up, the “Move” will be Close less Open
- Example
Close = 1300 & Open = 1290 so “Move” = 10
(positive)
- If
previous candle was down, the “Move” will be Close less Open * -1
- Example
Close = 1300 & Open = 1315 so “Move” = (-15 * -1)
(positive)
Methodology - BUY:
A) Open Buy’s in the following order:
1. Previous candle
close is below previous MA,
and
Current High moves higher than current MA + PM, then
Open at level current MA + Previous Move
Example:
- Previous
Close is 1900
- Previous
MA is 2000
- Previous
Move (PM) is 20
- Current
MA is 2010
- Current
High is 2040
- Open
Buy at 2030 (2010 + 20)
2. Buy if No 1
above did not trigger
Previous candle close is below previous MA, and
Current High moves lower than current MA + PM, and
Current candle closes above current MA, then
Open at close of current candle
Example:
- Previous
Close is 1900
- Previous
MA is 2000
- Previous
Move (PM) is 20
- Current
MA is 2010
- Current
High is 2025
- Current
Close is at 2022
- Open
Buy at 2022
3. Buy if No 1 or
No 2 above has already triggered,
and
Current candle closes above or equal to Current MA
Repeat for every candle until “Max Consecutive Deals” is reached
B) Close when one of the following is triggered whichever first:
- Take Profit, OR
- Stop Loss (has two criteria - see next step)
Two criteria for Stop Loss
- Current Low < (Previous Close less Previous
Move), AND
- Current Low < Current
MA, OR
3.
Trailing Stop,
OR 4.
Price closes below current MA
SHORT (Must have its own input fields as the variable/criteria will be different to LONG):
MA Period - input field
MA Shift - input field
MA Method - input field
MA Apply to - input field
Max Deals for Consecutive Time Frames - input field (example 5 or 15)
Only
one Sell open within the same Time Frame
Lot size - input field
Take
Profit - input field
Trailing stop - input field (function on each order separately)
Trailing stop - On/Off selection
Methodology:
Same as for LONG but just to the opposite
Pedidos semelhantes
Project Overview I am looking for an experienced MQL5 developer to build a custom, prop-firm-compliant trend-following Expert Advisor (EA) for MetaTrader 5 . This EA will be used on prop firm accounts (e.g., FTMO-style rules), so strict risk control and rule compliance are mandatory . This is NOT a grid, martingale, scalping, or recovery EA. The goal is consistency, rule compliance, and capital preservation , not
I am looking for an experienced MQL5 developer to build a professional MT5 software (indicator or semi-automated EA) for metals and major forex pairs. 📌 PLATFORM & MARKETS Platform: MetaTrader 5 Instruments: XAUUSD (Gold vs USD) XAGUSD (Silver vs USD) EURUSD GBPUSD USDJPY Trading styles: Scalping Intraday / short-term swing 🎯 MAIN OBJECTIVE I do NOT want an aggressive fully automated robot. I want a
I want to check if this indicator is repainting or not Whick mean the results of back testing is legit or not if anyone can help me to review it kindly to well to contact me i will be happy to work and go on long term work with anyone thanks
Specifications – Development of an MQL5 Expert Advisor (Reverse Engineering) Project context: I have access to a real trading history consisting of more than 500 trades executed over a period of approximately 3 years. These trades have been exported into a CSV file containing all available information, including date, time, symbol, order type, entry price, and exit price. Important: I do not have access to the
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
specification High-Frequency Candle Momentum Scalper 1. Strategy Overview Core Logic: The EA identifies the current color of the active candle (Bullish or Bearish). Entry Trigger: It opens positions only after a specific duration of the candle has passed (e.g., after 30 seconds on a 1-minute candle) to confirm the direction. 2. Entry Logic (The "Half-Candle" Rule) Timeframe: M1 (Default, but adjustable). Time Filter
Greeting Im in need of a programmer that can help me convert from TOS to trading view? The script is available with me, kindly bid if it is what you can do for me Thanks
can you help me with I need an ATM strategy for NT8, here's the criteria: Forex trade entry 100,000 units with a starting SL of 70 pips. The following proft targets: 33 pips, 68, 125, 180. All targets exit 25,000 units each. As each target is hit, move SL to BE+5, then BE+35, then BE+70. So the SL's are fixed, not trailing. I can't figure this out on my platform
1. Platform & Environment Platform: MetaTrader 5 (MT5 ONLY) Language: MQL5 Account type: ECN / Netting or Hedging Designed for broker rebate/commission return programs No DLLs, no external dependencies 2. Strategy Overview The EA is a high-frequency scalping Expert Advisor focused on maximizing the number of trades with minimal price movement, where the main source of profitability is broker rebate rather than market
I am looking for a professional MQL4 developer to build a fully automated MT4 Expert Advisor (EA) for XAUUSD (Gold only). PLATFORM: - MetaTrader 4 (MT4) - Broker: Hankotrade (ECN conditions) - Symbol: XAUUSD only GENERAL RULES: - Fully automated EA (no manual confirmation required) - NO martingale - NO grid - NO hedging - One trade at a time - Works on live and demo accounts - Must allow manual stop/disable at any