MQL4 and MetaTrader 4 - page 72

Does anyone experience issue with MT4 notifications? For past few days I am getting below error message frequently and so some notifications are not send. It was working fine before. 2022.07.19 14:02:40.716 Notifications: 'Double Top for XAUUSD at 1714.58 in 1 M Arrow -1 OrderType 1' not sent to
Hello. I am looking for a code that will make an expert advisor work within a specific timeframe e.g. M_15 and also I need a code to make it work on only the chart I drop the EA. Currently, when I drop my EA (or scripts) on any chart in my MT4, it always attaches to AUDCAD . This happens even when
Does anyone use CMC MT4, it seems it only allow one order being placed on one tick. Is there anyway I can get around this
Do I need to use OrderStopLoss() and OrderLots() and do the math to get the profit/loss of the SL for an open trade or is there a single function that will fetch it for me? If there is I can't find it, but the fact that I can hover over the line and MT4 shows it to me has me wonder if I'm missing
Since the recent update to MT5 on IOS, the chart does no display properly when on zoomed mode on the device settings. Is there a fix
I have been all over the forum and read all the articles in Tester, but I can't seem to find much about how others may be achieving Walk Forward Analysis for their EA's with MT4. I know there is a tool by Easy expert forex, but this tool unfortunately has limitations. Essentially it only seems to...
Hello! Can anyone help me to code, how to count total number of running currency pair(s) with active order(s). In the picture, there are 4 active orders running with 3 different currency pairs. Here, I don't need to count total orders using OrdersTotal() function. Also I don't need to identify...
  Need help with coding please  (148   1 2 3 4 5 ... 14 15)
Hi i am trying to code a very simple EA but i'm not a programmer and i've never made an EA before. I took the MACD Sample from MT4 and edited some parts and deleted all the rest that i thought i don't need. I'm sure my code is really horrible I would like the EA to work like this: My custom
Hi Guys, Please help in correcting the following code in MQL4. While I am compiling following code in EA. I am encountering 2 errors of "unbalanced parenthesis" (highlited in Bold Red) and "unexpected end of program" (highlited in Bold Yellow) // declare global variables double lotSize = 0.01 ;
Hi, Say I run an MT4 optimization from 01.01.2016 to 31.12.2019 and then I want to test all strategies from previous optimization on the period 01.01.2020 to 31.12.2020 to eliminate those with poor results (on the basis that they were probably overfitted or not statistically significant enough so
ask for help For payment please check Order number: 919895545 [...]
I've created this so far, but for some reason the ObjectSet is not working properly. My comments are in [] #property indicator_chart_window #property indicator_buffers 0 #property indicator_plots 0 extern datetime ArrowDate1 = D' 2023.03 . 03 00 : 00 '; extern double ArrowPrice1 = 144.8730 ; extern
Hi every one I wrote an arbitrage expert advisor which is trade two pairs in same time. expert is working good in demo account but when I change account to real, it s working for some time and also open positions but after a while it s freezing. restarting the MT4 don't solve the problem. again when
below here we can see the last buy position should be opened when there are 3 supertrend in green, the problem is we can see on chart that shift 1 of these 3 supertrend doesnt have all 3 green, one of them is red, down 1.06397, up 1.06185 and up 1.06242, but in journal we see up 1.06127, up 1.06242
[Deleted]
Hello, I would like my indicator to save all ohlc values to csv file once loaded and then do not save anything more until manual reload of the indicator. This is what I did: int handle = FileOpen ( "export.csv" , FILE_READ | FILE_WRITE | FILE_CSV ); int OnInit ( void ) { if (handle> 0 ) {
I am growing very tired of going to each currency pair chart and setting the magic number each time I compile my code on the test (not talking about tester) I am running. Is there a code snippet out there where I can count all the currency pair charts open with an EA called "bob" (for example) and...
Hi, I would like to create a dashboard with 28 rows and 14 columns using classes. However, I am having trouble with the 12th and 13th columns as they are not displaying correctly on the chart (please refer to the attached photo). I would greatly appreciate your help in resolving this issue. Thank
Hello everyone, I've been struggling with a stupid problem for a few days now, and I've come to the realization that MetaTrader 4 simply doesn't offer a way to update .hst files so that functions like iClose() can always read the latest candlesticks from the file. Somehow, the iClose function keeps
Dear friends, need your help. If EA already run in one pair, then how to avoid EA run in the other pair? So EA only run in one pair. Thank you.
Hi, i need to extract draw down per trade from an EA. I've had a go at the program (below), but i am not sure how to extract the high and low values between each trade execution. also how would i extract this directly to csv? void OnTick () { int HighestCandle= iHighest ( _Symbol , _Period
Is there a possibility to start a backtest from the command line? Something like "terminal.exe -tester EAxyz EURUSD 5min 2000.01.01 2010.01.01" ? Any other idea, how I could start a backtest from outside? I want to use external programs that start different backtests automaticaly. But I have not...
I tried demo on mt4 and see that on metaquotes-demo, for EUR/USD, there is no commission nor any spread except for roll over hours. Last year on metaquotes-demo, the simple EA I used scored very well
//+------------------------------------------------------------------+ //| testma1250.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com |
How can i make the trade utility size bigger on my screen, it is literally 1" x 1.5" and cant see any of the boxes or options
Hello everyone I am need of switching indicators onto the top of the main chart and could not do it. I did over 4 hours of trying to figure how to but was not able to. if anyone can help guide me on how to setup 1 indicator chart on top of the main currency exchange chart, it will help east alot for
Hi   I am getting an error message - IgnoreArray - invalid array access - on this .mqh file, when trying to compile it. Is it possibly related to the changes that came with v600?I can't seem to find enough info on the eror message to help me work out what the problem is. I am hoping to use this code...
I have a script which create hst files, i want to use this chart data from the hst files for some indicators but i see when i use iClose() function that the latest close price is only giving back correctly when i open a offline chart from the hst file and when i update this offline chart, then i see
Hi, I have an expert attach to a chart. It need to iterate through all other opened charts, and iterate through objects in all of this charts. I iterate through charts without problems, but I don't know how to iterate through objects in another chart than the one where the expert is attached
Hi, thank you for taking the time to read this thread. I added a new function to this program so that it only closes its own orders when trading and does not close other orders that were opened manually or opened by other expert advisors. By adding this function, the program makes only one order
hello guys , hope you are doing well. i wrote a code that i'm currently using to calculate profit factor for a specific magic number : double Grosswin(){ int win=OrderProfit(); double grosswin= 0 ; int i= 0 ; if (cnt> 0 ) for ( i ;i<cnt ; i++) if ( OrderSelect (i, SELECT_BY_POS, MODE_HISTORY)) if