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
評価
(209)
プロジェクト
281
46%
仲裁
27
59% / 37%
期限切れ
36
13%
2
開発者 2
評価
(298)
プロジェクト
427
26%
仲裁
18
61% / 33%
期限切れ
26
6%
パブリッシュした人: 8 codes
3
開発者 3
評価
(152)
プロジェクト
228
80%
仲裁
22
27% / 50%
期限切れ
11
5%
パブリッシュした人: 24 articles, 1882 codes
類似した注文
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
Project Overview We are seeking an experienced MetaTrader 5 (MT5) / MQL5 developer to design and build a production-ready Expert Advisor intended for live trading with capital at risk . This is not a hobby, experimental, or retail-grade EA. We are only interested in developers with proven experience delivering robust, well-tested MT5 systems . Project Objective Design and implement a high-quality MT5 Expert Advisor
I want developer who know how to create bot which immediately transfer specific crypto coin deposit to one crypto address to another specific address in just a second,, if you know about this then only comment on this post
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
Hello Developers, I need ready made MT5 HFT Gold Scalper. Must pass in backtesting lower DD work with minimum $50 if you have ready made scalper than send file for Demo test and than we Final the deal. Thanks
I would like to create an indicator for my strategy on trading view , my strategy involves a liquidity sweep , wick or candle body closure , this needs to happen inside a higher time frame pd array such as a fair value gap that’s atleast 5m + and there needs to be an inversion fair value gap for my entry , I want the fair value gaps on all time frames so I can see them all on the 1 minute chart but i want the fair
can you help me with making a simple tradingview/script that draws boxes labeling consolidation areas according to my specifications? IF anyone can help with this kindly do well to bid to this so we can discuss more about the project thanka

プロジェクト情報

予算
30+ USD