Need a small modification for my EA

MQL4 Esperti C++

Lavoro terminato

Tempo di esecuzione 1 ora
Feedback del dipendente
Good Customer
Feedback del cliente
You are the best thanks :)

Specifiche

Hello,
the problem is the function " My_Money_Equity_Target" the value changes itself when I win a trade

Example

I enter the value 10 in my EA, if my
Account Equity is at 1000 then it will cut all my orders to 1010 and 1020 and 1030 ect
but the problem is that when I have a winning position my takeprofit is hit well my
My_Money_Equity_Target goes down to 995 because I have other open order loser,
what I would like is that my My_Money_Equity_Target only go up to the value not requested but does not go down.



Complete Code


//+------------------------------------------------------------------+
//|                    TakeProfit 1 |
//+------------------------------------------------------------------+

#property copyright ""
#property link      ""


                                       
extern double My_Money_Equity_Target=10;  
                                         
int Slippage=4;                                        
int i;

double   EquityTarget;
//+------------------------------------------------------------------+
                                  
//+------------------------------------------------------------------+
int init()
  {
//---- 
   EquityTarget = AccountEquity()+My_Money_Equity_Target;
//----
   return(0);
  }
//+------------------------------------------------------------------+
                               
//+------------------------------------------------------------------+
int deinit()
  {
//---- 
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
                                         
//+------------------------------------------------------------------+


int start()
{
if (AccountEquity()>= EquityTarget)

   {
    for(i=OrdersTotal()-1;i>=0;i--)
       {
         if(OrderSelect(i,SELECT_BY_POS))
         {
            bool Res=false;
            if(OrderType()==OP_BUY)
            {
               Res = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),Slippage,clrNONE);
            }else if(OrderType()==OP_SELL)
            {
               Res = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),Slippage,clrNONE);
            }else
            {
               Res = OrderDelete(OrderTicket());
            }
         } 
       }
      Print ("Equity reached to ",DoubleToStr(AccountEquity(),2));
      if(!Res)    return(0);
      EquityTarget = AccountEquity()+My_Money_Equity_Target;
   }  
   
   Comment("Balance: ",AccountBalance(),", Account Equity: ",AccountEquity(),", Account Profit: ",AccountProfit(),
           "\nMy Account Equity Target: ",DoubleToStr(EquityTarget,2));
   
  return(0);
}

Con risposta

1
Sviluppatore 1
Valutazioni
(620)
Progetti
680
57%
Arbitraggio
25
16% / 60%
In ritardo
228
34%
Gratuito
2
Sviluppatore 2
Valutazioni
(590)
Progetti
789
71%
Arbitraggio
9
33% / 33%
In ritardo
22
3%
Gratuito
3
Sviluppatore 3
Valutazioni
(31)
Progetti
42
26%
Arbitraggio
10
20% / 50%
In ritardo
8
19%
Gratuito
Ordini simili
I need an urgent requirement by the developer who are able expert in designing the EA-Anil and can give best trailing result of profit in EA-Anil I am sending.Developer should design the best graphic user trader panel info, plus a buy sell input panel and should display trade result within 4-5 days of this development program
EA Description: Box Identification: The EA allows users to manually mark consolidation zones on the chart with rectangular boxes. These boxes are distinguished by color: red for bearish zones and green for bullish zones. Entry Types: Aggressive Entry (True/False): Users can opt for aggressive entries, initiating trades at a specified percentage of the zone's range. Divergence Entry (True/False): The EA detects
I’m looking for a developer that has understanding of scalping and HFT strategies that can make an algo that works for all brokers and prop firm LIVE accounts (like STP, ECN, DMA, Money Makers, NDD, Fast Server etc.,). I want someone that has understanding and insight in different scalping and HFT strategies, preferably something like momentum based strategies. The EA has to work on all Brokers and Prop firms like
The strategy uses a grid trading system where trades are placed at set intervals (grid levels) and are managed using Bollinger Bands for entry and exit signals. A fixed lot size, trades are managed to comply with maximum spread conditions and specific trading hours, with the possibility of closing trades based on Bollinger Bands signals. The use of Bollinger Bands indicates a focus on volatility-based trading, while
I would like some assistance modifying an indicator as I am not experienced enough to make these changes myself. The indicator is relatively simple high/low breakout indicator that I need to add additional logic to. Source code will be provided. Current Features The indicator provided scans swing highs and lows and based on certain conditions draws a green or red line showing a break high or low. Dots are drawn to
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
HELLO, I need some modifications into my indicator . I need to add the possibility to show the old zones in addition to the current ones . We can already choose the possibility of displaying the old zones with the history mode with a double click when the option is ON, but this remove the current zones . What i want is the possibility when you activate the HISTORY MODE : to KEEP THE OLD ZONES DISPLAYED AUTOMATICALLY
MT4 INDICATOR 30 - 35 USD
Looking for a proven MT4 indicator that is highly consistent and profitable preferably that you have developed and are able to share with me. If you have some indicator that is valuable for making consistent profit please bid and show me trading history from using it in your MT4 account. Thanks

Informazioni sul progetto

Budget
30+ USD
IVA (20%): 6 USD
Totale: 36 USD
Per lo sviluppatore
27 USD
Scadenze
a 10 giorno(i)