Forum

Differences between MQL4 and MQL5

Both of them are OOP. As far as I see, the main difference is that MQL4 does not have a standard library . What else? Is there any other big difference between those two

Any other demo broker for MT5

As you know, trading is stopped at Alpari UK. Do we have any other broker suppyling MT5 demo accounts

Color candlesticks - what am I missing?

My code: //+------------------------------------------------------------------+ //| 1.mq5 | //| Copyright 2014, MetaQuotes Software Corp. | //| http://www.mql5.com |

Getting enumaration expressions from Print()

I would like to print enumaration expressions, not integers, to the expert log. For example, for the following code, is there a more smart way of doing this? PositionSelect ( "GBPUSD" ); Print ( EnumToString (( ENUM_POSITION_TYPE ) PositionGetInteger ( POSITION_TYPE )));

Functionalizing my sending order code

When I put the following code in the OnTick() event handler, it is working: MqlTradeRequest request; MqlTradeResult result; request.action = TRADE_ACTION_DEAL ; request.symbol = _Symbol ; request.volume = 1 ; request.type = ORDER_TYPE_BUY ; request.type_filling = ORDER_FILLING_IOC ;

Filling types

On the specification window, the filling type of a pair is designated as "all" with my broker. But, on the "new order" window, there are only two options: FOK and IOC. Can I use "return" in this case? Additionally, if available, with which function I can see the used filling type for an opened

Toolbox and magic number

When I place the cursor over an opened order by an EA, I read "comment,placed manually, expert id" ... why does it say "placed manually"? Additionally, on the trade tab of toolbox, I can not see my magic number for the orders placed with OrderSend() from an EA ... there is an ID tab there, I can not

They are not on this forum ... then where are the MQL experts?

There are really very good news about MQL. It is ranked among the most popular programming languages ... There are more than 10.000 sellers on the market ... etc. But, then why these forums are so poor? There are only two or three persons (one of them is a moderator) writing here regularly and

SL and TP with OrderSend() in market execution

When sending an order with TRADE_ACTION_DEAL in market execution, sl and tp fields of the MqlTradeRequest structure are neither obligatory nor optional according to the reference. Additionally, I have also checked it from the Andrew Young's book and it says that sl and tp are not placed and ignored

The difference between ArrayGetAsSeries() and ArrayIsSeries()

They are both taking the same parameter and returning the same type of data. They are both returning the value "true", if the array used as parameter is timeseries. I could not understand the difference between these two from the reference. Any help? Thanks a lot