Looking for a coder to modify a loop

작업 종료됨

실행 시간 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
등급
(89)
프로젝트
105
34%
중재
5
40% / 20%
기한 초과
5
5%
로드됨
3
개발자 3
등급
(375)
프로젝트
398
31%
중재
62
19% / 69%
기한 초과
50
13%
작업중
4
개발자 4
등급
(150)
프로젝트
220
58%
중재
3
100% / 0%
기한 초과
45
20%
로드됨
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
작업중
비슷한 주문
I have an ea which is working according to ict liquidity sweep strategy . With sl and tp but I test it in strategy tester but the result is awful the sl is hitting more than tp so i want to change its sl to tp and tp to sl to set the result to its normal form is there any professional programmer to solve my inquiry ? If yes so bet for it thnk alot
Dears, i am looking for developer to make expert advisor in forex to me and i have a strategy , i need the ea to be customize and has some options to be changeable
The specifications cover 4 requests: 1- Addition of a Trailing Take Profit function 2- Addition of a function to calculate the distance according to a decreasing mode (20, 15, 10, 5...pips) 3- Addition of a function Global Profit decrement /increment size in pourcentage 4- E rror s correction in coding
I am currently seeking a highly skilled developer for an important project. I need a professional developer to convert an Indicator to tradingview on MT4. If you are highly skilled and capable of handling this project, kindly reach out now
Can you convert my tradingview indicator into a mt4 ea ? Indicator called ut bot alerts on tradingview Its open script already Will my ea have same settings for the indicator as in the indicator version on tradingview ? And I need trailing input added Daily equity protector as well Also for inputs I need option for it to close existing trade when opposite confirmed Also input for time schedule to trade Like New York
Hello, I have EA's which were previously developed that are not running correctly and giving errors. Need an experienced MQL developer to fix all issues as well as add some new settings. Thanks
Looking for a developer to create an MT4 indicator and an EA / Robot. Indicator-based strategy consisting of several moving averages, PSAR Indicator and Pinescript indicator called Coral Trend Indicator by LazyBear (pinescript source code will be provided and will need converting to MT4 code - 34 lines of code). Strategy to be an intra-day trading period on 5-minute timeframe for the European session but “Trading”
Need a simple EA That opens a long position if the MA cross up above another MA and opens a short position if the MA cross down below another MA . - The EA should only allow for one position to be open at any given time. It should close the current position if it is going to open a new position. - I want to have option to input for a lot size, a stop loss, take profit, and an input for total profit/loss USD - I want
I am looking for a programmer to do EA trader. If you can understand what I want from the video i do and you can do it, contact me because you will be able to do what I want. https://drive.google.com/file/d/1wbHxbUQQqCkdpr0-pHfIh2b288LzYTV2/view?usp=sharing
Looking for a programmer who can make an indicator that Gives an Arrow for trade entry , Showing an Entry level , Stop Level and a Take profit level . based on the Logic in the attached Pictures . Once the Indictor is done then we will discus on Making an EA for auto trading

프로젝트 정보

예산
30+ USD
개발자에게
27 USD
기한
에서 1  10 일