MQL4 and MetaTrader 4 - page 84

I am searching something that would close all positions when a profit is targeted or a %, but without removing my robot that open positions. It can also be a % in the balance account to be targeted). Is it something possible on MT4? I search the net but I found only another Expert Advisor. So I have
[Deleted]
Hello, i have find a example at https://www.mql5.com/en/code/1998 wich allows to load a website with MetaTrader and this example is from MQL5 and should work also in the new MT4 build. But i am currently not enough experienced to make a simple working example, because the MQL5 language is still to...
I experience a very strange situation when I call TimeGMT(), it does not get executed on every tick although I have placed it in OnTick() event. For example, I placed the following code, it may have iterated hundreds of ticks times, and it will only sparingly print out the print statement containing
Hello! It is possible to integrate MetaTrader 4 with other payment system
hello there can anybody helps us code this strategy into a tradable ea it opens BUY/SELL trades based on the giving signals position as seems to be in the picture for TP and SL
  Make It No Repaint Please!  (890   1 2 3 4 5 ... 88 89)
I think time has come for this thread...Kindly place your repainters here...and...Voila!...they will become non - repainters, with my Magic touch and my programming skills... P.S.: You can place your decompiled, expired & ex files in here...makes no difference to me...the work will be done...that I...
I want to optimize my EA parameters to find the best set of parameters to trade. My computer is quite slow so it cannot be optimized on the Mt4 platform. Is there another way to optimize or is there a website to help optimize parameters? Introduce to me
This post is the continuation of a previous badly located https://www.mql5.com/en/forum/345284 Corrections have been made on the advice of coders. //+------------------------------------------------------------------+ //| eaxtwoependingaorders.5.volatility.mq4 | //|
//+------------------------------------------------------------------+ //| TicksSeparateVolume.mq4 | //| Copyright © 2008, FOREXflash. | //| http://www.metaquotes.net |
I'm asking for help with this error in my expert advisor's code: Failed to modify stop loss for short position (ticket #1). Error code : 4108. "OrderModify error 4108" I hope someone can help me, thanks. Here is the part of the code that returns the error: if (is_short_position && ticket > 0 &&
Hi all, new to MQ4 so reallyt stumped!!! I am trying to get the attached to only enter a trade at the start of a new bar when it meets the condition of being a bullish/bearish bar after 5 bearish or bullish candles. At the moment it does fire off a trade but it seems to so it when the condition is
hi to all guys I have a problem trying to install MT4 ( editor +terminal) with mt4setup.exe downloaded from https://www.metatrader4.com/en/download&nbsp ; the problem is that at the end of installation when the terminal open it is MT5 and not MT4.. Am i wrong ? there is something special during the
Hello everyone, I'm new to the EA world and I'm still learning how to backtest . At the end of every backtest I have a 100% drawdown and I've got no clue why, how can I solve this problem? It makes the report unreadable. Sorry for the (probably) stupid question
int start() /// Want to delete all pending orders  {   bool k;   double cls, Lot;   for(int i=0;i<=OrdersTotal();i++)      {      k=OrderSelect(i-1,SELECT_BY_POS);      int Ticket=OrderTicket();      Print(DoubleToStr(Ticket,3);                Lot=OrderLots();      if(OrderType()==0)...
Hi everyone. I'm a beginner at MQL4 . I've got a problem with getting the most value of an indicator for a specific time. Here's the exact thing I wanna do : I wanted an indicator which gives me the value for moving average of volumes. I have searched and found the indicator which I've attached
I am fairly new to trading and MT4, so I may be making a very silly mistake. The problem that I am having is that I code an EA and then I back test it. Then if I shut down my PC and come back the next day, and I back test the EA over the same period on the same symbol, I get completely different
Can anyone help me. I have subscribed to a signal since 2 days ago, but until now it has not been copied to my MT4, even though the signal source has opened trades twice
Hello everyone. I have a question about the strategy tester. What's the real meaning of this input ? (photo) I have in my EA a Spread filter with a value of 5 - maximum of spread : 5. Is it similar to the input in Strategy Tester "Ecart" ? Thank you ! Hugo
Hello, I am developing a robot in mql4 language and I call the indicators I use in my robot from outside with the iCustom function. When I run this robot with VPS, will the indicators I call with iCustom work? If not, what can I do for this
Hi every one when i use Tickstory and Tick Data Suite in back test i have realy huge difference in the result even i use the same timeframe and the same servor (dukascopy) and the same expert advisor ..but i have big difference in the result can some one plz explain me why that
I am trying to decode an encrypted string (Encryption was done using php ) String was encrypted using AES-256-ECB with Padding mode as Zeros. and and if i encrypt the string in the mql4 using the same key , i get exact same encrypted string as the one i get from php. initially i was struggling to
Hello everyone! My EA freezes annoyingly when I okays (pressing OK) the parameter window after making some changes. I suspect the reason to be that the EA was still busy with the last known income tick (which I want to refer to as control from now). Thus, control kept moving around the blocks of
The previous episode is here . The rules are the same
Hello everyone, I got an issue with my close all function. Some days it will close other pairs also, i have no idea why because i check on magic AND pair. Note; The other pair that gets closed has another magic and another pair ofcourse. int closeAllBuys() { bool result = NO_ERROR; for ( int
Hello , i need help creating an EA based on the custom indicator (macd-osma-on-chart-mtf-v2) , so if anyone could help me please contact me for more details on what i want to do
The code //+------------------------------------------------------------------+ //| My Expert.mq4| //| Copyright 2021, John Doe | //| https://www.example.com|
I'd like to post an image but not sure how, words would still be enough to understand my problem thought. So here is the problem: I print information when conditions are met, but sometimes the EA would skip some dates and not print anything, yet it'd still place order in those dates. In my
hello everyone , I hope that you're having a great day , I was trying to use CHARTEVENT_CLICK to select the bar I want to draw Fibonacci On any timeframe the the indicator will draw 2 Fibonacci level , one on the current frame highest ,and the second on the highest close on 1m timeframe .. the
//+------------------------------------------------------------------+ //| Fine volumes.mq4 | //| eevviill | //| itisallillusion@gmail.com |