Работа завершена

Время выполнения 21 час
Отзыв от заказчика
The best developer I have used here.
Отзыв от исполнителя
It was nice to work with the client. Thank you for the project.

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

The loop will calculate consecutive losing trades and reset to zero once a winning trade is met. 

For example: A trade is closed as a losing trade, the loop will count 5 losing trades and return the value 5, then once a trade has closed in profit the loop will reset.

I am looking for very concise code that I will add to an existing EA.


This is the code I have as an example which does not function the way I am proposing.

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int ConsecutiveLosses()
  {
//Calculate the no of winners and losers from today's trading. These are held in the history tab.
   int LosingTrades = 0;
   int loss_count = 5;

// (BA) Get the start second of the current day (server time)
   for(int cc = 0; cc <= OrdersHistoryTotal(); cc++)
     {
      if(!OrderSelect(cc, SELECT_BY_POS, MODE_HISTORY))
        {
         continue;
        }
      if(OrderSymbol() != Symbol())
        {
         continue;
        }
      if(OrderMagicNumber() != MagicNumber)
        {
         continue;
        }
      if(OrderType() > 1)
        {
         continue;
        }
      if(OrderProfit() < 0)
        {
         LosingTrades++;
         if(LosingTrades > loss_count)
            break;
        }
     }//for (int cc = 0; cc <= tot -1; cc++)
   return(LosingTrades);
  }//End void CalculateDailyResult()

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

1
Разработчик 1
Оценка
(131)
Проекты
152
22%
Арбитраж
5
0% / 60%
Просрочено
4
3%
Работает
2
Разработчик 2
Оценка
(88)
Проекты
104
35%
Арбитраж
5
40% / 20%
Просрочено
5
5%
Работает
3
Разработчик 3
Оценка
(374)
Проекты
398
31%
Арбитраж
62
19% / 68%
Просрочено
50
13%
Загружен
4
Разработчик 4
Оценка
(150)
Проекты
219
58%
Арбитраж
3
100% / 0%
Просрочено
45
21%
Загружен
5
Разработчик 5
Оценка
(41)
Проекты
54
4%
Арбитраж
5
0% / 60%
Просрочено
4
7%
Свободен
6
Разработчик 6
Оценка
(298)
Проекты
427
26%
Арбитраж
18
61% / 33%
Просрочено
26
6%
Свободен
7
Разработчик 7
Оценка
(97)
Проекты
135
52%
Арбитраж
4
50% / 50%
Просрочено
0
Работает
Похожие заказы
Need to convert existing EA from MT4 to MT5 coding and design work is already there all details are already in the existing code of the MT4 EA should not require any further design work
I need a AI signal generating bot for forex trading. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame whether they are buying or selling. If it is buying the arrow should be green and if it is
I need this simple robot converted to work on the new version of MT5 . It's a very basic robot that open trades at a certain time and that's all it dose. I need the robot to be converted, to work on current MT5 build . And mt5 back-testing As it stand the EA will open trades. But only at certain date and time. I want it to open a trade every day at the same time. And Date part removed When the trade closes it must
Hello great developer here am looking for expert developer will convert convert this Trading View Code to Mt4 Indicator and this is a simple indicator i will be expecting your bid peace be unto you
I need a developer that specializes in ICT trading. I need a forex trading system based on ICT trading strategy. I want a highly profitable and effective trading system. More information will be provided
Hi, I would like to do a backtest on my EA on a specific currency pair. I also want to optimize this pair. The EA has multiple inputs. Thanks for your offers
Using Bollinger Band only. When price closes above upper BB, open Buy. If the length of the candle body that closed above the upper BB is more than Y pips, then do not Buy and remove the EA. Otherwise, continue to open Buy if crosses and close above upper BB and the number of positions is not more than Max No of Positions. The user will choose either Buy or Sell only. When price closes below the lower BB, close all
The expert Advisor will place trades during high-impact news releases. it will then close trades by trailing stop methods after reaching the breakeven points. It should be built in such a way that it will allow adjustments of parameters like opening distance points, initial stop loss, breakeven points etc
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this
I need an EA which only trades the news data. The EA has to analyze the news-data and needs to classify them into categories. The Strategy includes the following points and this features needs to be included : 1. Filter for news Data : Pairs : USD ● EUR ● AUD ● GBP News Events : GDP Unemployment rate (initial claims) CB Consumer Confidence (US) Retail sales Consumer Price Index (CPI) Purchasing Managers' Index (PMI)

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

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