Hello.
I have an ea that places 2 pending orders - 1 buy stop and 1 sell stop at a certain time.
There are a few things i want changed and fixed:
- The breakeven doesnt sometimes work :
04:29:58.331 '168456': order was opened : #32326447 buy stop 4.00 AUDUSD-Pro at 0.93961 sl: 0.93841 tp: 0.94611
04:29:58.331 '168456': pending order sell stop 4.00 AUDUSD-Pro at 0.93763 sl: 0.93883 tp: 0.93113
04:29:58.487 '168456': order was opened : #32326448 sell stop 4.00 AUDUSD-Pro at 0.93763 sl: 0.93883 tp: 0.93113
04:30:04.243 '168456': modify order #32326448 sell 4.00 AUDUSD-Pro at 0.93754 sl: 0.93883 tp: 0.93113 -> sl: 0.93874 tp: 0.93104
04:30:04.415 '168456': order #32326448 sell 4.00 AUDUSD-Pro at 0.93754 was modified -> sl: 0.93874 tp: 0.93104
04:30:05.211 '168456': modify order #32326448 sell 4.00 AUDUSD-Pro at 0.93754 sl: 0.93874 tp: 0.93104 -> sl: 0.93714 tp: 0.93104
04:30:05.398 '168456': order #32326448 sell 4.00 AUDUSD-Pro at 0.93754 was modified -> sl: 0.93714 tp: 0.93104
04:30:05.398 '168456': modify order #32326448 sell 4.00 AUDUSD-Pro at 0.93754 sl: 0.93714 tp: 0.93104 -> sl: 0.93874 tp: 0.93104
04:30:05.554 '168456': order #32326448 sell 4.00 AUDUSD-Pro at 0.93754 was modified -> sl: 0.93874 tp: 0.93104
04:30:15.210 '168456': delete pending order #32326447 buy stop 4.00 AUDUSD-Pro at 0.93961 sl: 0.93841 tp: 0.94611
04:30:15.351 '168456': pending order #32326447 was deleted
and
11:30:24.138 '168456': modify order #32738475 buy 2.30 GBPUSD-Pro at 1.71124 sl: 1.71004 tp: 1.71674 -> sl: 1.71164 tp: 1.71674
11:30:24.304 '168456': order #32738475 buy 2.30 GBPUSD-Pro at 1.71124 was modified -> sl: 1.71164 tp: 1.71674
11:30:24.304 '168456': modify order #32738475 buy 2.30 GBPUSD-Pro at 1.71124 sl: 1.71164 tp: 1.71674 -> sl: 1.71004 tp: 1.71674
11:30:24.478 '168456': order #32738475 buy 2.30 GBPUSD-Pro at 1.71124 was modified -> sl: 1.71004 tp: 1.71674
As you can see the sl is set back to the original one, BUT, sometimes it does work properly so I have no idea how this can be explained.
- I want the other opened pending order to be closed immediately when the other is triggered. For example - the buy stop gets hit - the sell stop is deleted.
- I want the EA to open the opposite trade when the initial stop loss is hit, with the lot size 80% of the order that got stopped, with SL at the stopped out orders open price. For example - EURUSD buy stop gets hit at 1.3000, 10 lots. SL at 1.2990 gets hit, then immediately a sell order is opened, 0.80 lots, SL at 1.3000. This function should have an on/off switch.
- In the time somewhere between 00:00 - 03:00 the ea's timing and dating gets kinda messed up, I'm adding a screenshot, you'll understand what I mean if you take a closer look at the date and time.
Nothing else of the EA should be changed, there a quite a few modications to it, so I hope that nothing else gets messed up.
I will provide EA when everything is setlled.
Benzer siparişler
I am looking to develop a highly optimized and fully modular script in MQL5 specifically for detecting RSI Divergences. This script will serve as a foundational building block to be integrated into a larger, comprehensive Expert Advisor (EA) later. Therefore, execution speed, strict logic, and a clean codebase are my absolute top priorities. Here are the core technical requirements for this project: 1. MQL5
My requirement i have mention in the video. I explain it from a screen record will be more clear https://www.youtube.com/watch?v=oTCWx7tfckM Mainly RSI martingale TP/SL lot size will auto base on the profit/loss i wish to risk
We have an existing Expert Advisor (EA) for MetaTrader 4. We need to restrict the EA so it only works on specific MetaTrader account ID(s). Key Requirements: Add account ID locking functionality to the EA. EA should run only on authorized account number(s). If used on any unauthorized account, the EA should: Stop trading, and/or Display an error message (e.g., “Unauthorized Account”). Ability to easily update or add
I hope to acquire a profitable and existing expert advisor (EA) from the gold market, with complete source code, to add to our client portfolio. you can WECHAT: Faca7898 Please note EA when adding friends. It should be clarified that this does not require you to formulate or design new strategies. If you already have a verified, consistent, and production-ready EA, I am willing to purchase it immediately and engage
Hello I want a very profitable scalping EA , tight stoploss and low drawdown , for Xauusd or any pair, time frame any, daily profit 20$ minimum and minimum deposite 200$ maximum sir
I’m looking for an experienced developer to help build a trading bot for Polymarket , focused on short-term crypto prediction markets (e.g. 5–15 minute intervals). The strategy is fully rule-based and operates on binary outcome markets (YES/NO shares). The bot should be able to: monitor live market prices and probabilities, execute trades based on predefined conditions, manage positions dynamically before market
This project is to create or provide a back testable renko chart builder/EA for MT5 which must be: Back testable using strategy tester Optimisable using strategy tester Accurate in terms of price, including wicks Accurate in terms of time, with no future date issue. Able to produce both normal and median renko. The renko must have been developed by the developer OR have been used previously by the developer for off
Hi developers, I want to create a Trading Assistant. The minimum developer experience is someone who has created a Trading Assistant before. The developer has worked on more than 100 job orders The Trading Assistant uses a Risk-Reward Ratio, a movable panel, an expandable panel with a hidden menu, and a modern UI. Thank you
Core Requirements: Platform: MetaTrader 5 (MT5). Symbol: XAUUSD (Gold). Timeframes: M1 and M5 (user selectable). Trading Style: Scalping with controlled risk (not aggressive or high-risk strategies) -> adjustable, even better. Execution: Fast execution, optimized for gold market conditions. Frequence = adjustable, but there should be 10-20 trades per day. Strategy Logic: Use a reliable and conservative strategy
Eu preciso disso. A linha central do TMA (17,5,1.5) será a principal referência. Outra linha de média móvel (AVG) de 3 períodos decrescentes 2. As ordens serão as seguintes: abaixo, somente compra de TMA; acima, somente venda de TMA. O sinal de entrada será o seguinte: se o preço estiver acima da Média Móvel Tarifária (TMA), será apenas para venda; quando o preço se mantiver abaixo da Média Móvel Tarifária (AVG)