Miroslav Popov
Miroslav Popov
Miroslav Popov
Added topic How to define a dynamic nested array in MQL5?
I need to allocate dynamically an   int   nested array like:   [[1, 2], [3], [4, 5, 6]] I tried with the following syntax, but it doesn't work:    int arr[][];   // [[1, 2], [3], [4, 5, 6]]    ArrayResize
Miroslav Popov
Added topic Is `IsTradeAllowed` the same as MODE_TRADEALLOWED?
Hello, Is `IsTradeAllowed()` replaceable with `MarketInfo(_Symbol, MODE_TRADEALLOWED)` and vice versa? In the docs is written that `IsTradeAllowed` is equal to  ` TerminalInfoInteger ( TERMINAL_TRADE_ALLOWED  )`. However, it is not clear is
Mohammad Saberi
Mohammad Saberi 2021.06.13
your product is very good
Miroslav Popov
Added topic MetaTrader 5 Strategy Tester Leverage is locked to 1:1
Hello, The MT5 strategy tester leverage is locked to 1:1 no mater my demo account is 1:100.  I deleted the account and created a new one but no luck.  Any ideas? MT screenshot: Account screenshot
Miroslav Popov
Added topic Expert Advisor EURUSD H1 - Rising Candle
This is a simple Expert Advisor for trading on EURUSD H1 market. The EA is attached below. Backtestet result: Trading rules: Long Entry - wait for a bullish bar with body > 30 pips and Volume > 2.0 * Average volume from last 80 bars. Open long
Miroslav Popov
Added topic How to find the Friday's market closing time?
Hello, I want to find at what hour the market closes on Friday .   I'm trying with the following script but it returns 0. However the market closes at 22:00. How can fix the script in order to make it showing 22?    datetime openTime;
Miroslav Popov
Added topic How to close a position programatically in Hedging mode
Let's open a position in a Hedge account with a given Magic_Number on the current _Symbol. void SendOrder( int command, double lots, double stopLoss, double takeProfit)   {    ResetLastError ();    MqlTick
Miroslav Popov
Added topic Binary Options Expert for GO Markets
Hello, Can you help with setting an EA for trading Binary Options with GO Markets? What is the format of the order comment for setting the option's expiry?  
Miroslav Popov
Added topic MQL5 make Hedging mode = Netting mode
Hello,  I want my experts to trade on Hedging mode in the same way as in Netting mode. To do so, the expert must add, reduce, close or reverse a single position. I'm trying to set this by setting the currently open position Ticket to the  
Miroslav Popov
Added topic MT5 tester - Trade is disabled
I'm receiving this error in the MT5 tester:                      ResetLastError ();              MqlTick tick;
Miroslav Popov
Added topic How to Draw line from Price1 / Time1 to Price2 / Time2 ?
Hello,   How can we draw a dashed, colored line from a (Price 1, Time 1) point  to another   (Price 2, Time 2) point?   Something like the blue dashed lines on this screenshot:    
Miroslav Popov
Added topic GZip Algorithm in MQL
Is there GZip algorithm in MQL? I searched the MQL4 and MQL5 sites and Google, but no results found out
Miroslav Popov
Added topic Expert Advisor EURUSD H1 - Rising Candle (with video)
This is a simple Expert Advisor for trading on EURUSD H1 market. Backtestet result:    Trading rules: Long Entry - wait for a bullish bar with body > 30 pips and Volume > 2.0 * Average volume from last 80 bars. Open long at next bar
Miroslav Popov
Added topic Expert Advisor EURUSD H1 - Rising Candle (with video)
This is a simple Expert Advisor for trading on EURUSD H1 market. Backtestet result:    Trading rules: Long Entry - wait for a bullish bar with body > 30 pips and Volume > 2.0 * Average volume from last 80 bars. Open long at next bar
Miroslav Popov
Added topic MQL OOP - Cross references between classes.
Hello, How to make two classes in a way that each class to have a reference to the other? In general I want to have later these classes in separate files. The problem is that when I define the classes, the first class doesn't see the second
Miroslav Popov
Added topic MT4 Strategy Tester doesn't generate ticks near to the end of M5 bars
MT4 Strategy Tester generates ticks on a M5 chart every 2-3 seconds, but not at the end of the bar. Expert:    void OnTick()      {       if(Volume[0] == 1)
Miroslav Popov
Added topic Remote Compiling of Expert with Includes with mql64.exe
Hello, I have problems using the command line compilers mql64.exe and mql.exe as per this article: https://www.metatrader5.com/en/metaeditor/help/development/compile My expert has includes as follow: #include <Object.mqh> #include
Miroslav Popov
Added topic How to calculate Stop Loss pips from amount of money given
Stop Loss calculated from money given is useful in two cases: 1. Fixing a Stop Loss to a predefined value to risk. Let's say $80. 2. Stop Loss as percentage of the current account balance. Here is the formula for calculating stop pips from account
Miroslav Popov
Added topic How to load more bars in a chart programatically?
Hello, I noticed a new MT chart loads 2048 bars by default. My expert needs 2 complete days or 2 * 1440 = 2880 bars on a M1 chart. Can the expert force MT to load more bars
Miroslav Popov
Added topic Closing multiple positions according FIFO rule
Hello, According the new FIFO rules of NFA the first open position must be closed first. At first glance I wrote this code: int ClosePositions ( string symbol ) {      int orderstotal = OrdersTotal ( ) ;     
Miroslav Popov
Added topic MQL4 to MQL5 transition - professional programmer needed
Hello, I need rewriting MT4-FSB Expert from MQL4 to MQL5. The expert connects Forex Strategy Trader and MT for data feed and real execution. The current MQL4 code is attached. Please take a look at the code or try the program first. If it necessary
12