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
Похожие заказы
I need an mql5 EA which can be used with 100$ capital very low drawdown The EA should be high frequency trading special for XAUUSD and btcusd or binary options but also the EA should be testable via strategy tester and demo test for five days is needed NO SELECTION CAN BE DONE WITHOUT TESTING when applying make sure you send the backtester results with demo EA testable via strategy tester
I currently have a powerful and well-structured Expert Advisor available on the MT5 platform. This EA is designed with: ✅ Advanced entry and exit logic ✅ Smart risk management system ✅ Automatic lot sizing option ✅ Break-even and trailing stop protection ✅ Spread and session filters ✅ Drawdown control features ✅ Optimized for XAUUSD and scalping strategies ✅ Suitable for prop firm challenges like FTMO It is built for
Do you need a profitable and well-structured trading strategy converted into a fully automated Expert Advisor on the MT5 platform? I specialize in developing advanced, high-performance EAs with: ✅ Smart entry & exit logic ✅ Risk-based lot size calculation ✅ Break-even & trailing stop system ✅ Spread & session filters ✅ Daily drawdown protection ✅ Prop firm (FTMO-style) risk compliance ✅ Fully automated trade
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I have an existing MT5 Expert Advisor (“E-Core”). I need an experienced MQL5 developer to integrate a structured risk management upgrade and a higher timeframe trend filter into the current code. Two files will be provided: 1️⃣ E-Core Source Code (Current Version) 2️⃣ Update Instructions File (contains exact inputs, functions, and logic to integrate) The developer must: Integrate the update logic
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Trading specifications: Indicators: Bollinger band ( Period 40, Deviation 1 apply to close) Moving Average (Exponential ) Period 17 applied to high Moving Average ( Exponential ) Period 17 applied to low But Signal enter a buy trade when prices crosses the lower band of the bollinger band up and also crosses the moving average channel of high and low the reverse is true for sell signal
Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
I am looking for a highly experienced Pine Script v5 developer to build a professional, non repaint price action indicator for TradingView. or a ready made one so i can purchase. This is a structured two phase project. The goal is to create a clean, intelligent price action tool that works for both fast intraday trading and swing trading. Only apply if you have strong Pine experience and understand liquidity
Hello, I’m looking for an experienced MQL4/MQL5 developer to work with me on an ongoing basis. My clients request services such as: Converting TradingView Pine Script indicators/strategies into MT4 or MT5 Expert Advisors Converting MT4 EAs to MT5 (and MT5 to MT4) Compiling and fixing existing MQL4 / MQL5 EA code Adding simple features like alerts, SL/TP, lot size, and basic money management This job is for