Looking for a coder to modify a loop

İş tamamlandı

Tamamlanma süresi: 21 saat
Müşteri tarafından geri bildirim
The best developer I have used here.
Geliştirici tarafından geri bildirim
It was nice to work with the client. Thank you for the project.

İş Gereklilikleri

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(137)
Projeler
162
22%
Arabuluculuk
7
29% / 43%
Süresi dolmuş
4
2%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(92)
Projeler
110
34%
Arabuluculuk
5
40% / 20%
Süresi dolmuş
5
5%
Serbest
3
Geliştirici 3
Derecelendirme
(376)
Projeler
398
31%
Arabuluculuk
62
19% / 69%
Süresi dolmuş
50
13%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(153)
Projeler
225
58%
Arabuluculuk
3
100% / 0%
Süresi dolmuş
46
20%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(41)
Projeler
54
4%
Arabuluculuk
5
0% / 60%
Süresi dolmuş
4
7%
Serbest
6
Geliştirici 6
Derecelendirme
(298)
Projeler
427
26%
Arabuluculuk
18
61% / 33%
Süresi dolmuş
26
6%
Serbest
7
Geliştirici 7
Derecelendirme
(97)
Projeler
135
52%
Arabuluculuk
4
50% / 50%
Süresi dolmuş
0
Çalışıyor
Benzer siparişler
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
EA Description: Box Identification: The EA allows users to manually mark consolidation zones on the chart with rectangular boxes. These boxes are distinguished by color: red for bearish zones and green for bullish zones. Entry Types: Aggressive Entry (True/False): Users can opt for aggressive entries, initiating trades at a specified percentage of the zone's range. Divergence Entry (True/False): The EA detects
I need MT4 and MT5 hedging locker expert advisors that hedge existing trades either with pending or market order hedging trades. With pending hedge trades the entry price may optionally be made to trail the existing open orders. There should be option for a breakeven and trailing of the hedge trade’s stop
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
Hi guys, I looking for somebody who could create a EA on grid basis. EA should open on one chart buy and sell trade in same time and opening next trades in grid distance. Also need to have a TP. Grid distance and TP will be same value all time. Trades don't have a SL and system working as a endless loop. So when the trade closed on TP, in same time the EA open a new trade in same direction. Next thing as have to be
Just profitable Ea. 30 - 100 USD
Hello, I am looking for a good scalper that can operate on a single chart with multi-currency pairs, including gold and indices( MT4). It should support all brokers, leverage, and be capable of trading with a small deposit with SL and TP.It's important that the robot does not use risky strategies and, most importantly, is profitable. Thank you
MT4 INDICATOR 30 - 35 USD
Looking for a proven MT4 indicator that is highly consistent and profitable preferably that you have developed and are able to share with me. If you have some indicator that is valuable for making consistent profit please bid and show me trading history from using it in your MT4 account. Thanks
Hello great developer, I am a trader and I have an existing indicator in pinescript , but I need an expert to translate the specific concepts and functions of Pine Script to MQL4. I have many information to share with you in the comment section, so please if you are capable of handling this project successfully please apply to this order, looking forward to your response

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 10 gün