Forum

Metatrader 5 (MT5) and Depth of Market (DOM)

Hi, With the insolvency of Alpari announced and their servers down, I'm looking for another broker with MT5 Demo Accounts who populates the Depth of Market with real data. The more DOM levels, the better. I'm doing some research and this is critical for me, so any recommends much appreciated. Also

Capturing values from Data Window

Hi, I want to use some values from the Data Window. Rather than wast resources recalculating EMAs, I want to pull the EMA value directly from the Data Window, on a Tick basis. Possible? Thanks, Merlin

256 byte string limit?

Hi, Just wrapping up a script which sends tick data to MySQL database. Successful, but when I went to add some more variables in the string I got the compile error: '(time_posix INT UNSIGNED NOT NULL , th INT UNSIGNED NOT NULL, dow INT UNSIGNED NOT NULL, date_time VARCHAR(40) NOT NULL, date

Future Candles

Hi, I'm working on an indicator which uses computationally intensive math in order to 'predict' the next future X candles. The result, which I have, is 4 prices, OHLC, for each future X candles which I would like to visually use as a candle inserted to the right of the current price candle. So

Currency symbol on chart

If I open a chart, say GPBUSD, how would I programatically be able to find that currency pair name? In my case, my EA will assign the MagicNumber based on what currency pair symbol exists on the chart I open. Possible? Thanks, Merlin

CharToString Question

I'm getting a compilation error when trying to set a string variable to equal a ing variable. Code: string mytest = CharToStr (32); Error: 'CharToStr' - initialization expected Since CharToString() is a built in fuction, I don't understand why this statement would upset the compiler. Any clues

Inconsistent Script Execution: Sometimes work, then not for no apparent reason

Hi, I have a script which opens pending orders. It will work fine once or twice, then stops working. Journal says the script is loaded successfully, then removed. Both when working and not. Can anyone explain this, or point me to a reason why a working script stops working? Driving me a bit nuts

Read/Write of Files outside of Experts Directory?

I need to read and write files outside of the Experts directory, to some directory outside of the MT4 file structure. According to the Documentation section here, access to files outside of the Experts Dir is "prohibited". Seems an absurd restriction to me, but I suppose they had *some* reason for