Forum

Does a Deal generated by a successful (first) Order, always result in an open Position?

This is one thing I can't find the answer. Is it possible for a first Deal NOT to open a Position? I am trying to get Position/Deal history in order to NOT open a second position within the same hour. Since MQL5 does not seem to have a Position History like MQL4 did, I want to be sure that I am

why does ORDER_TIME_DONE return 0 or 1970.01.01 00:00:00?

I am trying to get the execution time of a pending order so my trade manager can check if it is the current M5 bar, but I get 0. I even found one article that suggested I use OrderSelect first, which I did and I still get 0. I'm also not sure why I need OrderSelect since the documentation code (that

Custom Indicator not drawing lines, but data Prints out in Experts tab

I know this must be really simple or obvious to others but I am still kind of new to MQL5 and am only partially successful at converting my MT4 indicators (my EA is going to be a nightmare, I'm sure). The data shows when I use the print function but no lines are displayed. Also nothing shows for