I need an EA that open a first trade at market and simultaneously opens a pending order in the opposite direction at a distance to the open trade. This is how the EA will operate:
Trade will be managed in cycles in which there will be
levels. A level is a trade and a cycle contains one or more levels. The first
trade is level 1, second trade is Level2, etc
First
trade:
Only the first trade needs any logic. Subsequent trades in a cycle depend on the
point of first trade.
I use an oscillator to determine the first Buy/Sell. When the oscillator signals Buy, the first Buy trade
will be fired in the cycle, thereafter, the oscillator is not used in the decision for
the other trades in the cycle.
How to
enter a trade
Buy:
1st Buy at market with
TP = 30 pips and SL = 60 pips and simultaneously
Pending Sell (Sell Stop) 30 pips
below market price TP = 30 and SL = 60 pips.
Scenario 1: If the first
trade hits Take profit, that is the end of that cycle. The EA must wait for another trading
opportunity.
Scenario 2: If the first trade
moves down by 30 pips it will obviously hit the pending sell order. It means at this stage we will have a buy and
a sell open. At that stage, a pending
Buy Stop must be open 30 pips above current price with TP = 30 and SL =
60. If price moves down by 30 pips, the
following things will happen
First trade will hit stop loss @ 60
pips
Second trade will hit take profit @
30 pips
The Pending Buy Stop will not get
filled and must be deleted
Scenario 3: In this scenario we have the first trade Buy, Second
trade Sell and price has moved again to fill another Buy. It means we will have 2 buy open and one
sell. At this point, a Pending Sell Stop
must be opened 30 pips away from the most current order opened.
Scenario 4, etc: This cycle of
opening a trade and simultaneously placing a pending order in the opposite
direction must continue until all open orders have closed. At that stage, the cycle has bee completed
and no pending order must exist for that currency pair anymore.
Correct working
of this EA must ensure that once a trade in a cycle has hit Take profit, no
other order (pending or open) must still be in existence. This is because the SL for Buy is the TP for
Sell and vice versa. The EA must delete all open order for a pair once this is
achieved.
In summary
If Level1 is a buy, then level2 must be a Sell then level 3
is a Buy and Level4 is a Sell, and so on
When the first entry is fired, level2 will be a pending
order.
When Level
2 gets filled Level3 is pending
When Level
3 gets filled Level4 is pending
When
Level4 gets filled Level5 is pending, etc
Lot size increment
Let the
first lot size be a user input. It
should increase using the following factor, x1 represents the first trade.
X1,
x3,x6,x12,x24,x48,etc. Apart from the
second trade which is 3 multiples of the one preceding it, the other trades
will be double the one before it. By
coding, this should increment to infinity
Entry
prices
Apart from the first entry which is determined with Trix,
subsequent prices must follow a pattern well defined like this:
Level 1, Level3,Level5, Level7, Level9,(every other level)
must be the same prices both for entry, Take Profit and Stop Loss. Same also
for Levels 2,4,6,8,etc.
Other
Issues to take into consideration
Once a
take profit is hit, pending order for that currency must be deleted.
A new
cycle starts once a cycle closes in profit.
Any other pending order for that pair at that time must be deleted.
類似した注文
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Hi! I need an experience developer with order flow, volume delta, and futures scalping, and I wanted to ask you a few questions. Have you personally developed and tested fast-paced strategies for Gold Futures (GC), particularly those that enter during short-term price impulses and scale into positions as momentum builds? From your experience, what indicators or signals help you determine whether an impulse has enough
I am looking for an experienced MQL5 developer for the first milestone of a larger MetaTrader 5 project: a multi-symbol, multi-timeframe signal scanner with alerts. This milestone covers indicator integration only. There is no order placement or trade management at any stage. Scope of this milestone Read outputs from three custom indicators (provided as compiled files after selection and NDA) reliably via iCustom and
//@version=4 study(title="UT Bot Alerts", overlay = true) // Inputs a = input(1, title = "Key Vaule. 'This changes the sensitivity'") c = input(10, title = "ATR Period") h = input(false, title = "Signals from Heikin Ashi Candles") xATR = atr(c) nLoss = a * xATR src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close xATRTrailingStop = 0.0 xATRTrailingStop := iff(src >
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement