Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Market and trading symbol information for MT4 - MetaTrader 4 scripts | Trading script downloads - MetaTrader 4 resources

author EAcpu | 3 reads | 0 comments |

Market and symbol Information for MT4 - script for MetaTrader 4

Market and symbol Information for MT4 - script for MetaTrader 4

Market and symbol Information for MT4 - script for MetaTrader 4

The purpose of this interactive script is to display All market and symbol information, such as margin and leverage, from MarketInfo and Symbol Info in one place . This way, traders do not have to browse the entire broker's website to find the market conditions for a given symbol (which may sometimes be the case). The list of buttons is taken from MarketWath's "Select" option, as some brokers may trade thousands of symbols

This is a downgraded version of the MT5 example script SymbolInfo for MT4, itself enhanced with margin and leverage values ​​that were previously missing for any given symbol. The left column lists market information (MarketInfo), and the middle and right columns list verified symbol information (SymbolInfoInteger, String, Double). The leverage value is added and marked MODE_LEVERAGE in the last row of the MarketInfo column. For any symbol, it is calculated as follows:

Leverage = Bid ​​* Contract Size * Exchange Rate (Trading Product Profit Currency/Account Currency) / Required Margin.

Market and symbol Information for MT4 - script for MetaTrader 4


Attachment download

📎 symbolinfosample.mq4 (20.57 KB)

📎 symbolinfo.mqh (37.76 KB)

📎 symbolinfosampleinit.mqh (2.27 KB)

Source: MQL5 #36991

Verification code Refresh