仕事が完了した

実行時間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
評価
(137)
プロジェクト
162
22%
仲裁
7
29% / 43%
期限切れ
4
2%
仕事中
2
開発者 2
評価
(92)
プロジェクト
110
34%
仲裁
5
40% / 20%
期限切れ
5
5%
3
開発者 3
評価
(376)
プロジェクト
398
31%
仲裁
62
19% / 69%
期限切れ
50
13%
仕事中
4
開発者 4
評価
(153)
プロジェクト
225
58%
仲裁
3
100% / 0%
期限切れ
46
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
仕事中
類似した注文
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
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
I need a EA to open 2 trades 1. one trade with a SL and a TP 2. one trade with a SL no TP if the 1st trade takes TP the 2nd trade SL needs to move on break even and trail the trade thereafter. will need the lot size Number of trades
there I hope you're doing well I want to convert the tradingview indicator to make an indicator for mt5. And in that, I want to make an automatic robot on the base of the indicator. I have the pine script of that indicator
THE IDEA OF THE INDICATOR Create A Standard ZigZag Auto Fibo Indicator Combined With A ZigZag Fibonacci Time Zone Indicator Which Has The Specified Levels Written In The Indicator Strategy TEXT FILE/DOCUMENT HOW DOES THE INDICATOR KNOW AN UPTREND MOVEMENT? If Price Hasn't Touched The 123.6% Level Of The Recent Static Uptrend Zig Zag Fibo Retracement Tool Then The Indicator Knows That The Market Is In An Uptrend And

プロジェクト情報

予算
30+ USD
開発者用
27 USD
締め切り
最低 1 最高 10 日