MQL4 and MetaTrader 4 - page 86

Hey all, I tried coding an EA with the following strategy: 1. BUY MARKET ORDER WHEN CANDLE PRICE CLOSES ABOVE THE 200 HIGH SMA 2. SELL MARKET ORDEN WHEN CANDLE PRICE CLOSES BELOW THE 200 LOW SMA 3. IGNORE SELL ORDERS WHEN PRICES IS ABOVE THE 100 EMA 4. IGNORE BUY ORDERS WHEN PRICE IS BELOW THE 100
Hi All! I have read the documentation and read all the related topics in the forum, but still cant find out what the problem is. This is the path of the file: C:\Users\danie\AppData\Roaming\MetaQuotes\Terminal\2C68BEE3A904BDCEE3EEF5A5A77EC162\MQL4\Files\test.csv (This is the real path and also this
Code that works on win 10 fails on win 11. Is there a simple fix? Thanks for the help, George Change Time Frames all charts //+------------------------------------------------------------------+ //| ChangeTF-All.mq4 | //| Copyright 2010, zznbrm |
hi i made this trailing profit script the problem is that the take profit followes the price as it goes up and down, while i want to follow just as the price rise ( for a sell order, and opposite for a buy) i don't know how to fix it, i know the problem is that in ordermodify i use the take profit
  MT4 & Excel  (3)
Is there anyone available that has a good knowledge of the MT4 platform and excel spreadsheets. I am trying to find a way to automatically send the Account History data from MT4’s Terminal window into excel to keep my database of trades and associated charts up to date. Is this actually possible
  Martingale with step  (12   1 2)
Hello guys, nice to meet you, sory for my bad english, i just started to code EA two weeks ago, and i need some help with my martingale strategy, i've been struggling for almost a week now. Short story, my code is execute an order when MA is cross, either up or down, and when order hit stop loss it
I have a mql4 code from a few years ago, and when I compile it through the metaeditor it doesn't run in the metatrader, and if I put the code in the metatrader so that it is compiled right there, it works. What can be done
  OrderSend delay  (5)
Hello, if I try to place many orders successively from one EA then I get a delay 2-4 seconds between each order. Why does it happen and how can I avoid this delay? Thank you
  Negative Indices  (6)
hi everyone, i have an indicator and there is a variable "r" in that code that starts from -1 . if you change it to zero, the first candle doesnt have amount. i want to know why is started "r" from -1 . i want to write this code to another language , can someone help me ? Thank you :)
So I have a great computer and great specs and never have issues with going over on my cpu or memory (even when the issues i am talking about arises) On the weekends like Friday afternoon, all of Saturday and most of Sunday if I have a lot of mt4’s up, they run super slow and freeze up. During the
why i cant to download mt4, can you help me
Hello I am using a VPS from a German zone. It can't install MT4 (installed from the official setup.exe). It freezes as shown in the picture and I've tried with several brokers but encountered the same problem. P.S. I tried installing it on my personal machine in Thailand and it worked normally
I coded a break even code. But when I run it, sometimes it shows order modify error 1. I just want to move stoploss to zero(0) but I tried to use = 1 to avoid order modify error1 Can you advice where the problem? extern int MoveToBreakEven= 2 ; //BE_Start Pips void BreakEven() { int exitTypePer
Hello, i want to write code to solve problem : Input the price and order buy or sell it. But it wrong because some case ( Most of buy). And i think add bid and ask price. So i write the code: First, this is code not add bid-ask price: //Val == 1 is sell, val==2 is buy //And sl is in input. if (val
Hi all, I created a dashboard for my expert advisor using graphical objects. I decided each object's position and size using OBJPROP_XDISTANCE, OBJPROP_YDISTANCE, OBJPROP_XSIZE, OBJPROP_YSIZE. Since monitors with different resolutions are not available, I wanted to understand if in some way the
Hello; I wrote a routine that will activate a trailing stoploss. It works as it should. I have the MT4 platform forward activities to my phone under notifications (Tools -> Options -> Notifications) Problem I am having is that every tick the trailing stoploss gets adjusted my phone will beep (notice
I have developed the below code to try and sum all open stop losses, across multiple currencies in the portfolio and then express as a % of the Total Account Value (in USD base currency). I don't get an output that makes sense - can anyone help improve the code to give an accurate and stable result
Are there any quick commands for objects like lines, rectangles and more in meta trader 4
Hello. I tried to write the following code without using history file. But there is a problem. I couldn't figure out what price value data[][1] returns. I would be grateful if someone could tell me. Source code removed by moderator because it is only useful for scammers and not for proper EA code
[Deleted]
iam using the peroid converter script to get The H12 offline chart but the chart is missing one candle look at pictures below: look at the time , one should be at 00:00 and one should be at 12:00 , but they are both at 12:00 thanks for your help
Hi I created a trading stats window. When I hover the mouse pointer over a description it will popup a tiny window (almost like a button) that shows the name I gave to the object. ObjectCreate ( "Title" , OBJ_LABEL , 0 , 0 , 0 ); In my example it will popup the word Title. How can I prevent this
Hello Coders, Please I need your help. I recently started learning how to program EAs but I'm currently having a problem with my EA opening multiple orders per candle tick. I could have used the OrdersTotal function to stop this but that will ultimately limit the EA to only one order but I want to
Hi, I am getting the error " EX4 file must be compiled using # property strict directive" while uploading new version of EA to market for MT4. How can I fix the problem? Regards
Another one Slawa: No ability to allocate strings inside of DLL's. I need to pass string with fixed length, and use only that number of characters. Will you change it some day? Ruby
I am getting this message when trying to submit my program file for the market. I did not use the debug mode to compile the program. I attached the file and this is what happened
I have a public endpoint i want to hit with my EA the endpoint is here:- https://t6t1yeuvil.execute-api.us-east-1.amazonaws.com/prod/FRED and if you hit it with the browser it returns {"current rate":"5.0"} however, using the EA it returns this:- {"current rate":""} like i say, i can use the
I have a problem about debug. Could you help me? return value of 'OrderSelect' should be checked MA.1.mq4 111 7return value of 'OrderClose' should be checked MA.1.mq4 131 16return value of 'OrderModify' should be checked MA.1.mq4 141 22return value of 'OrderClose' should...
Hello Cummunity, the last days i have been wondering what ECN Brokers are and why people use them. What i found and read gave me this picture: ECN Brokers don't charge you a high spread but they charge you a commission depending on the lotsize you trade - approx. 6 Dollars/Std. Lot They handle your...
Hi guys, I am trying to develop an EA based on few indicator But When I attached to a chart got this massage "Critical Error While Running Expert, Array Out Of Range" Please help me to fix this error thank you in advance. Here is my code
Good evening all, I am making my first steps with mql4 and I wanted to get an annualized standard deviation on returns (as a percentage). My trial with isStdDevOnArray() gives me a result close to my expectation but not exactly as expected. Could someone explain to me why I don't get the same