For example, I want to create JPY index by some formula. I dont want it to be displayed in subwindow, but in the main chart window. Is this possible?
Thanks.
Thanks.
Symbol Switcher (not Symbol Changer) 5 replies
virus or something else: smile symbol becomes a crying symbol 4 replies
MT4: Create objects in Tester in new build MT4 0 replies
Adding New Symbol on MT4 5 replies
Script: Count your net positions in MT4 for a symbol 1 reply
DislikedFor example, I want to create JPY index by some formula. I dont want it to be displayed in subwindow, but in the main chart window. Is this possible?
Thanks.Ignored
DislikedYes. Goto http://codebase.mql4.com/6217 and download and install offline_charts.mqh. Although i primarily wrote this library for creating realtime equity curves it mainly consists of generic functions for dealing with offline charts. It contains a function
updateOfflineChart()
Call this function on every tick with the current value of the index. If you want to create multiple timeframes then just call it once per timeframe (with a different period parameter for each timeframe).
symbol...Ignored
Disliked...but nothing happened , offline chart is not opened automatically...I manually open an offline chat and tried to make a call for the already opened offline chart , also nothing happened...
can you give detailed step how to do that?Ignored
Disliked...I am trying to create a custom symbol for the dollar index like the one in liteforex platform or the custom symbol that can be created in mt5. it seems the same request as of the thread opener...Ignored
Disliked...after reading the 7bit reply and reading details how to call updateOfflineChart(), I expected to have offline chart , that can be updated by a call with dollar index value and the offline chart will be updated accordingly...Ignored
If all this doesn't sound to complicated I would go in more detail (you will need some programming knowledge in MQL). The result would be two running terminals, one recording (the second screenshot), the other charting (the first screenshot). Be aware that you will never be able to trade a custom symbol from such a chart, neither in MT4 nor in MT5.
<mt4data-dir>/history/<broker-dir>/symbols.raw
<mt4data-dir>/history/<broker-dir>/symgroups.raw
Disliked{quote} It turns out that right now I cannot afford the time to start and maintain a full new thread. A single post has to make it and will hopefully give you a start in the right direction. To the main question: How to create a custom symbol in MT4? All known terminal symbols are stored in <mt4data-dir>/history/<broker-dir>/symbols.raw Symbols are organized in groups. Groups are stored in <mt4data-dir>/history/<broker-dir>/symgroups.raw On every reconnect the terminal downloads the list of symbols and groups from the trade...Ignored
Disliked{quote} Hi @Emmzett is this something that can be added to market-watch if the broker is willing? Can you do this as a paid project?Ignored
Disliked{quote} "Yes" for the first part of your question. After creation such a custom symbol is automatically added to the "MarketWatch" and to the "Symbols" window. To MetaTrader it is a regular symbol without any differences. But as soon as you reconnect the terminal it will be overridden. There is a regular broker use case for this, especially for brokers which offer CFDs for futures. The symbols a broker offers may constantly change. For example the current futures contract for Brent or Crude is added and after 6 months it expires. With the mechanism...Ignored
Disliked{quote} Hi Emmzett thank you for the very detailed and informative reply. In this case, the broker is willing to offer the new synthetic symbol (for example "C5" from the basket trading thread) to all customers. Looking forward to your reply. RegardsIgnored
DislikedOK, I'm going to start a new thread for it to have a main post which I'm allowed to update constantly.Ignored
Disliked...Now how can I connect another connected MT4 terminal to the disconnected one, in order to read the customized symbol and operate with it? Did you write another post about this procedure?...Ignored
Disliked{quote} {quote} {quote} Hi Robert, good to see you found me here :-) Intentionally I never started that thread about the final piece "Connecting MT4 to an external data feed to chart custom symbols". Let me explain why: For the huge majority of FF readers this topic is too advanced. Wherever I mention it it causes major interest. On the other side there is not much to gain for me except getting a FF "high impact" marker and the feeling of having to answer countless of novice questions. With my current time schedule this is something I cannot "afford"....Ignored