Forum

updating trading code from MQL4 to MQL5

Hi I have the following MQL4 code:- if (CountOrders( 0 )!= 0 || CountOrders( 1 )!= 0 ) { for ( int b= OrdersTotal ()- 1 ; b>= 0 ; b--) { if ( OrderSelect (b,SELECT_BY_POS)== true ) { if (OrderSymbol()== _Symbol && OrderMagicNumber()==OrderMagic)

Debugging my very first MTQ5 EA

Hi I know nothing about MTQ4/5 - so am just beginning ;) I downloaded the following trading EA - fuzzy_logic_for_algotraders.mtq5 (23KB) For whatever reason it includes MT4Orders.mqh and so I downloaded that library and placed it in the 'include' folder I get 11 errors and 3 warnings on compiling