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
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
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
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
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;
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
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?
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
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:
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
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
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
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
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
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
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 ( ) ;
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