MQL4 and MetaTrader 4 - page 71

When will be released the MT5 with strategy tester included ? Also, will the MT5 strategy tester be able to test EAs which use multiple currencies at once ? Thank you.
Hello gang, hope you all well. Im trying to debug my EA and itd be very helpful to isolate objects the tester created per trades. For example, hiding loser trader, or winners, or just hide sells/just buys. Im not sure if is it necessary to create Struct for it, and if so, i imagine i need to keep
[Deleted]
  How do I calculate lot size?  (35   1 2 3 4)
Let's say my mini account has margin of $10,000, and I want to risk 2% on the next trade (that is, simply use $200 to buy <some amount> of contracts). [I realize this is a limited view of "risk". I'm not interested in stopLoss pips, or profit targets, or whatever.] Using MetaTrader, I get the
I'm backtesting an EA and everytime i stop the backtest the MT4 platform closes down. I have 3 MT4 brokers and have the same problem on all 3. This is slwoing me down too much. If somebody has any advice which could help solve this problem I'd greatly appreciate it. Thanks
Hi guys, how to get the distance between 2 Moving average in different timeframres
I would like to be able to run automatic scripts that would launch metatrader backtests in parallel (preferably with MT4), and which could automatically export the results to files in order to perform post-processing on them outside of metatrader. Are there any solutions: 1- to call metatrader via
[Deleted]
I have 3 MT4 Terminals, therefore 3 Strategy Testers. OANDA - V4.00 Build 1370 11 Jan 2023 MyForexFunds - V4.00 Build 1370 11 Jan 2023 FTMO - V4.00 Build 1370 11 Jan 2023 I have a problem with all 3 Strategy Testers, I cannot use a "Custom Spread". Once completed The Strategy Report always used the
I have the following code for news trading #include <Calc_Lot.mqh> #include <Points.mqh> #include <check for trading.mqh> #property copyright "Copyright 2022, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property version "1.00" #property strict //variables double
An indicator that shows some of the important levels... Guys I've been trying to make my own indicator, but I can't even make a line work properly... I don't just need an indicator.. I want to learn how to do this <Deleted> ... So first of all: does anybody know of any online resources where they
Hi, Since build 482 the ability of choosing your Data Center manually has been removed. I know that a lot of people messed up by choosing unsuitable Data Centers for themselves and flooding other with requests. However, I have noticed that the automatic selection of my terminal isnt correct with
Hi Guys? The below ia an MQ4 MultiCurrency Expert Advisor code for 10 Currency Pairs.However, the code compiles with 11 warnings. Warnings are:return values of 'Order Send' should be checked.Please how should I fix these warnings? Please advise me and I shall appreciate.Thanks!!! void OnTick (){
Hello to everybody. I use MT4 and I put my orders in an old school way ;-) I mean manual way : order stop market, with stop loss and take profit. I'm gonna have a few accounts to manage. I tried MT4 multiaccount but there isn't any charts. Is it possible to copy my manual orders from my MT4 as a
Hi, I am a starter. Using moving average.ex4, i change input lot to 1,2,3, but the tab 'Results" show the size still 0.1 . Can anyone explain the odd phenomenon? Can anyone help? Many thanks
  Please Help  (15   1 2)
Please help, I can't fix the code for moving pending deals Can someone help put the code to move the pending deals without showing the error in the picture Thank you for your help
Greetings Members, I have a question. How to get the minimized or maximized state status of the CAppDialog? Need to programmatically figure out whether the current window is in minimize state or in maximize state. Tried following way with global variable: int minimized_status = 0 ; //---Custom
  Search Patterns  (2)
Comments that do not relate to the MT5 have been moved into this topic
Anytime I download mt4 from mql5.com and install it into my laptop windows 10, it will install MT5 instead of MT4. I visited 3 forex brokers and downloaded MT4 from their websites. After installing them in my windows10 laptop, it could not connect to my internet connection and could not load charts
  OrderClose() issue mql4  (14   1 2)
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
Hi please I need help correcting the attached coding mql4, there are 4 errors and 2 warnings. Thanks in advance
guiding me how to use moving as a trail stop
Hello, I am trying to write a code to compare last 2 fractals up... if fractal up [1] > fractal up [2] we get a sell signal . thank you in advance
for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderSelect ( 2 ,SELECT_BY_POS,MODE_TRADES)) { if (OrderType() ==OP_SELL){ OrderSend ( _Symbol ,OP_BUYSTOP, 0.02 ,Bid+ 50 * _Point , 1 , 0 , 0 , NULL , 0 , 0 ,Green); } if (OrderType()==OP_BUY){
Hello experts, I have a code that includes multiple IF statements (if inside if) however I have an issue when one of the conditions is not met, the related else statement is not executed...no errors received while compiling the EA. Please advise about the correct syntax & if anything is missing in
I coded this ea but there is something wrong that I can not solve. The EA should not place an order buy if the last order is Buy and it should not place a sell order if the Last orderType is Sell. Sometes it is ok but if there are many open order so there is something wrong(it place same order
I'm trying to return the current profit on an open order based on the order comment. Right now, my code below is getting the profit of all open orders as opposed to just the order with a specific comment. I have an order with order comment "Testing". So, what I want to return is the profit for only
  EA for Hull Trend  (17   1 2)
Is there any available EA for Hull Trend or HMA ?
Hi, kindly I need help to removing the above mentioned error from the following coding . <deleted> Thank you
  TickVol in MT4  (5)
Hello! I know that mt4 doesnt have a tick history. So I was thinking if I can make one. Like an indicator which can start recording, and displaying as a hystogram,as soon as it is loaded on the chart. I started to right something to record the ticks for the current bar into and EA : void OnTick ()
In order to implement two-colored line in MT4 custom indicators, I try to use two buffers, each with a different color. the code looks something like this: // if line should be red { if (buffer1[previous_index]== EMPTY_VALUE ) //this is to connect empty space between green and red line