Orders selecting by magic number(code piece only)

MQL5 Esperti Integrazione

Lavoro terminato

Tempo di esecuzione 5 ore
Feedback del cliente
10/10 . Very fast programing,great english. Good programer and even more good person, very helpfull. Recomend to everybody !
Feedback del dipendente
Very helpful and good communication.

Specifiche

Hello,

ok so my EA is working perfect but only when its operating alone. What i need is to indentify the trades made by every EA using unique magic number becouse there is no other way. So i need the peace of code with all the needed doubles if you use ones.. sorry i cannot give you my code to work on. My ea opening trades in standart way by using magic number in ordersend and before that i put it in tickets ofcourse, like in example bellow. The EA is going to work with diferend parameters in diferend pairs. The most important for me is "close all" function wich now uses all the trades wich is in acc wich is not good. i use equity stop by indentifying when to close the trades.i put some example also to better explain. So i need if conditions are happen for closing i need to do it by selecting only trades the ones that this EA made, but not as it is now (while orders is > 0) .


extern double MagicNumber=132;
int ticket;




if(x > x && ok == true && x == 0)                                        
    {
      ticket = OrderSend(Symbol(),OP_BUY, Lot,Ask,Slippage,0,0," buy",MagicNumber,0,Blue);
      OrderModify(ticket,OrderOpenPrice(),Ask-StopLoss*Point*platform_digital,Ask+TakeProfit*Point*platform_digital,0);//Modify it!
    }

{
    
if(x < x && ok == true && x == 0)                 
    {                          
      ticket = OrderSend(Symbol(),OP_SELL,Lot,Bid,Slippage,0,0," sell",MagicNumber,0,Red);
      OrderModify(ticket,OrderOpenPrice(),Bid+StopLoss*Point*platform_digital,Bid-TakeProfit*Point*platform_digital,0);//Modify it!
    }  
   }
  }
 }
} 


if(AccountEquity() >= EquityStop) // CLOSE !!!
{
while(OrdersTotal()>0)
{
OrderSelect(0,SELECT_BY_POS);
if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),999,Red);
if(OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),999,Orange);
if(OrderType()==OP_BUYSTOP||OrderType()==OP_SELLSTOP||OrderType()==OP_BUYLIMIT||OrderType()==OP_SELLLIMIT) OrderDelete(OrderTicket());



}
 }


One more thing, i put the ordersmax protection using very primityve algorythm, so i need fix for that also. i think it would be best to count the orders using ticket but i am not sure if the int ticket will not be the sum of all the ea runing becouse all of them have the same code. The problem is that if i limit one order per bar, and using on multiple charts and they need to open at the same time it couses the problem, other EA's will not enter becouse of restriction :


//OrderMax protection

extern double MaxOpenOrders = 1;
double o = OrdersTotal();

{
if(o >= MaxOpenOrders)
ok = false;

if(o == 0 &&  AccountEquity() <= EquityStop)   // to turn it on again if the profit has been reached with 1 order and all is closed allready
ok = true;

}


Anybody can help me?

please take this job and give me your skype, i will contact you if you really can do this.

Con risposta

1
Sviluppatore 1
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(82)
Progetti
150
29%
Arbitraggio
9
44% / 11%
In ritardo
46
31%
Gratuito
3
Sviluppatore 3
Valutazioni
(63)
Progetti
80
28%
Arbitraggio
17
12% / 76%
In ritardo
48
60%
Gratuito
4
Sviluppatore 4
Valutazioni
(564)
Progetti
844
73%
Arbitraggio
15
53% / 13%
In ritardo
193
23%
In elaborazione
5
Sviluppatore 5
Valutazioni
(73)
Progetti
257
53%
Arbitraggio
16
50% / 38%
In ritardo
83
32%
Gratuito
6
Sviluppatore 6
Valutazioni
(164)
Progetti
218
50%
Arbitraggio
6
17% / 67%
In ritardo
11
5%
Gratuito
Ordini simili
Description: I need a semi-automatic Expert Advisor (EA) developed for MetaTrader 5 (Hedging account, optimized for Exness Cent accounts) to manage my manual trades on Gold (XAUUSD) using a positive pyramiding trend-following strategy. Detailed Specifications: 1. Multi-Basket Management (Crucial): The EA does NOT open the initial trade. It waits for me to open a manual trade (Buy or Sell). If I open another manual
Live chart [ expert is not executing trades on xauusd ] , Deleting Existing Parameter not in use , Live Chart Adjustments Only , No Need to Change anything else , expert will be live testing Throughout
El 3aksiyat 0 35+ USD
//@version=6 indicator("منظومة El_3aksiiya 0 المتكاملة", overlay=true, max_labels_count=500, max_boxes_count=500, max_lines_count=500) // الألوان color_accum = color.new(#0000FF, 85) color_manip = color.new(#FFFF00, 80) color_dist = color.new(#FFC0CB, 80) color_elliot = #FF8C00 color_fib = #FFFF00 color_entry = #00FFFF color_tp = #00FF00 rsiVal = ta.rsi(close, 14) // نموذج AMD var int barCount = 0 if
Prepare expert for xauusd live chart [ expert is not executing trades on xauusd ] . Deletion and cleaning code . Trailing Stop Rule to follow the given method . Live Chart Only
SNIPER X AI 30 - 120 USD
I need help in building a Robot SNIPER X AI — FINAL BUILD Trading System Type AI Scalping + Sniper Entry Expert Advisor Platforms MetaTrader 4 MetaTrader 5 Supported Brokers � exness.com � justmarkets.com � deriv.com Universal MT4/MT5 broker support FINAL CORE FEATURES ✅ AI Scalping Engine ✅ Sniper Entries ✅ Auto Buy/Sell ✅ EMA Trend Detection ✅ RSI Momentum Filter ✅ Smart Stop Loss ✅ Dynamic Take Profit ✅ Trailing
Hello, I am looking for a serious and experienced MQL5 developer who also has practical trading experience , not only programming skills. The goal is to develop a professional-grade Expert Advisor / semi-automated trading system suitable for prop firm trading , with a strong focus on: ✅ Quality ✅ Robustness ✅ Risk control ✅ Realistic execution ✅ Professional backtesting ✅ Prop firm-friendly logic This is not a simple
//+------------------------------------------------------------------+ //| $10 Smart Scalping Bot for MT5 | //| EURGBP + AUDUSD + XAGUSD Optimized | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //========================= INPUTS ================================== input double LotSize = 0.01; input int FastEMA = 20; input int SlowEMA =
1. Project Overview & Strategic Objective We are seeking an elite, senior-level MQL developer to design and engineer a bulletproof, proprietary MT4 non-standard bar generation application. The primary objective of this project is to build an independent, institutional-grade charting infrastructure to permanently eliminate third-party plugin dependency risks (highlighted by legacy solutions like AZ-INVEST going
Hello, I am looking to develop a commercial-grade Expert Advisor for MT5 specifically optimized for XAUUSD (Gold). The underlying logic should be an intelligent, trend-filtered cost-averaging grid system focused on capital preservation. The EA must include the following functional architecture: 1. Core Strategy Structure: - Must feature a multi-strategy logic entry module. I want to use a combination of 3-4 standard
MT5 Indicator – QML (Quasimodo Left) Pattern I need an experienced MQL5 developer to build a custom MT5 indicator based on the QML Quasimodo pattern as used in SMC/ICT trading. I will attach reference screenshots showing exactly how the pattern should look. The indicator must detect and draw: 1. QML pattern structure — HH, HH, HL, LL swing labels with the QML level drawn as a horizontal dotted line at the last Higher

Informazioni sul progetto

Budget
10 - 20 USD
Scadenze
da 1 a 8 giorno(i)