Codes

Plot MQL signal for MetaTrader 4

This script plots MQL signal history on a MetaTrader 4 chart

Setting Chart for MetaTrader 5

Setting multiple charts at one click

Forum

MKLINK with more than 1 MT4 (also MT5)

I link MQL4 folder to each MT4 with MKLINK command so I can edit indicator/EA/script only once for all MT4. That can also be done with templates directory. But I can not make indicators/EAs/scripts to be put in favorites menu (in navigator) only once so they will appear on each MT. Any idea? (Hope

how to make a variable in EA which is only affected for each symbol (chart)

What I mean is if we attached the EA to many charts, calculation of the variable (say "myvar") of one chart does not related to the calculation myvar in another charts. for exmpl : int myvar; for (i = 0 , i < 10 , i++) { myvar = myvar + 1; } so myvar calculation is : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

How do we plot up arrow and down arrow.

Hi, can we draw up arrow and down arrow in an indicator based on only 2 MA cross (for example). Please give an example code of the trick if it can be done. That is no other indicator. I include pic to make it clear what I mean

SymbolInfoDouble(Symbol(), SYMBOL_MARGIN_INITIAL)

Hi, can someone tell me how to get Margin Required in MQL5. I ve try SymbolInfoDouble(Symbol(), SYMBOL_MARGIN_INITIAL ) but I get 0.0

Why Most Brokers Still Using MT4

1. Why most brokers are still using MT4 instead of MT5. Why dont they make an option so traders can choose what platform they will use. 2. Can same quotes from a server be used for 2 or more platforms

the size of text object label

Hi, if I create an object text label, how can I get the size (length) of that text in pixels. It similars like TextGetSize function . I have try with OBJPROP_XDISTANCE but it didn't work. Appreciate if you can explain clearly. Thanks

AccountLeverage() function

At broker which has leverage 2000:1, the result of AccounLeverage() is 1000. How to make it to show a proper value? Thanks

zero divide

Hi, I have a question about zero divide in indicator when it run. What is wrong. Should we use a trick to fix it? Thanks. int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]