Looking for a coder to modify a loop

Job finished

Execution time 21 hours
Feedback from customer
The best developer I have used here.
Feedback from employee
It was nice to work with the client. Thank you for the project.

Specification

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()

Responded

1
Developer 1
Rating
(130)
Projects
151
23%
Arbitration
5
0% / 60%
Overdue
4
3%
Working
2
Developer 2
Rating
(88)
Projects
104
35%
Arbitration
6
33% / 17%
Overdue
5
5%
Working
3
Developer 3
Rating
(374)
Projects
398
31%
Arbitration
62
19% / 68%
Overdue
50
13%
Loaded
4
Developer 4
Rating
(150)
Projects
219
58%
Arbitration
3
100% / 0%
Overdue
45
21%
Loaded
5
Developer 5
Rating
(41)
Projects
54
4%
Arbitration
5
0% / 60%
Overdue
4
7%
Free
6
Developer 6
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
7
Developer 7
Rating
(97)
Projects
135
52%
Arbitration
4
50% / 50%
Overdue
0
Working
Similar orders
Greetings. I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. Martingale methods and grid strategies should not be used as the basis of a trading strategy. I will need to test in the strategy tester and on live market (on demo account for at least two weeks), so I ask you to provide an executable demo file of the EA with necessary restrictions. The EA should not use
Hello Coders. I need a copier EA that will work with my current EA. I need the copier EA to close out all trades and turn off the bot when the slave account opens a trade. I also need the option for the EA to close out all trades and turn off the bot when the slave account closes out all trades. This should be a simple EA. I also need the EA to close out all trades and turn off the bot when the slave account reaches
Need a good synthetic EA 50 - 1000 USD
I don't have specifications. If you're good at building an EA with good coding, accuracy, 85% money management, good trading decision. Please apply let's discuss Bussiness. Price below is not specific we can discuss new price depending on your professionalism
Hi greetings I will like to convert my existing Pine script strategy to MT4 EA I want to develop Mt4 trading bot based on this tradingview strategy and add licence to the bot in order to give access to others
I don't see signals on the chart .... On mt4 it's perfect...but when I converted it to Tradingview by a guy on this platform it doesn't show any signals, kindly bid on it and let me know if you can do it, And also check it thoroughly that you can do it okay
Designing and programming a trading strategy for an automated trading robot requires a comprehensive approach that involves several steps: 1. **Define Strategy**: Decide on the trading strategy you want to automate (e.g., moving average crossover, mean reversion, breakout strategies). 2. **Choose Platform**: Select a trading platform or framework that supports automated trading. Examples include MetaTrader (MQL)
I don't see signals on the chart .... On mt4 it's perfect...but when I converted it to Tradingview by a guy on here it doesn't show any signals, I need an expert that can help me to work on it, that can also work on more projects, Thanks, I have $20 for this project now, If you think is too small and you want to charge $30, i can pay you the rest later on
1. **Trade Execution:** - The bot should be capable of entering and exiting trades based on predefined signals from my trading strategy. 2. **Take Profit:** - Implement mechanisms to take profit at specific levels as defined by my strategy. ### Additional Features: - The bot should be able to handle multiple trades simultaneously. - It must have a user-friendly interface for monitoring and adjustments. -
hello great developer I have an mt4 indicator that stopped working with the new mt4 build. Can you fix it to work with the new mt4 build? I do not have the source code. i will looing for great developer that wil bid for it quickly
can anyone here help me with develop a Pine script on TradingView's Pine Editor for a trading strategy based on certain variations of the Morning Star candlestick pattern which I have been noticing from last 2 years

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 10 day(s)