Identify Partially Closed Orders for a Floating Profit Function

仕事が完了した

実行時間6 日
依頼者からのフィードバック
Great developer, very patient, skilled and able to complete complex requests
開発者からのフィードバック
Great & honest Customer.. good luck

指定

I had some code converted from MT4 to MT5.


The main function of the EA is that when a certain level of floating drawdown is hit e.g. -$500, the total lot size of those positions are reduced by a specified level e.g. 40% and all the trades in that sequence are modified to breakeven. To achieve this I used the following function (OrderClose()), which also adjusts the trade comment to "to #Order Ticket" or "from #Order Ticket" (e.g. "to #197639979"). So what I have left after running these function is a bunch of trades at Break Even with a trade comment like "to #19639979". In addition to this I have a dynamic take profit function that takes the profit a specified symbol sequence (e.g. EURUSD sells).

After the floating loss has been triggered, I have a grid EA which may open new trades these new trades will have a certain comment and the modified orders will have a "to #19639979" comment. What I have been able to do is separate the take profit for the modified and unmodified orders by specifying a specific trade comment. This is because I take profit for all the orders apart from the following: StringSubstr(OrderComment(),0,4)!="to #" || StringSubstr(OrderComment(),0,4)!="from #".


Here is an explanatory video to demonstrate why this is important: https://drive.google.com/file/d/12IYFl5dcxLObdoQAEGJW10iIx4nVCwxw/view


############# REASON FOR REQUEST ####################### For MT5 it is not possible to modify the trade comment of an order, as a result the solution stated above does not work for it. What I need is a solution to identify the modified and unmodified orders without looking at a specific trade comment.


Please read this description, watch the video.


Code will then be provided.


Thanks

応答済み

1
開発者 1
評価
(176)
プロジェクト
236
45%
仲裁
17
82% / 12%
期限切れ
35
15%
仕事中
2
開発者 2
評価
(298)
プロジェクト
427
26%
仲裁
18
61% / 33%
期限切れ
26
6%
3
開発者 3
評価
(140)
プロジェクト
205
80%
仲裁
18
33% / 44%
期限切れ
10
5%
仕事中
類似した注文
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. THREE TYPES OF ENTRIES 1: AGGRESSIVE 2: DIVERGENCE 3
I need a simple panel to execute both buy and sell operations with very basic things like stopp loss take profit that functions for both market orders such as buy stop sell stop buy limit sell limit I don't care about colors or design I just want how you can do it what interests me most are the functions
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
Hey greetings. Am in need of a developer that has already made profitable MT4 or MT5 EA that I can buy with the backtesting and proven result. How is the draw down ? What is the winning rate ? Kindly reply and let proceed
I need a TradingView script (not mine) converted to an Mt5 EA. There is some specifications for the robots on when to be able to take a trade. Attached bellow is the file of the script I want translated and converted to MT5 then EA
GOODAY TO YOU I AM NEED OF A FAST, TALENTED AND HIGH QUALITY CODER TO THIS JOB FOR ME. THE EA TRADE MANAGER WILL HAVE THE FOLLOWING: STOPLOSS & TAKEPROFIT IN PIPS LOT SIZE IN PIPS NUMBER OF TRADES (1-30 TRADES MAXIMUM) PLEASE LOOK AT THE PICTURE ABOVE FOR A GUIDE

プロジェクト情報

予算
30+ USD
開発者用
27 USD