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
//+------------------------------------------------------------------+ //| 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....
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
hey guys this is a simple sup/dem indicator which i try to add alerts to it using rectangle obj count method for watching over newly created zones or any deleted zones sometimes it activates on time and sometimes it wont activate at all or alerts late , what am i doing wrong ? can anyone help me on
//+------------------------------------------------------------------+ //| ZS moving average.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com |
i test some EA at my server here is the best combination that i found firebird at usdjpy M30 hans_ea3 at gbpusd H1 note for statements, fxindo-nf3 is my own EA, i have de-activated it. so please ignore it. it made around 180 pips for last week... update : sorry, i've attached wrong statement.... but
Hi everyone, I try to test my strategy on the tester but I have weird ask price (show in the picture 1). They seems to be "too high" compare to the bid price. I've tried both (in the buy function), ask price (see pix2) and market price but the price seems always too much compare to the bid...
I have an MT4 account which runs on algo trading, When ever the EA opens or closes can i get notifications to my mobile. Is there any settings for that. Please guide me. Thanks in advance
Hello everyone, I hope you're all well. I need some help, please! I haven't used MT4 for about three years. So when I attempted to install the latest version, I was greeted with this: So am I expected to buy a proxy server to run MT4 now? If so, why? Or am I missing the point? I can't bypass this
This indicator helps me draw a horizontal line with a label price as desired in long or short and I do like it, but I've tried to find it in MT5 on the web yet haven't found one. - If you have it in MT5, please give me a copy for use. - Please anyone or the author of this indicator help convert it
I recently updated Windows 10 and all the indicators that I purchased and downloaded from the Market stopped working. I reinstalled 3 of them and realized that my activation count is decreasing after each new installation, even though I am using the same PC. I have already reached the activation
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.