EA to check both open and closed profit for the day and close all open trades when a condition is met

MQL4 エキスパート

仕事が完了した

実行時間5 日
依頼者からのフィードバック
Great developer. Very good communication. Prompt delivery.

指定

Hello,

I am looking for an EA which is capable of doing the following:

 

1. Accepts following inputs:

   a. Start time of day (say STARTTIME). Default should be 00:00.

   b. Profit level (say MINPROFIT).

   c. Loss percentage (say OPENLOSS). 

2. If the total historic profit (made from all closed trades so far on the day from 00:00 or STARTTIME) crosses the MINPROFIT level then do the following:

    3a. Check if the total floating loss (from all open trades) is equal to (or greater than) OPENLOSS percentage of MINPROFIT at any time then close all open trades.

3. If the total historic profit is less than MINPROFIT then do nothing.

4. If the toal floating loss (from all open trades) is less than OPENLOSS percentage of MINPROFIT then do nothing.

 

For example:

My inputs:

STARTTIME            08:00 

MINPROFIT           100.00  

OPENLOSS (%)      40

 

13:00 - Total historic profit made (closed trades only from 08:00) is : 90 and total loss (from open trades only) is -150. Do nothing as historic profit (closed trades only from 08:00) is less than MINPROFIT (ie. 90 < 100).

14:00 - Total historic profit made (closed trades only from 08:00) is 120 and total loss (from open trades only) is -30. Do nothing as total loss (from open trades only) is less than 40% of 120. (ie. 30 < 48).

14:30 - Total historic profit made (closed trades only from 08:00) is 140 and total loss (from open trades only) is -50. Do nothing as total loss (from open trades only) is less than 40% of 140. (ie. 50 < 56).

14:45 - Total historic profit made (closed trades only from 08:00) is 150 and total loss (from open trades only) is -60. EA should close all open trades as total loss (from open trades only) is greater than or equal to 40% of 150. (ie. 60 = 60). 

14:50 - Total historic profit made (closed trades only from 08:00) is 90 (We closed all trades when loss was at -60 so historic profit has reduced) and total loss (from open trades only) is 10. Do nothing as historic profit (closed trades only from 08:00) is less than MINPROFIT (i.e 90 < 100).

15:00 - Total profit made (closed trades only from 08:00) is 100 and total loss (from open trades only) is -40. EA should again close all open trades as total loss (from open trades only) is greater than or equal to 40% of 100. (ie. 40 = 40). 

 

That's it.

Thank you. 


応答済み

1
開発者 1
評価
(27)
プロジェクト
36
19%
仲裁
14
21% / 71%
期限切れ
12
33%
2
開発者 2
評価
(362)
プロジェクト
496
39%
仲裁
27
56% / 4%
期限切れ
53
11%
3
開発者 3
評価
(440)
プロジェクト
546
25%
仲裁
21
38% / 38%
期限切れ
83
15%
仕事中
類似した注文
I require a breakdown analysis of an existing EA I have been using with some success on MT4. If possible I would like a developer to breakdown the Smart Machine EA, to understand why it places trades, under what market conditions, what indicators it uses etc. With the requirement specifications from the EA, I would then like to modify it to reduce some risk, and create a new EA
Hello, Can you build and help me optimize the following very simple strategy using tradingview: 1.) On QQQ, Wait for market opening range 10 minute bar to close. 2.) Go long beyond the high of 10 min range OR short below on low of 10 min range. (intrabar entry not on close of next bar) 3.) Stop loss is the opposite end of the 10 minute range. All stops and exits are intrabar. Far backtesting can we use 10 minute
This EA is for renko charts. When a bullish candle closes above the last red dash -, open a buy trade at x pips from the close of that candle. If x=0, open a buy trade. When a bearish candle closes below the last blue dash -, open a sell stop at x pips from the low of the bearish candle, if x=0, open a sell trade. The stop loss of a buy trade should be placed at y pips from the low of the bearish candle with the red
Hello developers, no negotian please this is the fucken last badget for this EA I need to code EA which can sell and buy within my help(semi-auto) and by gathering data from an indicator. I have the indicator needed for the strategy. It is very semple job. Here is the rules : 1 - I can set which direction for the ea to work buy or sell . 2- the ea collect the
Good programme Skill needed, ability to built high frequency trading (hft) expert advisor that works on MT4 and MT5 no Grid, no Matin. just Short term trade that last 1sec - 5mins for profit take, that can be used to trade on demo and live accounts RAW ECN icmarket, Blackbullmarket, Fusion market, FPMarkets and 8cap. The EA has to be highly profitable, giving daily profit. If a test version is available, please send
Use whatever combination of indicator you want, but requirements is: Requirements: - must open a 3-4 lot XAUUSD every day (can use news filter to filter high impact days) - TP of 2.000 USD - SL of 14.000 USD Provide backtest screenshot of the last 2 years upon applying for the job
Location: Remote Employment Type:[Full-time/Part-time] About Us At Riskeys, we are transforming the trading experience with our state-of-the-art Smart Trading Keypad for MetaTrader 4/5. Our mission is to empower traders with innovative risk management tools, providing them with the speed, precision, and efficiency they need to succeed in today’s fast-paced financial markets. As we continue to push the boundaries of
Hi there new to this but need some assistance. I need someone to code a very simple indicator/EA (I don't know which one is going to be) with these specifications 1) I need the indicator to create a buffer line between the high and low of the printed candle, the high and low is based on the highest point or lowest point the candle has gone, not the close but the actual wick per say. 2) once the candle is created the
Good programme Skill needed, ability to built high frequency trading (hft) expert advisor that works on MT4 and MT5 no Grid, no Matin. just Short term trade that last 1sec - 5mins for profit take, that can be used to trade on demo and live accounts RAW ECN icmarket, Blackbullmarket, Fusion market, FPMarkets and 8cap. The EA has to be highly profitable, giving daily profit. If a test version is available, please send
Hi Looking for an existing bot to create a Expert Advisor, that can pass prop firm Challenges (1 or 2 phases), like FTMO, MFF, TFF etc. Preferably EA trading GOLD With license key NO martingale strategy Need to have nice entries and exits. NO big lots and low risk. Need complied with this restrictions: -Profit 10% -Max Drawdown (DD) 10% -Max Daily Loss 4% -All trades with SL -NO trades during and after high impact

プロジェクト情報

予算
10 - 20 USD
開発者用
9 - 18 USD
締め切り
最低 1 最高 5 日