Forum

Metatrader4/5 on Mac M proccessor

Hi everyone. Does anyone use metatrader4/5 on Mac OS on a Mac M chip

Product validation error, invalid volume

Hello everyone, I am trying to upload a product to the market. I have checked the strategy tester reports on my local computer, and there are no errors. The lot size is normalized according to the rules outlined here: https://www.mql5.com/en/articles/2555 Can someone please explain why a volume of

Local variable to retain its value.

Hello. There is a simple code. The idea is next, trading volume will increase after there was a losing trade to recover losses. What I am trying to do is that if for example trading volume was 0.01 and there was a loss trade, it becomes 0.02 and resets once there is a winning trade. The problem is

Select order tickets individually

Hello everyone, I am trying to modify pending orders with order tickets , The problem is that if I attach the EA on 2 or more different charts order tickets are mixed and this is a problem, can someone help me? below is the complete code of the logic. //---4 Count total orders placed by the EA on

Total pending orders placed by the EA

Hello everyone, I am trying to count pending orders placed by an EA. There is a very odd result -134545644 or so. This function runs in OnTick() function. Can someone help to get the correct result? I've included the code below. Thanks! int ordersTotal = OrdersTotal (); // Total

The same parameters do not return the same value

Hello guys, Someone can explain why it is that: long leverage1 = ACCOUNT_LEVERAGE ; returns value: 35 and long leverage2 = AccountInfoInteger ( ACCOUNT_LEVERAGE ); returns value: 300 Why these two do not return the same value

Product Validation Error

Hello, I am trying to upload a new version of the EA to the market but I am getting error 130, I know what it is and I test it in strategy tester however the problem does not exist here, So can someone tell me if it is mine problem or problem of validation server

Print inside a loop does not work!

Hello, can someone explain to me why this does not work? void OnTick () { myfunction(); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+

Error 131 (Invalid volumes in trade operations)

Hello everyone, someone have idea what is problem here? I am getting error 131 when I want EA to upload in the market, can someone help? can someone tell me what can I do? here is code: extern int Candle_size = 150 ; extern int MagicNumber = 999 ; extern string TradeComment = "" ; extern int

Error 4051. Invalid lots amount for OrderSend function

Hi guys, I want to upload EA in the market but I am getting error 4051, the problem is that Lot size exceeds minimum and maximum values, How can I calculate below code correctly so that it would not exceed minimal and maximal lot sizes? Thanks! minLot = MathMax (MinLots, MarketInfo( Symbol ()