Hi I am after a indicator to mark Hi and lows to identify trend direction to trade, Example of uptrend: Higher High is higher then previous high with 3 candles on both sides lower. Higher Low is higher then previous low with 3 candles on both sides higher get the picture, an ea would be even better...
Dear Coders: I have a problem and I can not think how to fix thay kindly support, //$------------------------------------------------------------------$//| MA Crossing Magic.mq4 |//| Copyright 2018, MohamedEgy...
Hello, I tried to install Metatrader4 following the instructions I found here https://www.mql5.com/en/articles/1358?utm_source=www.metatrader4.com&utm_campaign=download.mt4.linux When I downloaded the file.exe from here https://www.metatrader4.com/en/download I got this error: "Operating system not...
I would like to make a EA which is when iMa crossover the Close[1] like right before candle then buy or sell depends on what former candlewas I tried to code but still i don't get it :(. I can't figure it out how to use iMa. this is my code. extern double volume1 = 1.0;//Lot사이즈(Buy)extern double...
Hi I need help with coding in EA to 'print net margin utilized for a symbol' If I have EAs running on 3 different currency charts, the EA on each of those charts should only print the margin utilized by that symbol. Taking on new orders for that symbol would have EA on its chart to recalculate and...
Hi All, I am a new user and I would like first of all to congratulate you for the valuable information that can be found in this forum. I want to ask for your help because I have a problem with my EA that works on MT4 VPS: every time I turn on the PC and open MT4 this EA is re-initialized as if it...
hi i have a simple question... i want to select a pending order when it reaches its price for example in the code below 2 orders gets opened and the second one is a buystop as you see....i want to modify the stoploss of the first order that is a buy after the second order reaches its...
double Limit=Bars-1;double DR[Limit];for(i=Bars-1; i>=0; i--) { DR[i]=Close[i]-Open[i]; // daily return Alert("Daily return of bar ", i, " = ",DR[i]); } The above returns the error "invalid index value" in the highlighted position. double DR[];int i;for(i=Bars-1; i>=0; i--) {...
Hello and sorry for my bad english. I made this very simple indicator that draws a SMA using iMA (totally useless but consider it like an exercice for me). It works fine when I use it manually on the terminal but always returns EMPTY_VALUE in an EA. Could you please help me understand what's wrong ?...
I'm trying to run a version of MT4 in the cloud (dropbox) which allows me to use the program at home and at my work. Everything seems to work fine except ST Chart synchronization, bought on the market. The problem is (I think) that I can't click on the "install on the terminal" because it can't find...
Hi, I'm just begin to learn mt4 coding. I try to understand now why this indicator repaint.. In the code I can not find code which recalculat the past or stange future function.. can somebody help me to find the code which make this indicator repaint? maybe the two loops, one calculation from...
Why in the following code do I get OrderSend error 131 on UK100 but not on EURUSD? // Input variables input int MagicNumber = 101; input int Slippage = 10;input double LotSize = 0.1; input int StopLoss = 20;input int TakeProfit = 20;input...
Hello, is it possible make an EA that generate a Click on a screen coordinate as soon it see an open order ? To clarify, the working should be this : I setup click coordinates of BUY and click coordinates of SELL. The EA is working on a EURUSD chart ( for instance, can be other currencies as well ),...
void OnTick() { static double prevbid=0; double curbid=NormalizeDouble(Bid,5); double TD=DoubleToStr(curbid/Point-prevbid/Point); if((TD)>=50*Point ) if ( kaidan==0) { { bool a=OrderSend(Symbol(),OP_BUY,0.01,Ask,10,Ask-100*Point,Ask+500*Point,"BUY" ,12345...
Hello everybody, I'am a Beginner and i was using a tutorial to create my first "own" EA. It's a simple EA which use 2 Moving Averages. I did a few Backtests and all was fine. But now i have this Problem (Nothing in the EA has changed!) To make sure the EA doesn't open hundrets of orders, i used...
[Deleted]
Hi All, I`m quit new here, and i reading trough the manuals I would like to build an EA. I copied a EA from someone else to make some changes that it fits my one criteria. If I try to backtest this system it does not take any positions. I hope someone can advise how I can make amendments in the...
i write this code for expertremove() but dont meta order it. just order else if and when AccountEquity is < target dont order it. for eaxample: if Equity rise to goal + 80 order done. but when Equity rise to goal + 60 then decrease dont run and dont Expert remove . thanks for your comment. if (
Hi I've written an installer for a commercial add on to MT4. We put some DLLs in the MT4 programs folder. With all the white labels out there, it's a bit tricky finding the best way to code the installer - right now, we are looking for matches in the folder names - but this seems a bit iffy to me....
i have coded ea but need some help if Rsi >50 buy then if trend changes then order goes in loss ( ea have to wait till close this order for open an a new order as per trend ) order in loss means the Rsi is < 50 so we miss the sell zone so it is possible to make ea so to open new order till...
Hello, I have two computer systems running an Optimization for an Expert Advisor. Both are optimizing the same EA, just different currency pairs. One system is fast than the other. For example, System A is running the optimizations faster than System B. Yet, system B is a more powerful machine....
hi... is there any way to open only one order in OnTick() function without using OrdersTotal () OR ExpertRemove()?
I have thought that I could make a symbolic link of folders for MT4 to a share drive and that they could share in one folder but now as far as I know the links must be to a location that does not exist. So this would mean that there would be multiple MT4 instances of folder resources instead of just...
Hello everyone, I'm really curious to do some backtests of the famous candle patterns. I'm not very expert in programming, I wanted to ask you if you think this code is right to identify the three white soldiers .. thanks in advance for your answers void OnTick() void OnTick() { open1 =...
Good news is I'm trying to do this in only 1 way. C# managed program to MQL4. Now, when the DLL code is this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; using RGiesecke.DllExport;...
I gather from the wealth of C# APIs out there that it is possible to connect to MT4 over TCP and perform various functions. The C# APIs I've found online are massively overkill for what I need - but presumably the people who made these API had some sort of reference document of how to communicate...
I want to implement the interprocess communication between the C#.net GUI and mt4? I Want to develop the GUI in C#.net for passing the data as input to the MT4? and also i want to read the data from the MT4 for displaying in C#.net GUI? How we can implement ? I am using the named Pipes for inter...
Hi everyone, I have modified the ichimoku indicator for my own trading style. There is no error but when running on charts, it return to MetaEditor immediately. I am new to this language so please help me. Thank you in advance. //+------------------------------------------------------------------+
Hello i would like to calculate the Profit of the oldest Sell / oldest Buy Position in the Chart.... same like that: //+------------------------------------------------------------------+double countprofitBS(int mode,int order_type) { double profit=0; if(OrdersTotal()>0)...
Hi guys, I would like to show value of total, sell, buy, Equity, Balance! I tried to show AccountBalance using with AccountBalance(), but it shows default value of 10000, not my terminal showing value. Is there another fuction to show them? like AccountBalance(), AccountEquity, something like that ....
I read where I can create a script and assign it to a hotkey to change the template in MT4. the Path for the template is : "C:\Program Files (x86)\OANDA - MetaTrader\Personal_Account\" and the template is called "!!LINEAR REGRESSION I figured this should be easy. Not so much. The below is my...
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.