Forum

How to detect orders state

Hi, how can I detect (in mt4) if an order with ticket v_ticket is open or was closed by stoploss or takeprofit ? Thanks a lot. Alessandro

Historical Data is present but MT4 tester use only the first day.... help

Hi, I need to test my EA with the "Each Tick" metod on UK100 (with a float account). In History Center, under Indices FL / UK100 / M1, I can see the Database starting from 17 Oct 2012 until today. But when I use the Tester to test my EA for UK100 in the period of database, only first data in

Bar prices problems

Hi, I'm a newbie. I'm using the following code to capture the prices (open, close, max and min) every time a new candle is detected. ........... int init() { lastCandleOpenTime = Time[0]; return(0); } int deinit() { return(0); } int start() int start() { if (isNewCandle()) {