The drawdown protection EA(DDP) will open a position(position_DD) when the tracked trade(trade_EA) made by another EA goes beyond the drawdown% threshold. when the trade_EA is closed by other EA or drawdawn% threshold is no longer being crossed by position_DD and position_DD is in the positive, at that point position_DD will be closed. The purpose of DDP is to protect the account from sudden and/or prolonged periods of large drawdown.
DDR will have the following behaviors:
1. Each instance of DDP will track particular trades opened by another EA based on the "EA magic number"(tracked_magic_number) and "currency pair"(tracked_trade_currency) parameters.
2. The chart the instance of DDP is open in will be the pair DDP uses in the hedge position.
3. DDP will protect from drawdown occurring in trade_EA in a particular direction, long or short,
based on two parameters: trade_EA_long and trade_EA_short, please see 3.1 - 3.4.
3.1. if both parameters are set to True DDP will track both long and short position made by other EA.
3.2. If trade_EA_long=True and trade_EA_short=False, DDP will only track long trades made by other EA that go into negative and cross the drawdown threshold.
3.3. If trade_EA_long=False and trade_EA_short=True, DDP will only track short trades made by other EA that go into negative and cross the drawdown threshold.
3.4. If trade_EA_long=False and trade_EA_short=False, DDP will not track any trades made by the other EA or open any new position_DD's. If position_DD or multiple positions_DD is/are already open it/they will continue to be managed by DDP as normal.
4. The direction of position_DD(hedge position) will be determined by 2 parameters: position_DD_long and position_DD_short, please see 4.1 - 4.4.
4.1. If both parameters are set to True, then position_DD will be in the opposite direction of trade_EA.
4.2. If position_DD_long=True and position_DD_short=False, DDP can only open long positions when trade_EA goes beyond the drawdown threshold.
4.3. If position_DD_long=False and position_DD_short=True, DDP can only open short positions when trade_EA goes beyond the drawdown threshold.
4.4. If position_DD_long=False and position_DD_short=False, DDP will not open any new positions in any direction. Any already open position_DD will be closed, all position opened by DDP will be closed.
5. The position_DD size will be determined using "position_multiplier" parameter, please see 5.1 - 5.3.
5.1. if "position_multiplier it is set to 1(default), the size of position_DD will equal that of trade_EA,
5.2. if the parameter is set to 1.25, then position_DD will be 25% larger than trade_EA.
5.3. if for example the parameter is set to 0.5 then position_DD size will be 50%/half of the size of trade_EA.
6. DDP must immediately close position_DD if trade_EA is closed by user or other EA or if the drawdown of trade_EA is below drawdown threshold and trade is in a positive direction. There may be multiple trade_EA being tracked and the management of each one must comply with the rules stated.
7. Position_DD must not be allowed to go into high drawdown at any point, the moment position_DD is opened a stop loss will be used, to determine the location of the stop loss the parameter "position_max_drawdown" will be used, this parameter is the maximum drawdown allowed for all position_DD's.
8. Position_DD will have in the comment section the order number for trade_EA in the folowing format: "Order: <Order number>", to allow behavior corroboration using trade history.
9. DDP will be able to track multiple trades opened by other EA, and apply rules discussed above to each position_DD.
10. Source code for the DDP should be provided once completed.
Solicitudes similares
Platform: MetaTrader 5 (MT5) Programming Language: MQL5 Trading Symbol: XAU/USD (Gold) Account Type: Cent Account Support Required (must also work properly on standard accounts with automatic tick value and contract size lot calculation) Timeframe: M5 (5-Minute) Project Description: I need a professional Expert Advisor (EA) for MetaTrader 5 that can automatically trade XAU/USD (Gold). The EA will first be tested on a
Hello, I am looking at getting a completely automated trading bot made that will automatically put trades in and stop losses. A few things need to be editable in the bot, though. I'm back testing the bot quite frequently to make sure that I'm using the right settings. Is this something that you feel that you can do? I'm looking to get it done as soon as I can
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 30% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
Robert for life money's cash maximum 16mb the jobs future linuox Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading signals and acts
I would like to commission the development of a custom Expert Advisor (Trading Robot) for MetaTrader 5 (MT5) that replicates the exact logic of the "Custom Range Bar" study from Sierra Chart, renders the range bar levels as an independent background layer on the chart, displays a live/historical performance statistics dashboard, and executes/manages trades automatically based on the rules below. 1. Range Bar
Okay, this is a big one for MT5 traders. Let's do it properly. In Python, the "Merge Tool" usually means 2 things: 1. *Merge MT5 data from different symbols / timeframes into one DataFrame* 2. *Plot it as a clean graph* Here is a complete working setup: *Step 1: Install* pip install MetaTrader5 pandas matplotlib mplfinance *Step 2: Full Code - Get MT5 Data + Merge + Plot* import MetaTrader5 as mt5 import pandas as pd
I need someone to develop a simple EA that makes random orders. Just random orders no indicators needed. I should be able to set my TP and SL of choice
I am looking for a quantitative strategy researcher and MQL5 developer to help research, validate and prototype a fast automated XAUUSD trading system for MT5. The target is tick-level trading with positions typically held for seconds, closely spaced entries, and configurable bursts of multiple positions during a qualifying opportunity. IMPORTANT: We do not yet have a validated profitable strategy. I need someone who
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