MQL4 and MetaTrader 4 - page 682

hello everyone, I'm working on an ExpertAdvisor to Alert me if some special case appears on the chart and I tried the functions Print, Alert, SendNotification, but non of them works.       I'm fully aware that these 3 functions are not equivalent. Alert gives an Alert in a separate window. Print...
New article Bi-Directional Trading and Hedging of Positions in MetaTrader 5 Using the HedgeTerminal Panel, Part 1 has been published at mql5.com: This article describes a new approach to hedging of positions and draws the line in the debates between users of MetaTrader 4 and MetaTrader 5 about this...
Hello Dear Community, does somebody know how Ican solve the problem with the "Locking" of the Cbutton? I havecreated a CButton on a chart with the following code. I would like to havea button which youcan press, but the button should not have two states (like it is actually inmy code, the button has...
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...
[Deleted]
  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...
[Deleted]
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...
[Deleted]
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
[Deleted]
  The professional seat of the trader  (156   1 2 3 4 5 ... 15 16)
Recently, the website of a little-known dealer, whose name begins with the letter "A", held a "Trader's Workplace Photo" contest http://www.alpari-life.ru/content/news/924/ http://www.alpari-life.ru/content/news/936/ In fact, why not give a couple of photos of PROFI's approach to their workplace
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    
[Deleted]
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...
[Deleted]
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...
[Deleted]
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....
[Deleted]
 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   
[Deleted]
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 
[Deleted]
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.