Forum

Incorrect order information sent into market

Hi, I've a weired behaviour in my VPS MT5 compared to my local computer the codes is used to reopen orders that I already stored into a database, the issue that I have is the values that I use in trade.OrderOpen function is the right one buth in my VPS (where I only have my ex5 and my database) I

More than two expiries futures contracts

Hi, I'm testing a strategy that includes contract rollover of the current month(or expiry) and the rollover of the next expiry to the third expiry contract (hedging), and all of this near xurrent expiration for example Current month for crude oil Main : MCLEN24 hedge: MCLEQ24 Near (but before) the

How to get next expiration contact symbol

Hi, I want to implement an automated EA that do rollover contracts few fays before expiration, using symbol name and SYMBOL_EXPIRATION_TIME I know when i decide to rollover, the piece that i'm missing is how to "guess" what is the n next expiry contract name, let each hour I check if I enter to