New EA similarities to
previous build
- EA
trades based on upcoming Economics Events (as already built)
- EA
open trades based on dots of PSAR (as already built)
- Logic
of trade is based on martingale (as already built)
NEW Logic
of Trading:
a. EA
waits for upcoming news, and based on time and news filter will open trade
based on action of price on PSAR (as already built)
b. EA
opens long or short position based on direction of PSAR (as already built)
Major Difference between Old and New Logic
c. If EA
opens a long position (position A) as shown in diagram below (red-dot), it will
place TP (TP-A) at the position equal to the distance of new PSAR dot (as
already built),
but
instead of placing SL (SL-A) at the new position of PSAR dot, it will rather
place a SellStop Pending order (trade-B) with Martingale multiplier.
Therefore,
SL for trade-A will be x2 of what initially should have been; and TP for trade-B
will be at same price SL-A (see diagram)
Entry
point is marked in big-dot-red (point where psar-dot switched)
d. So if
trade-B is triggered, immediately a 3rd pending order (buy-stop)
position will be placed at same point were trade-A started. Therefore, if
trade-B did not reach TP, and price reverses to trigger Trade-C, a 4th
pending-order (sell-stop) position will be placed at same position were trade-B
was triggered, and so on, and so on, using martingale multiplier.
e. So martingale
logic will play out, and keep multiplying trades, until either TP or SL of any
of the opened positions is reached.
f. PLEASE NOTE
that, if price touches any of TP or SL of any of the opened positions, EA
should FORCE-CLOSE ALL OPENED TRADES
IMMEDIATELY (very important please)
g. Last trade should try and achieve breakeven (or
minimal loss). What this means is that if for example, user sets EA parameter =
Maximum open trades/cycle = 5
And at
4th trade, price did not reach TP of the 4th trade but
goes on to trigger this 5th trade, the value of lot size for 5th
trade should be such that it equalizes total long position and short position
(like a hedged)
or
please you can share your idea on how best to achieve minimal loss when this
scenario is reached).
Thank
you.
Benzer siparişler
Create a fully automated MetaTrader 5 (MT5) Expert Advisor (EA) in MQL5 based on the following exact trading strategy. STRATEGY NAME: Previous Day High/Low Daily Breakout Strategy INSTRUMENTS: 1. XAUUSD — fixed lot size: 0.01 2. EURUSD — fixed lot size: 0.10 TIMEZONE: All strategy times must be calculated in Indian Standard Time (IST / UTC+5:30). The broker's server time may be different, so the EA must correctly
OVERVIEW: I am looking for an experienced MQL developer to build a proprietary Expert Advisor (EA) specifically optimized to PASS evaluation challenges on modern prop firms (specifically targeting The 5%ers execution rules). The EA must rely on momentum and volume expansions, completely avoiding toxic strategies such as Grid, Martingale, or averaging down. Every trade must protect the account's daily drawdown
Hello here, I need someone who can work on pinescript and also with Renko charts. My entries for my strategy would be based on stop orders Kindly let me know if you can work on this for me and i will send necessary file and quote in the chat
Trade XAUUSD only Support MT5 Use Buy Stop and Sell Stop pending orders around a configurable breakout range. When the market breaks the range, activate the corresponding trade. Automatically place Stop Loss and Take Profit immediately with every order. Automatically cancel the opposite pending order after one side is triggered. No Martingale No Grid No averaging down No loss recovery system No unlimited position
Hey guys, I’ve got an MT4 HFT EA that’s showing strong results on an IC Markets demo account, and I'm looking to move it over to MT5. Does anyone have a solid MT5 version that performs well on IC Markets? Having the source code (MQL5) included would be awesome. Thanks for any leads
Hello! I want to automatically trade on Sierra Charts (IronBeam Brokerage). NQ ($20 per "handle") or MNQ ($2 per point or handle) - futures Broker: IronBeam mostly for the low capital requirement for futures Chart: Sierra Charts I almost exclusively trade a 5-20 bracket with 2 contracts (first contract closes at a +5 and second bracket closes at a +20.) When the +5 is reached, I move my stop from -15 to BE
Let’s use Chart M3. Stochastic 8,3,3. 85/15 trigger for sell stochastic >85, and the reversal move need to engulf the last bar for 1 point. SL over the engulfed bar. Same trigger for buys… Stochastic <15, engulfed bar by 1 point = entrance. SL under the engulfed bar… more details as soon we start to work on it
Title: Custom EA: Dynamic Trailing Limit Grid with Volatility/Velocity Filter and Auto SL/TP Description: I am looking for an experienced MQL5 programmer to develop a high-performance, robust Expert Advisor (EA) for MetaTrader 5. The strategy relies on dynamic trailing limit orders that automatically adjust to market price changes, featuring a safety buffer during high-velocity price spikes. The EA must include the
Freelance Task — EA Recovery Layer Hello. I have a ready-made MQL5 EA. The signals, SL/TP and lot calculation should essentially not be touched. I need a recovery system added. I am not a programmer — below is how the robot should behave. What stays Entry only from an EA signal. Stop-loss is not a new signal. Trailing is already built into my EA — recovery does not implement its own trailing. If trailing is disabled
//+------------------------------------------------------------------+ //| synthetic tick generator based on two assets | //+------------------------------------------------------------------+ class CSyntheticTickGenerator { private : string symbol_a; string symbol_b; string synth_name; double ratio; double last_price_a; double