Техническое задание


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);
        }
     }
  }
//+------------------------------------------------------------------+

Откликнулись

1
Разработчик 1
Оценка
(12)
Проекты
12
25%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(41)
Проекты
46
28%
Арбитраж
9
0% / 100%
Просрочено
7
15%
Свободен
3
Разработчик 3
Оценка
(231)
Проекты
433
27%
Арбитраж
122
21% / 56%
Просрочено
96
22%
Загружен
4
Разработчик 4
Оценка
(1)
Проекты
1
100%
Арбитраж
0
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(354)
Проекты
377
70%
Арбитраж
3
100% / 0%
Просрочено
2
1%
Загружен
6
Разработчик 6
Оценка
(33)
Проекты
34
65%
Арбитраж
0
Просрочено
0
Свободен
7
Разработчик 7
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
8
Разработчик 8
Оценка
(3)
Проекты
3
67%
Арбитраж
1
0% / 0%
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(555)
Проекты
922
48%
Арбитраж
300
59% / 25%
Просрочено
123
13%
Загружен
10
Разработчик 10
Оценка
(66)
Проекты
143
34%
Арбитраж
11
9% / 55%
Просрочено
26
18%
Работает
Похожие заказы
I am currently seeking the expertise of a skilled MQL5 developer to assist with conversion of a .mq4 Source Code To .mq5 Source Code. The ideal candidate should possess expertise in MQL5 programming, with a strong understanding of algorithmic trading strategies. If you are an experienced MQL5 developer interested in taking on this project, please reach out to me directly with your portfolio and relevant experience. I
I need assistance setting up both manual and automated trading strategies. I want the flexibility to add multiple strategies in the same order as needed. Additionally, I need any profits made to automatically convert to USDT (Tether) rather than remaining in the same coin. The setup should be compatible for both PC and mobile use, and across platforms including Binance, Bybit, Bitget, Gate.io, and TradingView. If you
Hello, this is pretty straight forward. I need a trading strategy in forex or crypto that makes a return of at least or very close to 100% a month. The strategy should also be able to compound profits. DD does not matter but a relative low one would be good. The strategy should be backtested and be giving steady returns of near or above 100% return per month. The strategy also need to be automated into an EA/bot
Developer !! i need an robot that is going to analyze the market\pair chart before opening trades ,example if the robot is place on the chart of GBPUSD on H1 time frame the robot should analyze the direction of a market ,then open after knowing the direction,if the can possible make it analyze even on lower time then that would be fantastic. remember the is going to open on its own the trades, thank you NB;i don't
Hello, I would like you to help me develop a simple Expert Advisor (EA) for trading the Boom and Crash markets. All the project requirements is available with me . kindly bid if you can develop EA for boom and out crash . Thanks
Hello, I am looking for an programmer to convert a TradingView strategy pine script to MT5 EA auto trade bot. The indicator is based on the FVG/Imbalance (Pine script will be provided) The MT5 EA must return 100% the same results as TradingView script The MT5 EA must include the same options as TradingView The MT5 EA must be errors free
I am currently seeking the expertise of a skilled MQL5 developer to assist with a custom trading bot project tailored to specific requirements. The project entails the development of a versatile trading bot capable of implementing both manual and automated strategies, with flexibility to switch between strategies seamlessly. Additionally, the bot should be designed to convert profits automatically into USDT, allowing
Hello I need an indicator edited . So I need the ichimoku indicator edited to show when the kijun -Sen and tekan- Sen are both pointing up and the chikou have to be above candles and Senkou span A have to also be pointing up I need an up arrow vice versa for sell. I will need a alert when that happen as well
I would like a Forex trading robot for MT5. The market entry signal is based on a TradingView Indicator (I will provide the name of which one), and the robot should execute Buy or Sell trades based on the Buy/Sell alerts that this indicator provides. The TradingView Pine Script is open source, so it will be available for you to see. Closing of positions is done by the SL, TP. The lot size is calculated as a
I have an EA with the sourse code but instead of using an FX blue copier to invert the trades i want the EA to reverse its Strategy. For example if the EA wants to buy it will sell. And the stop loss and take profit will be inverted also

Информация о проекте

Бюджет
30 - 200 USD
Исполнителю
27 - 180 USD
Сроки выполнения
до 10 дн.