I get the open price value from the selected position. Assume that the selected position price I got is 0.20 Then I sum it up with 0.1. So, I got 0.30 for the first calculation. When I do it multiple times until the value is 0.50. When I do the calculation for 0.5 (plus with 0.1 again), I got 0...
Hi Does anyone know where I can find a expert that closes my deal once price closes above or below a moving average ? I found the code for MT4 but not for MT5
How can I align a label to the top right? I made this helper class, using the Standard Library. I do set the Anchor property (using https://www.mql5.com/en/docs/standardlibrary/chart_object_classes/obj_controls/cchartobjecttext/cchartobjecttextanchor), but it has no effect. The label is positioned...
Hi everyone, I hope I opened this thread in the right section. The problem I have is the following: I am using an EA that has worked flawlessly when using it with brokers with "normal" Forex symbols (meaning symbols with a suffix) so far. My my new broker however uses a suffix (".i") behind every
when looking in the journal the orders are not even trying to be modified. i assume there is a problem with the if statementsdouble Trailing_Stop = 100;int init(){ double ticksize = MarketInfo(Symbol(), MODE_TICKSIZE); if (ticksize == 0.0001 || ticksize == 0.001) pips = ticksize*10; else...
Hi guys, I just ordered the MQL5 VPS for the first time and I want to make my EA run on it. I created the charts and added my EA settings and I got the happy smiling emoji on the top right of the chart. However, when I click on "synchronize with VPS", the happy smiling emoji changes into a sad one....
Hello sirs. I want to know if can I open trade with an EA based on the alert message on the chart? If alert message "buy"then open buy position. ..?
How does Drawdown calculate? What is the formula? Thank you
Hi, I have found a lot of outdated codes on the form in regard to this topic. What is the quickest way to open 1 positon per pair? I'm using the code below which one open 1 pair and 1 trade but I wish to open 1 trade for each pair I select. Thanks if(((OrdersTotal()==0) &&...
MT5 platform comes with a few pre-installed EA.One of them is good on 1H TF (ExpertMACD ) But the problem is it opens with 1 lot;I can not trade with more or less than 1 lot. Can somebody fix this problem for me? It's even better if you can throw in the Time Filter . Thank you
In MT4 to hide indicator during backtesting using this script inside EA : int init() { HideTestIndicators(TRUE); return (0);} How to write similar code in MT5?
I am implementing the EA with mql5. I would like to know how can I retrieve the most recent open position. As I am using buy limit and buy stop, it can't use the highest ticket number to refer to the latest open position. What function should I use? Could anyone please give any suggestion?
Hello, I bought an expert from MQL5 market, I loaded it to my account and my friend's account. Expert is trading in my account correctly but it's not trading in my friend's account at all. Help me, plz.
I really don't understand arrays of class objects. If we look at this page we see the correct way to use an array of objects is to use pointers https://www.mql5.com/en/articles/351 CName* cname[10] but my working code doesn't do that, it uses an array like this MyClass objs[]; and my code works but...
the code indicator im trying to pull from is this #property copyright ""#property link ""//----#property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_color2 Green#property indicator_width1 2#property indicator_width2 2//----extern...
Hi, On every tick I am iterating through all my open positions, and depending on certain criteria I will close it or not. What puzzles me, if I start iterating through and say have 100 open positions and I close the 50th, what will happen on the next - 51st - iteration? Because I imagine the...
How can I remove orphaned buttons from a removed EA without using the EA that originally created them? Please is there a script or something, its driving me bananas. cheers
hello, can you help me please :) string CheckFilter(){ string filter=""; double myPriceArray[]; int VolumesDefinition = iVolume(_Symbol,_Period,VOLUME_TICK); ArraySetAsSeries(myPriceArray,true); CopyBuffer(VolumesDefinition,0,0,3,myPriceArray); float...
ive been trying to make an indicator but am stuck on this one part. below is the code ive been trying int i; int limit = 100; int test = 0; int OnInit() { return(INIT_SUCCEEDED); void OnDeinit(const int reason) { } void OnTick() { int lowest = iLowest(NULL,0,MODE_LOW, limit...
Hi, I dowloaded new versions of an EA last week for two different computers. Unfortunately I had a problem with one machine (a VPS) and had to reload MT4 which wiped out the download. I then downloaded it again. I had a similar issue when I changed the hard disk on my laptop to an SSD earlier this...
Hi I'm trying to start the strategy tester from the command line but I can't figure out how to specify the expert because it always says it cannot be found. This is the command I'm trying from a batch file: start "B:\MetaTrader 5\terminal64.exe" Expert=Advisors\Meine\test.mq5 TestSymbol=EURUSD...
Does someone know how I can make from my indicator that gives a push alert an automated EA which opens trades?
Hi, How do I automatically estimate the ATR Low and High?
Hi, If my ATR= 0.00087 and price: 0.69111 and I want 1.5% stop loss. How do I calculate this with EA? Is the following correct? Convert ATR to whole number from 0.00087 to 87 * 1.5 = 130 pips. Am I correct? if so how do I convert it to code. Especially the digit conversion from 0.00087 to 87, how...
I just bought a signal and it is now operating on my demo account and not on my real account. As you see I am a noob, but I need to ask, can I change this setup to my real account? Or I need to pay again for the same signal?
Hi I have what I thought was a simple routine but it has some issues. #property copyright "Copyright 2019"#property link ""// libraries included for coding routines#include <Trade\Trade.mqh> //#include <MovingAverages.mqh>#include <initmql4.mqh>input double lowend = 0.25;input double highend =...
I made an Expert Advisor that opens an order based on price compared to the Bollinger Bands, it sends the order correctly, but sometimes it ignores some bars and opens, or ignores all of them and waits for another trigger. Here is the part of code void NewOrder(){ int...
I need to make sure server always run smooth. How to monitor this with mql5 vps?
Hi All, I'm new in the vps EA thing, i still cannot win migrating charts onto vps, i get an error message DLL not allowed, even when i don't check on the expert advisor window, it says the EA that is supplied by my provider uses "wininet.dll" so i should remove expert from charts and try migrating,...
Hello, know someone how to change start date and timeframe in strategy tester automaticly? I mean, when I finish test my EA I would like in Deinit function change start time and time frame of tester? Is it possible? On the forum I found simple code how to pause Strategy Tester from EA so I think...
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.