Download MetaTrader 5

MQL4 and MetaTrader 4 - page 235

To post a new topic, please log in or register
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...
hi, i am trying to test about simple one.   my chart is EURUSD now, in my ea, Comment("EURUSD Bid : ",Bid,"  EURUSD Ask : ",Ask) so i can get Bid, Ask value,   how to make this one in EURUSD chart.... Comment("Bid : USDCHF",I dont know how to ??,"  USDCHF : ",I dont know how to ??);    too...
hi,  I make few E.A.  and upload my private site   i made this ea for fxpro. i dont know its woriking or not others.... i dont want my ea make error others system.  so i wana some coding .... for just fxpro..   is it possible ?   help me, plz ~    
Hello, I changed a code for a best display : continuous thick line and color change when changing direction. But when rendering , you can see the holes in the plot lines as seen from the attached chart. I can't find the solution.  The code :...
Hi guys ! I am currently backtesting an EA and I have a problem with the quantity of trades . I can't seem to find a solution to that, anyone who know what it is ? :) (SAME parameters, SAME product) ¨:  backtest for month of february (20 days)  : 23 trades.   Backtest for only february 18th (ONE...
Dear Sir/Madam,   When I try to modify one digit of order Price or Take Profit,  then the whole number change. Please refer to the following screen.   Also please refer to my suggestions       https://forum.mql4.com/66879.   Regards Dolemi   
I want to create a button from button.mqh with text in 2 lines but the \n is ignored in myButton.Text("Line \nNew Line");
Hi guys , Please i need help with contents for my Heiken Ashi candles EA . I have the functions below,   HA1=iCustom(Symbol(),0,"Heiken Ashi",1,i);  HA2=iCustom(Symbol(),0,"Heiken Ashi",2,i);  HA3=iCustom(Symbol(),0,"Heiken Ashi",3,i);  HA4=iCustom(Symbol(),0,"Heiken Ashi",4,i);  I want to know the...
Is there a way to get the start date of the fxt-tester-file? If I start a backtest I see in the journal:  2015.02.22 21:02:00.775 TestGenerator: symbol EURUSD period 1 model 0 from 2011.11.06 to 2015.02.06 Is there a way to check in OnInit() whether the start-date of the EA (Time[0]) is too close to...