Specification


double CalculateProfitOneLot(double entry_price,double exit_price) { double profit=0; if(!OrderCalcProfit(ORDER_TYPE_BUY,Symbol(),1.0,entry_price,exit_price,profit)) { Print(__FUNCTION__," Failed to calculate OrderCalcProfit(). Error ",GetLastError()); } return(profit); }

#define EXPERT_MAGIC 123456  // MagicNumber of the expert
//+------------------------------------------------------------------+
//| Modification of pending orders                                   |
//+------------------------------------------------------------------+
void OnStart()
  {
//--- declare and initialize the trade request and result of trade request
   MqlTradeRequest request={0};
   MqlTradeResult  result={0};
   int total=OrdersTotal(); // total number of placed pending orders
//--- iterate over all placed pending orders
   for(int i=0; i<total; i++)
     {
      //--- parameters of the order
      ulong  order_ticket=OrderGetTicket(i);                             // order ticket
      string order_symbol=Symbol();                                      // symbol
      int    digits=(int)SymbolInfoInteger(order_symbol,SYMBOL_DIGITS);  // number of decimal places
      ulong  magic=OrderGetInteger(ORDER_MAGIC);                         // MagicNumber of the order
      double volume=OrderGetDouble(ORDER_VOLUME_CURRENT);                // current volume of the order
      double sl=OrderGetDouble(ORDER_SL);                                // current Stop Loss of the order
      double tp=OrderGetDouble(ORDER_TP);                                // current Take Profit of the order
      ENUM_ORDER_TYPE type=(ENUM_ORDER_TYPE)OrderGetInteger(ORDER_TYPE); // type of the order
      int offset = 50;                                                   // offset from the current price to place the order, in points
      double price;                                                      // order triggering price
      double point=SymbolInfoDouble(order_symbol,SYMBOL_POINT);          // value of point
      //--- output information about the order
      PrintFormat("#%I64u %s  %s  %.2f  %s  sl: %s  tp: %s  [%I64d]",
                  order_ticket,
                  order_symbol,
                  EnumToString(type),
                  volume,
                  DoubleToString(PositionGetDouble(POSITION_PRICE_OPEN),digits),
                  DoubleToString(sl,digits),
                  DoubleToString(tp,digits),
                  magic);
      //--- if the MagicNumber matches, Stop Loss and Take Profit are not defined
      if(magic==EXPERT_MAGIC && sl==0 && tp==0)
        {
         request.action=TRADE_ACTION_MODIFY;                           // type of trade operation
         request.order = OrderGetTicket(i);                            // order ticket
         request.symbol   =Symbol();                                   // symbol
         request.deviation=5;                                          // allowed deviation from the price
        //--- setting the price level, Take Profit and Stop Loss of the order depending on its type
         if(type==ORDER_TYPE_BUY_LIMIT)
           {
            price = SymbolInfoDouble(Symbol(),SYMBOL_ASK)-offset*point; 
            request.tp = NormalizeDouble(price+offset*point,digits);
            request.sl = NormalizeDouble(price-offset*point,digits);
            request.price    =NormalizeDouble(price,digits);                // normalized opening price
           }
         else if(type==ORDER_TYPE_SELL_LIMIT)
           {
           price = SymbolInfoDouble(Symbol(),SYMBOL_BID)+offset*point; 
            request.tp = NormalizeDouble(price-offset*point,digits);
            request.sl = NormalizeDouble(price+offset*point,digits);
            request.price    =NormalizeDouble(price,digits);                 // normalized opening price
           }
         else if(type==ORDER_TYPE_BUY_STOP)
           {
           price = SymbolInfoDouble(Symbol(),SYMBOL_BID)+offset*point; 
            request.tp = NormalizeDouble(price+offset*point,digits);
            request.sl = NormalizeDouble(price-offset*point,digits);
            request.price    =NormalizeDouble(price,digits);                 // normalized opening price
           }
         else if(type==ORDER_TYPE_SELL_STOP)
           {
           price = SymbolInfoDouble(Symbol(),SYMBOL_ASK)-offset*point; 
            request.tp = NormalizeDouble(price-offset*point,digits);
            request.sl = NormalizeDouble(price+offset*point,digits);
            request.price    =NormalizeDouble(price,digits);                 // normalized opening price
           }
         //--- send the request
         if(!OrderSend(request,result))
            PrintFormat("OrderSend error %d",GetLastError());  // if unable to send the request, output the error code
         //--- information about the operation   
         PrintFormat("retcode=%u  deal=%I64u  order=%I64u",result.retcode,result.deal,result.order);
         //--- zeroing the request and result values
         ZeroMemory(request);
         ZeroMemory(result);
        }
     }
  }
//+------------------------------------------------------------------+

Responded

1
Developer 1
Rating
(12)
Projects
12
25%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(41)
Projects
46
28%
Arbitration
9
0% / 100%
Overdue
7
15%
Free
3
Developer 3
Rating
(230)
Projects
431
27%
Arbitration
123
21% / 55%
Overdue
96
22%
Working
4
Developer 4
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(351)
Projects
373
69%
Arbitration
3
100% / 0%
Overdue
2
1%
Working
6
Developer 6
Rating
(33)
Projects
34
65%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(3)
Projects
3
67%
Arbitration
1
0% / 0%
Overdue
0
Free
9
Developer 9
Rating
(555)
Projects
922
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Working
10
Developer 10
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Working
Similar orders
ICT, SMC, PAMETNI NOVAC KONCEPTI, PAMETNI NOVAC, koncept pametnog novca, podrška i otpor, analiza trenda, radnja cijena, tržišna struktura, blokovi naloga, BOS/CHoCH, blokovi razbijača , pomak momentuma, zona ponude i potražnje/blokovi naloga , jaka neravnoteža, HH/LL/HL/LH, jaz fer vrijednosti, FVG, Zone premije i popusta , Fibonacci retracement, OTE, Likvidnost na strani kupnje, Likvidnost na strani prodaje
The future of the traders be a good traders and patient and humble person faithful loyalty to your job and last be a professional traders and helping a dream of us how to trade and etc,,,,,,,,,,,,,,,,,🤑
Firstly Indicator (1) or the first part \\ Draw a red line at the top of the zero candle _ M1 \\ Draw a blue line at the bottom of the zero _ M1 candle \\ Draw a red line at the top of the zero _ M2 candle \\ Draw a blue line at the bottom of the zero _ M2 candle \\ Draw a red line at the top of the zero candle _ M3 \\ Draw a blue line at the bottom of the zero _ M3 candle \\ Draw a red line at the top of the zero
Trend killer 30 - 200 USD
I Will thanks for allowing me to create and that's good for me and u thanks u very muchand I Will make a good job to work and no to scheme people
100% Automated Trading Forex Robot powered by AI (Artificial intelligence) PLUG AND PLAY NB 100% Automated Trading Forex Robot powered by AI (Artificial intelligence) PLUG AND PLAY THE ROBOT MUST ANALYSIS ITSELF AND GIVE ACCURATE SIGNALS AND EXECUTE TRADES WITH THE HELP OF AI ( ARTIFICIAL INTELLIGENCE) FOR ALL THE KING PRO ROBOT VPN SHOULD BE RENTED FROM THE MAIN ORIGINAL COPY AND THERE SHOULD BE AN OPTION FOR THEM
I have a script i will like to convert into Ninjatrader 8. I have the source codes ready, you may contact me if it is some thing you can do. I will love it to work almost the same the pine script source code provided here is the source codes attached to this offer
I am looking for a developer who can convert my Pine script code to MQ5 code. The code is for a trading strategy that I would like to use on the MetaTrader 5 platform. The code needs to be converted accurately and efficiently, with all of the original functionality preserved. The developer should have experience with both Pine script and MQ5, and should be able to provide a high-quality conversion in a timely manner
I want to create a dashboard that would show all currency pairs using my currency strength indicator, ADX, and my support and resistance indicator.I want to the job done as soon as possible
Fx tool 30+ USD
A bot for analysis and indicators.on becoming a professional trader .trade news also and give signals and I no longer have a great day and I will be there at all br you need to learn to be a good
Meysam 30+ USD
ZigZag بر اساس اسیلاتور مورد نیاز است ایده شاخص یک نشانگر ZigZag ایجاد کنید که بر اساس مقادیر شدید تعیین شده با استفاده از نوسانگرها ساخته شده است. می‌تواند از هر نوسان‌گر نرمال‌شده کلاسیکی که دارای مناطق خرید و فروش بیش از حد است استفاده کند. الگوریتم ابتدا باید با نشانگر WPR اجرا شود، سپس به طور مشابه امکان ترسیم زیگزاگ با استفاده از نشانگرهای زیر را اضافه کنید: CCI چایکین RSI نوسانگر تصادفی الگوریتم و اصطلاحات

Project information

Budget
30 - 200 USD
For the developer
27 - 180 USD
Deadline
to 10 day(s)