is it possible to develop EA for Futures contracts?

Rass  
Hi, I have recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you in advance.
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
To obtain the current market information there are several functions: SymbolInfoInteger(), SymbolInfoDouble() and SymbolInfoString(). The first parameter is the symbol name, the values of the second function parameter can be one of the identifiers of ENUM_SYMBOL_INFO_INTEGER, ENUM_SYMBOL_INFO_DOUBLE and ENUM_SYMBOL_INFO_STRING. Some symbols...
[Deleted]  
Sure, it is not a problem.  In forex market still have same for gold ,oil and index.
Theo H.  
Rass:
Hi, I have recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you in advance.
Hi Rass. Were you able to do this successfully? I code for index CFDs and Forex and am trying to move into Futures. I'm not sure how to backtest with limited history on the contracts. Any help or advice is appreciated.
TomP3185  
Theo H. #:
Hi Rass. Were you able to do this successfully? I code for index CFDs and Forex and am trying to move into Futures. I'm not sure how to backtest with limited history on the contracts. Any help or advice is appreciated.

For back-testing you can use the continuous contract, starting with @.

Rafael Grecco  

I don't think there's a easy way to roll over contracts. Each future contract is it's own thing.

I do trade futures on the brazilian market and I have to manually close contracts before they expire and open it again with the new date.

If they expired they lose all their value.

I think there might be a way to roll over, but you would need to contact the broker and asked them to do it. It's also not free. At least that's how it works here in Brazil.

ejsantos  
Rafael Grecco #:

I don't think there's a easy way to roll over contracts. Each future contract is it's own thing.

I do trade futures on the brazilian market and I have to manually close contracts before they expire and open it again with the new date.

If they expired they lose all their value.

I think there might be a way to roll over, but you would need to contact the broker and asked them to do it. It's also not free. At least that's how it works here in Brazil.

Expired contracts don't "lose all their value", they settle at the final quoted price.
Theo H.  
TomP3185 #:

For back-testing you can use the continuous contract, starting with @.

Thanks Tom!
Reason: