Forum

Optimizer issue

I optimized my expert 3 months ago Now i have to optimize my exoert again in same conditions(same inputs with same steps and ...) but now it need much more time for optimizing in compared to last time Anybody know whats happining? Thank you all

OrderClose() issue mql4

Hi everyone I try to close some orders (buy/sell) with OrderClose() My code is this: void CloseBuyOrder() { for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol() == Symbol ()) if

Order Comment in mql4

Hi everyone I have a question I printed comment of an order closed by Take profit (I selected deal with OrderSelect() from trade history) I expected for get comment that i sent with OrderSend() but what i got in Print is this : my ordercomment: string ordercomment = "0" ; but what i got when

pips calculate

Hi everyone I expect profit for order in dollars(account deposit currency) for example 30 dollars profit for an order with specified lot size. Im looking for a method or any formula for convert my order profit to pips My exact formula for calculate my profit is: ((equity-balance) * 100)/ balance

Use a specific price for sending a market order instead of pending order

Hi everybody I want to placing an order(sell/buy) in specific exact price I know these tips: 1. It is possible with pending orders but in my case i want to calculate order lot size in that specific price 2. its impossible to modify lot size of pending orders 3. It is possible order could not placing

Data transfer between python and mql4/5

Hi everyone Is it possible to send/receive some string data's between python and mql4/5 program? If yes how can i get it? Any idea? So Tnx

Object delete in mql4

Hi everybody I created an object on the chart with ObjectCreate(). So when i pressed backspace key on my keyboard, my created object deleted(like other objects on the chart that delete with pressing backspace key) I dont want to delete my created objects with pressing backspace key. Is any solution

Strategy tester issue in mql4

Hi everybody Anybody know why: When i have to test my EA in strategy tester with "Open prices only" Model everything is good(order send, order modify and etc.) but its a problem on "Every tick" Model. for example i get a buy signal and EA try to open that position for several times not once. And for

<stdlib.mqh> include problem

Hi I just get a problem when i have to use <stdlib.mqh> I import it in my code #include <stdlib.mqh> After compile my code its not any error about <stdlib.mqh> In strategy tester Journal i have got these errors : 2022.11.06 11:12:03.103 compilation of

mql4 book

hi everybody I have some questions 1.anyone know what is latest book or any pdf document published for teaching mql4? 2.which roadmap i should to follow to being mql4/mql5 programmer