Edit function Countorders

Specification

FUNCTION 1

When I set max open orders to one it won't close the order.

Changed should work as following

When max open order is True and set to one it should still be able to close the open order.

Finish today within next hour


//+------------------------------------------------------------------+

//| Function to count orders                                         |

//+------------------------------------------------------------------+

void Count()

{

    int Bop = 0;

    int Sop = 0;

    for (int cnt = OrdersTotal() - 1; cnt >= 0; cnt--)

    {

        if (OrderSelect(cnt, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderMagicNumber() == Ii_002AC)

        {

            if (OrderType() == OP_BUY)

                Bop++;

            if (OrderType() == OP_SELL)

                Sop++;

        }

    }

}


input   int    maxtrades         = 8; // Max numbers open until close no new orders


//+------------------------------------------------------------------+

//|                                                                  |

//+------------------------------------------------------------------+

void OnTick()

  {

      if(CountOpenTrades() >= maxtrades)  return;  


Responded

1
Developer 1
Rating
(158)
Projects
188
26%
Arbitration
8
25% / 38%
Overdue
5
3%
Working
2
Developer 2
Rating
(10)
Projects
25
28%
Arbitration
3
0% / 0%
Overdue
1
4%
Loaded
3
Developer 3
Rating
(14)
Projects
14
36%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(2)
Projects
5
0%
Arbitration
1
0% / 0%
Overdue
1
20%
Working
5
Developer 5
Rating
(177)
Projects
243
21%
Arbitration
17
65% / 18%
Overdue
1
0%
Working
Similar orders
Grid v4.0 30 - 200 USD
EA MQL5 EA requirements below. looking for good work, quickly as possible. 1. Open BUY and SELL Position. 2. inputs 6. lot size 7. magic number The EA must work in strategy tester with out any errors. The EA must be efficient, must execute trades quickly and not slow down if placed on many charts. require MQ5 source code when code is completed
I need a developer who can work with quickly & details. make an EA MT5 Classic Support aNd Resistance multi time frame I want to create an EA that can 1. identify support and resistance (based on close candles) 2. mark snr breakout (zone breakout & line level SNR is different) 3. DASHBOARD PANEL multitimeframe breakout scanner (from m1 to monthly) 4. scan the valid setup that appears 5. available for manual marking
TIME FRAME: 15 MIN LOT SIZE: 0.01 CANDLE START TIME: 2:00 CANDLE END TIME: 2:14 ENTRY BUFFER: 1 SL BUFFER: 1 TARGET $: 10 MARTINGALE % : 200 (All the above data should be adjustable) Details: 1. We have to mention candle start time and end time (ie: 4.00 to 4.59). If the candle breaks the high of the given time it should go for buy. If it breaks the low of the given time it should go for sell. 2
# Projeto do Robô de Trading "MeuRobot" ## Introdução O "MeuRobot" é um sistema automatizado de negociação desenvolvido para operar no mercado financeiro utilizando o indicador Parabolic SAR. Este robô foi projetado para facilitar a tomada de decisões de compra e venda, maximizar lucros e fornecer informações em tempo real ao operador. ## Objetivo O objetivo principal do "MeuRobot" é automatizar o processo de
Personnal programmer 30 - 31 USD
Hey there! I’m looking for a talented NinjaTrader programmer to partner with on some exciting projects. If you have a knack for NinjaScript and a passion for trading tech, let’s team up! What You Can Expect: A friendly collaboration on diverse projects Fair pay—50/50 split on all earnings An opportunity to dive deep into innovative trading strategies What I’m Hoping You Bring: Experience with NinjaTrader and
MT5 中运行的 EA 的主要任务 : 1 EA 将同时选择两对货币进行交易,包括 AUDUSD 、 EURUSD 、 GBPUSD 、 NZDUSD 、 USDCAD 、 USDCHF 、 USDJPY 、 AUDJPY 、 EURAUD 、 EURJPY 、 GBPJPY 、 GBPNZD 和 GBPCHF ,默认设置 GBPUSD 、 EURAUD 。 2 蜡烛图 的时间 区间 包括 15M 、 30M 、 1H 、 2H 、 4H 或 1D 。对于两对货币中的 每一对而言, 将同时密切观察两个 时间区间图。 也就是说,两对 货币 同时 打开 四个窗口,每对默认设置 15M 和 4H 。 如果 您 不肯定如何 为同一货币对打开两个窗口,请不要考虑接受这项工作 。 3 将使用自主开发的指标 CMA 结合 CCI 预测走势。 在某些特殊情况下 ,将使用 马丁格尔策略进行操作。因此,如果您已经拥有基于 Martingale
Required to develop expert advisory which will work on any pair including crypto , forex, gold, silver, oil, simple stragy which will work on RSI,GRID, take profit, grid distance, start and stop button, only buy and only sell, filter for time frame Like 5m to 4 hr. stop loss and take profit .Detail will be shared once you except order
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Hi Guys, I am looking to someone that can generate an indicator for MT4 as explained below. Basically I would need that the indicator point out the price that will close my position in stop out/margin call. The indicator should pick automatically the level of trade out for the broker (which can be different from a broker to another broker) It should write (ideally on the bottom on the left) the following information
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money

Project information

Budget
30+ USD
VAT (21%): 6.3 USD
Total: 36.3 USD
For the developer
27 USD
Deadline
to 1 day(s)