Download MetaTrader 5

MQL4 and MetaTrader 4 - page 392

To post a new topic, please log in or register
have a stupid question. Why this is working: double price = 0.2;ObjectCreate("line",OBJ_HLINE,0,0, price); but something like that is not: double price = 2/10;ObjectCreate("line",OBJ_HLINE,0,0, price); or double tmp = 2;double price = tmp / 10;ObjectCreate("line",OBJ_HLINE,0,0, price); ? Is there...
Hi If i have many EA:s running and i by mistake type in the same magic number on two EA:s, is it possible to code EA so it detects that another EA has the same magicnumber and then shut down EA.?
Hello! I use mobile metatrader 4 on android and have two question. Is possible to add options for move stop loss or take profit graphic like on PC? On PC you can grab line stop loss and move up or down and this is very useful. Another thing, when you insert stop loss or take profit it would be great...
Hi I am very new to this, so please forgive me for asking what may be a simple question! I have been reading tutorials on MT4 and placing orders, I am trying to work out how I can possibly set an order and save it to use again. For example, a pending BUY STOP LIMIT above market price, with a 20 pip...
Hi, sorry my stupid question but.... I don't see error. I have csv file: 1,2 3,4 5,6 and here is code for reading data to array arMM[][], but not works correct :-( void Read_MM_from_File(){ int rows;  double arMM[][2];  string File_MM = "test1.csv";  int handle=FileOpen(File_MM,FILE_CSV|FILE_READ...
of course except that i create a new blank EA and copy the previous EA on this new one. Thanks a lot.
How do Mean ? https://www.mql5.com/en/charts/1027526/xauusd-h1-destekfx
Hey guys, here's my situation. I have an EA that I use for alerting me of changes on an indicator via the iCustom function. I have another script that does an HTTP request to my server. Both seem to work right on their own. But once I try to combine them, things get wack. The script is below. I...
Hi, I am having trouble on get the smiley face. I am getting 'J'. It seems this has been a problem, but I have not found the solution. Can somebody help me? Ron
I appreciate this has been briefly touched upon in the past but I wanted to bring it up again as I am forward testing my EA with a small live account. All the position sizing's with the currency pairs are correct. Because my account is denominated in GBP the minimum tick sizing is larger to that of...
This morning when I checked the operation of an EA running on a laptop computer, I found that MetaTrader was closed. I don't mean that a trade was closed; I mean the MetaTrader software was closed, as though the computer had re-booted. However, the computer had remained on all night, as there was no...
Hi, I am trying to do the following: Loop through open trades. For each open trade in loop: Check profit amount of each open trade for previous candle closeCheck profit amount of each open trade for current candle close (i.e. profit amount at current market value)If profit amount of candle close[0]...
Hello, My EA would require that once a trade is initiated, it follows some specific exit rules for the 5 next bars... After that, if the trades is not exited, there is a trailing stop. My problem is that you may have 2 or 3 orders open during those 5 next bars (one at each bar)... Each order should...
Tradeing Trader
Hello, i have a EA with wich i can change the takeprofit and stoploss from chart using horizontal lines, but the mt4 order mask always open when i click on the takeprofit and stoploss, can i change the settings that this dont happen any more?
Hi folks, I'm quite new to the fx world and I'm try to learn and experience as much as possible. I developed a set of EA which I backtested (I used Alpari data) and optimized for several pairs. The results of these simulation are quite good but, from a pure mathematic point of view, how accurate and...
Hi Everyone, I have created a list of 100 different condition based on the value of MT4 (built in) indicator. I want to create a custom indicator with only 1 buffer that include these 100 conditions above. Before doing so, I wonder if there is any limit on the number of condition I can include in a...
Hello, I have a problem and can't find solution with my expert adwisor. Maybe because I'am absolutely green in programing and it is first programing project in my life :) The problem is, that last operator in code always is TRUE. I'am talking about this: " if(SL!=Sup-0.0005||TP!=Res+0.0005) ". Why...
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...
1...385386387388389390391392393394395396397398399...1244