Forum

Storing dynamic array reference which was passed through a function parameter

Hello, does somebody know if it can be stored the value of a reference parameter which passes a dynamic array reference. Example: class AAA { ??? Buffer; void method_A(const double & buffer[]) { Buffer = buffer; { double method_B(int idx) { return Buffer[idx]; } }; void

How to make visible the start and close arrows of an opened trade on the chart

Hi, If I run a backtest and the expert opens a trade I can see it's start arrow on the chart. If the expert closes the trade I can see the start and close arows with a line between them. In case of the live trading I can't see these arrows and I don't know why. Today I saw the screen of my friend

Sort order of tickets and position numbers

Hi, Does somebody know what the order of tick numbers and position numbers (in trade and history pools)? Whether tick2 > tick1 => time of OrderSend 2 > time of OrderSend 1 ? Whether pos2 > pos1 => time of OrderSend 2 > time of OrderSend 1 ? I.e. are the ticks and position numbers generated in the

Is it possible to open second (and third) subwindow programmatically to an existing main window of the chart

Hi, I hope that there is a moderator from the technical stuff of the Metaquotes who watches the questions and gives correct answer when there is no good answer from the other users. I couldn't find answer to the question described in the subject. With other words: Is there a supported way to open a

MT4 debug halt at start

Hi, On MT4 build 600, 604 or 610 if I start to debug an indicator and press OK on the indicator's properties window (start window) the MT4 quites from the debugged program same as if I had pressed the stop button on the editor screen. MT4 does it only if the "Input data" tab is in foreground on the

Using Metatrader 5 offline

Hi, Does somebody know hot to use the Meatatrader 5 in order to develop and test my indicators offline, without any web connection? I would use only the historical data. I have seen the "offline chart" expression but I don't know what it is

Using Metatrader via proxy

Hi, I would like to use Metatrader 5 at my workplace behind a strict policy. Here I couldn't use the Metatrader directly. I could set up here a VPN to my PC at home with help of a tool and I created a proxy on my PC. Evrything works at my worklplace via my proxy, forinstance I could use even my

What is the role of SL and TP fields in MqlTradeRequest structure?

I tried to use this fields but the Back Tester ignored them. When and how to use this fields? And there is a StopLimit fiels as well. What to know about it?. Thanks Gabor

Running an EA with Strategy Tester OrderSend failed

Hi, I have made a simple EA wich contains OrderSend wit DEAL type. If I run it from the Editor it runs and creates trades successfully on my Demo account. But if I run it with Strategy Tester I receive error 4756 [Invalid request] on every OrderSend. I think the MqlTradeRequest structure is filled