Forum

How to calculate margin when hedging?

Hello all, The question is simple, the answer is absolutely not: H ow can I calculate the margin with respect for hedging? For example this is what I havefor EURUSD: Symbol_EURUSD_Digits= 5 Symbol_EURUSD_ExpirationMode= 0 Symbol_EURUSD_ExpirationTime= 0 Symbol_EURUSD_FillingMode= 0

Get Commission in base currency?

Hello, I'm working on generating FXT files, but I miss some informations (what is it / how can I dynamically find the values from within MT4?): * margin divider (I make it default 1 now) * gtc pendings (I make it 1) * model (default it is 0, but I've seen 2 too?) * commission base (at my broker it

Translate MetaStock code

Hello, I was wondering if someone could tell me how to translate the following into MQL4: Mov(H-L,period,S) It's the simple moving average of 'H-L' with the parameter "period". That I understand. What I don't is how to calculate it over "H-L"

MetaTrader 4 sometimes is 'stuck'

Hello all, I've a very weird problem and would like if someone knows an approach to it. Sometimes my terminal get "stuck". In that I don't seem to receive any more ticks anymore. Well, the "last updated time" from the server (above the symbols window pane) doesn't run anymore. The graph is stuck at

Get Current Window Handle

I know that the function "WindowHandle" exists. But what if I have multiple same Currency-Period charts? It will return one of these, but I would like to get the one were my EA is running from. How could I achieve that? Thanks

Hedging broker

Hi, Does anyone know of a broker which allows portfolio hedging? I know of a few who allow for example long & short EURUSD with the same volume to have no margin requirements . But I've yet to find one which allows full hedging. For example 1 lot long EURUSD, 1 lot long USDJPY, 1 lot short EURJPY