Forum

Offline charts -> learning how to create one

So bear with me. When I run the following code, I get an offline chart but when I open the offline chart, all I get is a "waiting for update". Anyone know why? I know, I'm just copying EURUSD data, but like I said; I'm learning. The sub class

Why do I get "no lines" in some spots?

Take a look at the picture. Here's the code: //+------------------------------------------------------------------+ //| HL Volitility.mq4 | //| Copyright 2016, MetaQuotes Software Corp. | //|

What's the difference AccountInfoDouble(ACCOUNT_MARGIN_SO_CALL) and AccountInfoDouble(ACCOUNT_MARGIN_SO_SO)

They're both listed in percentage terms. AccountInfoDouble( ACCOUNT_MARGIN_SO_CALL ) = 50 and AccountInfoDouble(ACCOUNT_MARGIN_SO_SO) = 30. I've done the RTFM thing and still don't get it. So, If I'm getting margin called at 50% (all positions being closed), what's the point of ACCOUNT_MARGIN_SO_SO

TRIX indicator

I just recently started playing around with MT5 (I live in the U.S. so my options are greatly limited as to brokers who use MT5). I found an indicator in there called TRIX. And I really like it. So I took upon myself to try to convert the MT5 indicator to MT4. I've made modifications to make it

RefreshRates()

Great for the current chart. But my EA needs to pull the latest Bid/Ask pair from other symbols. How can this be done efficiently? I am assuming MarketInfo? ex. double NJask=MarketInfo("NZDJPY",MODE_ASK);

Found something in my travels around metaeditor

If this isn't "new", then I apologize ahead of time. What is the "database" tab in the navigator window for? It looks pretty useful. My googling skills must be off lately because I can't find any information anywhere on it. TIA

Color values in global variables

So, what I'm trying to do is read values in from a text file and take those values and set them to a global variable. Deriving Doubles, Integers and bool's from a string value is, setting to a double, and then back to original format in other programs is simple. The problem I'm having is with the

64 bit MT4 version?

Will we ever see a 64bit Metatrader 4 version? This running a 32 bit client on a 64 bit OS is ridiculous. And before anyone says " download MT5 , it's free"; I live in the U.S. and there aren't any brokers who currently support MT5 on LIVE accounts

Array out of range ..... again

Here's the code: //+------------------------------------------------------------------+ //| xMeterDiff.mq4 | //| Nondisclosure007 | //| http://no.link.yet |

Predefined structures "type ahead"

This one is odd. Take the following: MqlDateTime tl; Now, I should be able to type "tl." (without the "") and see what the options are (maybe a better word would be "intellisense"). After the update of Windows 10 today, it has disappeared. This only happens on pre-defined structures within MQL4;