Download MetaTrader 5

MQL4 and MetaTrader 4 - page 285

To post a new topic, please log in or register
Here is the URL address that it takes me to when I click on the Code Base or click on an EA or Indicator. https://www.mql5.com/en/code/11649?utm_campaign=MetaTrader+4+Terminal&utm_medium=special&utm_source=mt4terminal+codebase Here is the the text on a white screen that comes up. NOTE: IT SOMETIMES...
  FileSeek()ing Troubles (15   1 2)
I'm really confused about this block of code below. I wanted it to either rewrite the last line on the file or add a new line. But, it is always rewriting.                         //----------Check for new bar -----------||                        if(TimeStamp != iTime(SymbolArray[i]...
hi, I had working mql4 expert, and after a new build it stopped to work as expected. Current build is 765 Namely, array passed to a function has no values.  Please see attached full code and of its execution output: void OnTick()  {ArrayResize(listOfLiveMNumbers,10,4);ArrayResize(listOfStopMNumbers...
Hi all, could you help me with this approach, i need to code a signal that opens a trade n days before the end of the month or n first days of new month. Could you help my with pseudocode please?. Best. 
Hi There!!!! Can an EA  create objects during a test? example: I create an EA and I want to test it ,during the test it opens 3 orders. Can it automatically creates 3 vertical lines in correspondence with the opening time of the 3 orders ? I tried this code: datetime opentimestring...
kamal_fx
Hi Is there any EA that could calculate the positions lot sizes?i want it to trade on stocks and not for currencies Thank you
Hi, How can you trade multiple signals at once? Do you need a different MT4 install for a each signal? Regards, Dennis
Does any one know how to relocate or re-size (height and width)a separate indicator window? I want put an indicator over main window withsmaller size. Regards    
Hello, I see a trailing stop code on internet wich is activate after cross up breakeven, but i don't understand a line int trailing_stop = 20;double ts;for (int i = OrdersTotal()-1; i >= 0; i --){OrderSelect(i, SELECT_BY_POS, MODE_TRADES);if (OrderSymbol() == Symbol()){if (OrderType() == OP_BUY){ts...
G'day Guys Pete here from Aus. Just joined but have been trading fx for a little while now. I'm really interested in trading with Renko Charts. I'm currently using the Offline Charts on a Demo Account to give me info to trade live. I'm happy with the results I'm getting so far (only early days) but...
Hi, I've been trying to code an indicator ( only my second one! ) that will enable be to show the duration of each bar. This is to be used on Renko charts. However I'm having some difficulties even though on the face of it it should be simple.  Below is the code, any suggestions gratefully received....
 profitable indicator need to be programmed  in return to know the strategy,the person who will do the programming will be able to use the indicator.   anyone interested send me his email or skype.   thanks 
hi i have an indicator that generate buy and sell signals on h4( draw yellow line when sell and white one when buy) what i need is to get and email when the indicator draw the first dot of the line thanks in advance for  help
Hello.. I'm having some troubles trying to adjust an EA to open the trade at the last second of the end of the candle once the other conditions are met. I've read about the Seconds() function and all, but wasn't able to perform this task with success. I wonder if this is posible, or i'm losing my...
I need this indicator I hope you share with me tks   
hello, I have problems with my code, it's don't work, Normally it have to take long or short after crossing MA. Can you tell me where my code is bad please. thanks   int start(){   int period = 20;   double mmh[];int counted = IndicatorCounted();int i = Bars - counted -1;while(i>=0){     double sum...
New article General information on Trading Signals for MetaTrader 4 and MetaTrader 5 is published at mql5.com: MetaTrader 4 / MetaTrader 5 Trading Signals is a service allowing traders to copy trading operations of a Signals Provider. Our goal was to develop the new massively used service protecting...
Hi, I have a problem with my EA. When I run tester in MT4, EA place TP/SL properly TP (100 pips) and SL ( 50pips) but when i try to run my EA on demo acc with same setting, it won´t open a possition due to the small TP/SL I think( if I made an order manually and place manually TP/SL with same...
HI AGAIN  I OPENED THE LINK https://www.mql4.com/ AND FOUND THERE ARE MORE STRATIGIES IN FOREX MARKET AS PIC ATTACHED       ARE  THEM WHAT CALLED AUTO TRADING IS IT SAFE TO AUTO TRADE???   REGARDS 
Anytime you release changes that require developers to redo virtually every file in their MT4 library, it really makes me wonder. You didn't get enough of a clue when many people refused to migrate to MT5? Developers like things to remain the same; they like existing/working code to stay that way....
Hi, everyone.     I'm almost new to mql4 programming but I have been around programming some time in other languajes. I'm trying to code an EA that runs at once several Strategies but I found a problem when coding, as all Strategies use the same program but may have different parameters, when I...
Ok I am a little confused and thought I understood some of this. These are my assumptions Assumption one: The dealing desk / stp/ whom ever has about 2880 bars or some thing close to that and it is time stamped to dealing desk time.   Proof of concept  : I came to this conclusion though Spot...
Hi. I wonder if you can change the symbol in a single execution of the script. I have a script that analyzes various candles symbol of the window where I throw it, and I would like, in the same execution, change the symbol and also analyze candles of the new symbol. All this is to not have to go...
When coding within a void? If i use the code:      OrderClose(MyTicket, OrderLots(), OrderClosePrice(), 3, Blue); On compilation I get a warning "return value of 'OrderClose' should be checked" If i use the code:      if (!OrderClose(MyTicket, OrderLots(), OrderClosePrice(), 3, Blue)) return(-1); On...
Can someone please share code to change profiles in MT4 via an EA?
I have an indicator that draws lines using a buffer and continues to draw lines until price blocks it then it stops drawing, but I would like to select the line when price touches the drawn lines so that I can delete it or keep based on why I need the line. what would be the best way to do that?...
If I offer an EA or Indicator, how can it be programmed to only work for a certain broker. I am looking at creating an application for a broker.
  grabweb (3)
Hi,  This is 2 weeks I am encountering a problem using grabweb for downloading calendar data. In fact, it is running OK (I checked all return coded) but it download the page from 2 weeks ago. This is a very recent problem as this functionality is running for months with no problem. It's like...
Anyone can help me? here is a very simple EA.It should open a sell order when the difference between two consecutive ticks is bigger than 10 point.the second tick must be minor than the first. the compiler don't give me any errors but when I run it on the tester it doesn't give me any result.the EA...
I modified an indicator to add email alerts. However, when the alert is triggered, it sends me repeated messages. How do I modify the code so that the alert is sent to my phone once? Here is the code: #property indicator_separate_window#property indicator_minimum 0#property indicator_maximum...