Function for calculating static TP market price for all open orders by entering profit percentage

仕事が完了した

実行時間7 時間
依頼者からのフィードバック
Job completed quickly and with quality, thanks Khuman. I will definitely contact you again with other jobs.
開発者からのフィードバック
Thanks! Another great and understanding customer

指定

Hi all,

I need somebody to help me with writing a function for MT4 which will calculate TakeProfit market price for all open orders entering profit percentage, when profit of winning orders exceeds loss of losing orders.

For example, if I set 10% as input value, profit of open winning orders have to be 10% more than loss of open losing  orders.

I need this function for my grid system EA

For example:

My EA opened 3 market orders in same direction (EURUSD symbol)

1. order - buy with 0,02 lots, opened at 1.17196

2. order - buy with 0,04 lots, opened at 1.16946

3. order - buy with 0,08 lots, opened at 1.16696

my TP percentage is 10%, I need to calculate TakeProfit market price when profit from open  winning orders exceeds loss of open losing orders for 10%.

function input parameter will be percentage, for example: 5 or 10 or 15.5 (%)

function return value will be TP market price, for example above: 1.17112

function need to iterate over all open orders and calculate TP market price.

Order swap and order commission must be taken into account in the calculation.

function will be used for open buy or sell orders in same direction.

I want to use this function in all of my future EAs, so I need all rights for it.

double calcTPFromPercentage(double percentage)
{
  return TPMarketPrice;
}


応答済み

1
開発者 1
評価
(115)
プロジェクト
129
18%
仲裁
11
27% / 55%
期限切れ
4
3%
2
開発者 2
評価
(19)
プロジェクト
35
26%
仲裁
10
30% / 70%
期限切れ
5
14%
3
開発者 3
評価
(443)
プロジェクト
570
37%
仲裁
106
39% / 33%
期限切れ
17
3%
4
開発者 4
評価
(70)
プロジェクト
91
25%
仲裁
26
19% / 54%
期限切れ
25
27%
5
開発者 5
評価
(111)
プロジェクト
139
43%
仲裁
9
33% / 44%
期限切れ
6
4%
類似した注文
Foxer trading 30 - 500 USD
Automated Forex trading software is generally evaluated by users on independent forums like Forex Peace Army, Myfxbook, and Trustpilot. The highest-rated systems typically fall into three categories, depending on your risk tolerance and trading style: GPS Forex Robot : Famous for its long-term track record on verified Myfxbook accounts. Users praise its steady trend-following logic and its conservative approach
Raydon read 30+ USD
Instead of an answer key, bots use user-defined settings like lot size, stop-loss, take-profit, and unique identifier numbers (magic numbers).Logic Rules: They scan markets for triggers like moving averages, RSI, or MACD.Execution: Trades happen programmatically to remove human emotion
Tex 30+ USD
Today's Trading Strategy Options: Employ a disciplined execution approach based on the following two price-reaction scenarios: Scenario A. Buy Strategy (Capitalizing on Bullish RSI Momentum) – Trigger: Wait for the price candle to close decisively above the MA 50 (157.815). Take Profit: Set the initial target in the 158.200 range, with a maximum target of 158.500. Stop Loss: Place below the MA 20 or around the
Access and confidentiality restrictions: You will receive only a separately named copy of the Commander . Existing trading EAs, presets, account credentials, Telegram credentials and proprietary entry/exit code will not be shared. The Commander intelligence must be developed using: Defined signal/input interfaces Anonymized historical logs and replay data Mock EA signals and test harnesses Documented authority and
need an EA or indicator done , based on any strategy but with the following specific risk management parameters ; were i am able to do at least 2RR(standard reward-risk ratio for every trade) , fair win rate that is at leat 50% , EA should be able to generate at least 2 trades and above per week , favourable sharpe ratio . total drawdown of not more than 8% any given month and not over 3% any given day , would
I need an MQL5 trading robot for Forex. It should open and close trades based on my strategy rules. Please include money management, stop loss, take profit, and lot size settings. The EA should be stable, easy to edit, and tested before delivery. I will share the exact entry and exit rules with the developer
I need a professional programmer who can code this top tier professional synthetic index EA structure perfectly to my laptop extra perfectly payment after successful job very urgent needed here in Nigeria at onitsha Here is my contact you can message me on my WhatsApp 09121052987/ direct call 09038568050
Hello, I am looking for an experienced MQL5 developer to develop a professional and reliable Expert Advisor (EA) for MetaTrader 5. The EA will be based on a custom automated Forex trading strategy that I have developed and tested. The detailed trading logic and proprietary rules will be provided privately to the selected developer. General requirements: • Development in MQL5 for MetaTrader 5. • The EA will initially
I would like you to create, or if you already have one: purchase a profitable martingale OR grid EA from you that NEVER blows up the account. REQUIREMENTS Platform : only MT4 Pair : any Timeframe : any Strategy : any Profitability : 10% / month, every month. Not an "average", but: every month. Lots : dynamic (as the account grows, so do the lot sizes) THE PROCESS Send me a trial version of the .ex4 file. I will
Anallysis 30+ USD
Market signal analysis is the process of identifying, interpreting, and evaluating specific indicators or cues in the financial market to predict the direction of asset price movements. The results of this analysis generate trading signals that provide specific recommendations regarding the best time to buy, sell, or hold an asset

プロジェクト情報

予算
30+ USD
締め切り
最低 1 最高 2 日