Forum

What is the time difference in trade tab vs expert tab?

I see this time difference of 6.924 seconds between the trade tab and expert tab of a sell stop order (don't mind the hour change because that is difference in server time) My question: Is the time in the trade tab -> The time when the request from my EA was "sent" or maybe i shall say "processed"

How will a BUYSTOP work with slippage that exceeds the TP

Hi, what if i set a BUYSTOP at 1.100 with a SL on 1.099 and TP on 1.101 And then during open, slippage occur and move the actual buy open price to 1.102 witch is above the desired TP. Will the trade server response be error 130 invalid TP/SL or will it go thru and close the order directly

Is this a correct code to close pending STOP orders

Hi I want to close 2 open stop orders on each new bar. It is: 1 BUYSTOP order and 1 SELLSTOP order The below code works fine in tester and on demo account , and shows no errors or warnings when i compile. But before using on live account i want to make sure i am not missing anything important. 1. Do

BID always same as OrderOpenPrice() ?

Hi Let's assume i wanna open a SELL order . Before i send the OrderSend i calculate that my TP and SL shall be 100 pips from BID And then i send the order, something like this: OrderSend (symbol,cmd,volume, NormalizeDouble

Flash crash? EURUSD (2019-01-02 22:40 GMT 0) bid/ask price?

Hi What bid/ask prices did your broker offered at EURUSD 2019-01-02 22:40 GMT0? My broker bid price jumped from 1,13049 to 1,11912 AND ask price was at 1,13304 (witch is 139 pips in spread) Can this be real market prices or you think this is in error in my brokers feed? To move EURUSD in 1 tick from

EA closing trades wrong on live account but not in backtest and on other broker

Hi On one of my live account All my open trades are closing 00:00:00 on Fridays I can't find the reason why they are closing because they are not closing on backtest and on other livebrokers i have. The thing that are the difference between the brokes is that: -The one that are closing the orders

Count median of variables

Hi, how do i calculate the median of these values double g1 = 2 ; double g2 = 2 ; double g3 = 4 ; double g4 = 5 ; double g5 = 6 ; double g6 = 6 ; How to compare them and find the median (witch is g3 and g4. g3+g4/2 the result should be 4,5) via mql4 code

How to build your own trading results webpage

I would like to build my own page for following up my trading in realtime. How do i connect? For example, how is the connection made from accounts to mql signals. I mean how do i get the account trading history thru account name, brooker and investor password? Is this done via Report API? if so

Big lot or multipile small when trading big.

Hi Witch will give me the best price you think? And why? Example 1) If i set a pending order at 1.100 on EURUSD at 20 lots 2) Or if i set 40 pending orders at 1.100 on EURUSD at 0.5 lots? And allso another question. Will 40 orders require more data power (such as CPU or memory) to have open then

AccountBalance(); highest value between dates

Hi How do i get the highest AccountBalance (); between two dates, for example between 2015.01.01 until now