Download MetaTrader 5

MQL4 and MetaTrader 4 - page 433

To post a new topic, please log in or register
Hey, I believe that all the issues are related so I've grouped them into one post. First of all, I've noticed that if on a machine that MT4 didn't run for a while, when I start it I might get some gaps in the history. When I press the download button the history slightly changes and some other gaps...
Hi, I'm looking for an MT4 broker that offers raw spreads. Can anybody advise?
mon EA est semi automatique et je souhaite le rendre automatique je souhaite que quand il s'enclenche exemple a 11h il prenne automatiquement buy stop et sell stop par rapport high low de la bougie précédente soit celle de 10h pouvez vous m'aider merci
Hello everybody, i have a real problem which is blocking the progression of my EA.In the following part of code, i'm trying to develop an EA, which increment the lot losses and when the first win come , these losses will be the amount of the next trade  but it seems there is a probleme with the...
Dear all, May I know where to see the order's magic number? I use the following script to send an order with a magic number. The order was submitted successfully. But I cannot find the magic number...Many thanks for your time and consideration. Your sincerely, taozemin. #define...
Hello, I have installed MT4 from metaquotes.net and cannot create an account. When I launch the program, it opens and the pop up "Open an Account" window comes up immediately, with my wife's information already entered into the fields as she traded from this PC previously. However, after filling...
Hi on all the indicators i m creating i m using a while loop (below). Lately i came across on this debate on this thread Contradictory information on IndicatorCounted() - MQL4 forum (thanks to WHRoeder for pointing that to me) so questions arise. My code looks like this extern int history=300;.......
Hi just another question, Lets say i have an EA with. extern double  Take_Profit               = 10; extern string  Friday_Close_Time         = "19:30";extern bool    Auto_Lot                  = false;extern int     Max_Orders                = 1; And i change this to not extern, becuase i dont want...
Just found exceeding the data type max and min values doesn't trigger any kind of error message... just silently wraps around :/ e.g. int a = 2147483647;int b = a+1;  //b is -2147483648 !? Are there are any simple ways of safeguarding against this?
Hi, Can anyone help me with the following; I've created a function to search and find the oldest open trade and the output is the ticket number, it works fine....but int FindOlderTrade() { int older_time; int ticket; for (int tomate = OrdersTotal() - 1; tomate >= 0; tomate--) {...
Hi, I want to include the indicator to ea. The logic is: if price close above the red line then op buy and if price close below the green line op sell. Can anybody help me..? Sorry about my english.
Hi everybody! I see there are a couple of tick collectors out there. But before I try which one is ok, I don't see any of them telling how to playback the ticks in Tester, which is supposed to be the primary objective of collecting the ticks. Most collectors save ticks in csv file but Tester is...
i wrote this small EA to modify orders. everytime i launch it, the error "invalid ticket for ordermodify" pops up. can someone please guide me where am i going wrong. :( i am really not able to understand how to use the order select function. any insight would be helpful :) extern int PipSL...
How to visualize volatility? I have gotten information about volatility stop. But, Is there any way of getting volatility as a chart form?
When I'm on an H4 chart, how do I determine when the bar has closed on a D1 chart? Thanks in advance, E
Hi How do i get the OrderOpenprice (), when backtesting. I have tried with this double open = OrderOpenPrice(); And it gives me right price sometimes but not always?
I'm using scripts and also a template with several indicators in MT4. If i want to use them in MT5 do they have to be re-written in MQL5?
Hi, I used simple code to write the ticks to file and found that indicators wrote more ticks than the same code in an EA. I used two EURUSD M1 charts in the same instance of MT4. I swapped the charts and got the same results Here is the results from indicator next to EA: And here is an indicator...
Hi, how could it be, that Volume[0] returns the value 38 pips but the difference between High[0] and Low[0] ist 43 pips. How could this be?
  Order modify (3)
if( dir == LONG ) {                  if ( OrderModify(ticket, 0, OrderOpenPrice()-sl, OrderOpenPrice()+tp, 0) ) {                      Print("OpenTrade: SL/TP are set...
How many ways to create object of a class in Java?
I have one ea in which logic is to exit trade if opposite signal come. but I want to now open buy and sell order at a time what changes I need to do       // Exit any trades in opposite direction.      //---------------------------------------         if (bullish)         ExitAll(SHORT);...
Hi I ve got three indicator. indA, indB and indC. The code following is what i m using in all of the three indicators. The key point is that they look back up to a N amounts of bars specified in the extern history variable. extern int history=300;.....start(){...    counted_bars =...
Hello Folks, I've recently created a simple EA which works in the 30min timeframe. Goal of this EA is to set a buylimit order each time a new Candlestick is generated. The limit order is set 30 pips above the open price, a stop loss is set at the open price. If the limit order is not triggered it...
Hi How to get a list of the trades with investor password programatically. From which host what are the API documentation part, code sample? One example it is the Forexfactory Trade Explorer. For sure it is possible, but I have no idea how.
I was using the libmysql.dll to read and write to a mysql db. However when fetching the rows sometimes returns empty rows althought the data is set correctly in the db. We (other programmer and me) tested it through and throught with the same data in all rows but this method seems to be instable for...
Hi, I'm not a programmer, and was wondering if there is code someplace that I can add to my mq4 file for an indicator. I have other mtf indicators, and like seeing higher timeframes on current timeframe. Can someone let me know if this is standard code that I could add myself? Could I provide a...
Hello i´m new in trading with MT4, i have change my broker to ECN. My previously broker havent Lot´s and the calculation is a little complicated, i miss a lot of trades coz i calculate to slow my risk value. What i´m looking for is an tool with this i can input my balance and how many % i will risk,...
forexparvenu
https://www.mql5.com/en/code/10650 plzz help...
I have a 2D array which I print to check on values: double array [][2];ArrayResize(array,count);for(i=0;i<count;i++)  for(j=0;j<2;j++)  Print(array[i,j]); the output looks like this: Can anybody please let me know if it is possible to get the array values to print side by side? thanks