MQL4 and MetaTrader 4 - page 18

Searching for this information on Google confused me. Someone wrote that no, the commission is not taken into account and you need to calculate its value at the end of the test, taking into account the number of traded lots. Others write that the latest versions of Metatrader 4 calculate the
Hi, I have been trading for a few years, and finally decided to take the plunge and learn more about building Expert Advisors. Playing around in - Bots Builder - has helped a lot. I used it to construct a very basic EA. The next step is adding a License Check Function - where the EA expires after 30
Hi, I already have a indicator, but by default there is no alert option, how can i add alert on it? Easy method bcz i am not familiar with coding. Thx
2019 Braintrading EA - from mq4 to mq5 or C# ?! Old Brain EA MQL4: https://www.mql5.com/en/forum/176133 Who has a good EA Braintraiding MQL4 or MQL5? With Fractal dimesion Ehlers. EA is missing. How do I add alerts when the H1 H4 indicator signal appears ?! Important
Been trying to Optimize, some EA's and not getting or seeing anything show up at all. I, would like to know if anyone has this same fault on that version? Thank you
I read the RSI indicator parameters of the 1-hour period on the 15 minute period, I read the parameter was correct. However, when I run the EA open order, I found that the parameters of the indicators read were not accurate,Causing incorrect Openorder locatio
Dear everybody, I have an EA that I run simultaneously on several charts at once, on just one symbol pair, but with different time frames. Of course I did this as a strategy to reduce the risk as small as possible. But the problem is, if a trade is opened by the EA, on more than one chart
Hi everyone In the expert that I want to write, I need to measure the strength of each currency based on a series of parameters and then determine the strongest and weakest currency. For example, I will create the variable dollar, euro, franc, etc., and then declare the largest one based on the
Greetings. I can't understand why in backtest environment it executes tens of deals a day and doesn't execute any when I conduct forward test on demo? Any help is appreciated. Thank you in advance. // Function to place a sell order bool PlaceSellOrder() { double previousLow = iLow ( NULL , 0 , 1
[Deleted]
1) I'd like to be able to automatically Publish the Detailed Report.2) I'd like to see the high and low BETWEEN the entry and exit points for each trade.How would I go about these?Thanks,
I can't seem to find anything in the docs and searches on the internet don't answer my Q. I'd hate to leave it up to the user to go into the EA Properties dialog and configure whether their broker has FIFO requirements, but that's looking like my only option right now
I'm struggling with something, very basic actually. At the moment im following an online course and with the function OrderSend, nothing happens for me. I do the exact same formula as the online course, where it works, but for me no order sends, just in the expert tab i get the notification "
Hope all is well. I've been working on this for a few days(total newbie to MT4). Whenever it runs it closes seconds right after. Any help is greatly appreciated! // Define input variables input int EMA_Period = 8 ; // EMA period input int RSI_Period = 14 ; // RSI period input double Lots = 0.1 ;
Hi, My EA has the potential of having a large number of classes and I don’t want to use their functionality if they have not been selected from the user inputs. So to reduce used resources I thought of instantiating a class only if needed. So, my question is, do you think that the following coding
Someone can fix this code please?. I cant find run it.. show error 'close' - constant variable cannot be passed as reference Thanks //+------------------------------------------------------------------+ //| patornes.mq4 | //|
I am using Global Variables for storing of state of one dashboard to give these values to another dashboard. I use 4 variables for this. I am getting this message all the time: Warning! Global Variables Count Exceeded, Cleaning Started... Cleaning Completed. Is there a max number of global varibles
  about news filter  (12   1 2)
//+------------------------------------------------------------------+ //| news.mq4 | //| Copyright © 2016 Tor | //| http://einvestor.ru |
Does anyone have any experience in using the ComboBox control ? I'm trying to use the ComboBox control that is part of the standard MQL4 library. Creating it is very simple, but when I click it to open the list, it doesn't open. I do .Create, then .AddItem a few times, and it shows fine on the
1 int BreakEven(int MN){ 2 int Ticket=0; 3 4 5 for(int i = OrdersTotal() - 1; i >= 0; i--) { 6 OrderSelect(i, SELECT_BY_POS, MODE_TRADES); 7 8 if(OrderSymbol() == Symbol() && OrderMagicNumber() == MN){ 9 Ticket = OrderModify(OrderTicket(), OrderOpenPrice(), OrderOpenPrice(), OrderTakeProfit()
How to avoid opening multiple limit orders instead of one at a time? extern double PriceLimit= 3 ; extern int MAPeriod= 7 ; int MagicNumber= 90 ; double BuyGridTrade= 0 ; double SellGridTrade= 0 ; //+------------------------------------------------------------------+ //| Expert tick function
Hi guys, I have a VLINE (vertical line) that I want to obtain the date or shift value. I tried the following functions but to no avail. Please I need your support. Thanks datetime VLineDate = ObjectGet( "My VLine" ,OBJPROP_TIME1); datetime VLineDate = ObjectGetTimeByValue ( 0 , "My VLine"
my demo account made with mt4 is disconnected and I am unable to connect. it displays wrong password, how to reset our password. I do not want to lose my statistics that I have been working on for 1 month, thank you
I'm experiencing something strange. My code is as follows: D1_H0 = iHigh(Symbol(), PERIOD_D1, 0); D1_H1 = iHigh(Symbol(), PERIOD_D1, 1); D1_H2 = iHigh(Symbol(), PERIOD_D1, 2); D1_L0 = iLow (Symbol(), PERIOD_D1, 0); D1_L1 = iLow (Symbol(), PERIOD_D1, 1); D1_L2 = iLow(Symbol(), PERIOD_D1, 2); D1_O1 =
Hello everyone and thank you in advance for your help. I wrote an indicator that, based on the opening and closing conditions of the past bars, creates rectangles in the chart. The indicator works well most of the time and updates correctly on the chart. The problem occurs when I try to change
Hello, I am trying to code my system however after compiling it returns the "not all control paths return a value" and when I double click it shows its in the following block, could someone please point out the problem. Thank you in advance bool CalculateCurrentSellOrders( string symbol) { int
Hi! I'm a new user of MetaQuotes. I learned structure and write simple Expert Advisor whitch work corectly and maketransactions, but I would like test it by tester with different parameters. Andwith it I have problem, the tester make for imposible 100 tests but don't makeany transactions....
  Notifications  (1)
I didn't receive any notifications today, is there a problem
Hi everyone, I have started getting 'OrderSend error 130' when trying to use the strategy tester on a piece of code.  I am incredibly confused as to why this is happening, as I am running the code live (With the same broker) and have no issues. Similarly, I tried inserting this basic buy signal code...
Hi MQL5 Community, I'm working on a script that involves reading an exchange rate from a file to perform risk calculations before opening trades. Unfortunately, I'm encountering an issue with opening the file and getting the following error: "Failed to open exchange_rate.txt file, Error code = 5002"
Hi All I want to create supply & Demand EA & not indicator. The code below will not show rectangle wicks when there are low/high wicks. The EA will show me the current price in rectangles instead of wicks. If you know the problem, please help. void OnTick () { int i= 0 ; int Top=( int ) MathMax