The EA tracks the price of an instrument on a candle and when it falls within a predefined range, it opens a trade. For example, the current price of an instrument like usd/jpy is 147.536. For the ea, it needs 3 things, a midpoint, upper limit and lower limit. So the midpoint values are half a unit, units,tens or hundreds. For units - 147.000, 146.000, 145.000 and so on. For tens - 130.000,140.000,150.000 etc. For half a unit - 147.000, 147.500, 148.000, 148.500, etc. The upper and lower limits can be set as certain pips away from midpoint.
Example 1: For a units midpoint, assuming 145.000 with upper and lower limit of 0.3. Open trade if price falls between 144.700 and 145.300
Example 2: For a tens midpoint, assuming 140.000 with upper limit of 1.5 and lower limit of 3.0. Open trade if price falls between 137.000 and 141.500
When set to a chosen midpoint, the ea will consider all possible values. The upper and lower limit is not dependent on the midpoints, which means a midpoint can be set to ‘hundreds’ and the limit values don’t have to be hundreds. It can be 10 pips or 1.5pips or even 0.5pips. Also, keep in mind all instruments have different price values. Some derived instruments can have prices in thousands like 3726.1598 and other instruments like eur/usd have prices like 1.10265. But the ea should work for all cases(keep this in mind for the sl and tp variables). For obvious reasons, any midpoint above units would not work on eur/usd, but for the derived instruments a hundreds and thousands midpoint would work. So just need something that works regardless of the instrument being traded. When in use, the variables will be adjusted to fit the current instrument.
The trade will close when sl or tp is hit. Or it will close when the current candle closes (if the option is set to true)
Variables/Inputs:
Price track - always or at the close of a candle - checking the price constantly or checking closing price alone.
Open trade - immediately or new candle
Midpoint - half unit, units, tens, hundreds etc. You can make these integers instead of strings if you want - 0.5,1,10,100,1000 etc.
Upper limit - int/float - number of upward pips
Lower limit - int/float - number of downward pips
Trade type - buy/sell - trade to open based on signal
Lot size - int/float
SL - number of pips - if set to 0, no sl
TP - number of pips - if set to 0, no tp
Close trade after present candle closes - boolean - true/false
This should be straightforward and simple, thanks.
Benzer siparişler
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
I want you to create a strategy that fits for my funded account conditions like winrate of 60%+ with good risk reward ratio min 1:2 and max drawdown per day is 2% or 3% and overall should be less then 10% with less consecutive losses should be able to finish the funded stage in of phase 1 8% target and phase 2 of 10% target in a month with good number of trades in a month need journal of all the back tested data and
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable
I have an existing working MQL5 Expert Advisor and require an experienced MQL5 programmer/trading-system analyst to independently analyse its historical performance. This is NOT initially a request to rewrite the EA or simply optimize parameters. Current strategy: - MetaTrader 5 - M15 timeframe - EMA / ADX / ATR based - Approximately 1,337 historical trades - Gross Profit approximately USD 271,000 - Gross Loss
Hello everyone, I’m looking for a developer who has an algorithm in their arsenal that generates quick profits over the long term. I’m interested in a scalping expert advisor—it can be a one-shot, averaging, or grid strategy, with or without TP/SL. Please share your ideas and results; I’ll consider all options. The most important thing is the result. Good luck
I would like to be part of this trade because i want to help my family out of the hopeless life we are living now . i thoughts going to school will help me get better job but no i am still sitting for us to eat at home i have to sell my body to someone and get pay with that small money i can buy bread and cooldrink for my family that we can not sleep with emyter stomach
I need an Expert Advisor that trades by signal of ADX and Moving Average indicators. It must check and correctly process possible errors in trading operations. The main criteria of opening and closing positions , direction of Moving Average, Price of last bar . Set the number of lots to trade as an input parameter
I need a new custom MT5 Expert Advisor for XAUUSD.sc on my Vantage cent account. I do not have a ready trading strategy. Please propose simple, specific entry, exit and risk rules first. I will approve the rules before development starts. The EA must open and close trades automatically, place a stop loss on every trade, and have adjustable lot size and maximum loss settings. I do not want martingale or increasing lot
I need an Expert Advisor based on Vantage signals.It must have check and handling of trade operation errors. The main criteria for opening and closing a position: moving average direction the price is higher the previous bar Trade lots is an input parameter