MQL4 and MetaTrader 4 - page 577

To post a new topic, please log in or register
New article Raise Your Linear Trading Systems to the Power has been published: Today's article shows intermediate MQL5 programmers how they can get more profit from their linear trading systems (Fixed Lot) by easily implementing the so-called technique of exponentiation. This is because the...
Hi, Background I'm a C# developer, working for my employer to build an Excel Add-in having MT4 functionalities. As a first step I've implemented most of the trading functions and some other important ones, as Excel UDFs and now I can do the trading stuff by using these functions from Excel. Now as a...
Has anyone seen any expert advisors that will trade the 127 Fibonacci or know how to build one.
what wrong with it? when i have play an order it aways auto close. i can,t do any order. mt5 is good but it have not fxpro server. how made it to be do an order?
Hello and sorry for bother if there is already same problem. I am trying to call from my EA indicator via iCustom() Indicator code is that #property indicator_separate_window#property...
Is it possible to code an EA that allows the user to enter the name and parameters of a custom indicator so that they can be passed to iCustom() ? I have tried to figure out a way to do this and I have hit the wall, how to get the parameters into iCustom without knowing how many there will be or...
start time=0130 server time stop lose=20 take profit=25 close time=1630 server time
If I have a running EA and shut down MetaTrader when I restart MetaTrader the EA begins running again automatically. I can see why this would be normal behaviour but in case market conditions have changed since closing MetaTrader I want to block the automatic start and have a chance to decide to run...
FxAutomatedcom
What causes stack overflow error in mql4 during compiling? Im suspecting using a function to create objects. Below is the function that has been called over a hundred times to create objects. int ObCreate(string ObName,double Xdist,double Ydist,double Zoom) {    ObjectCreate(ObName, OBJ_LABEL, 0, 0,...
  The new MT4 (10)
What will be the important differences between MT4 and MT5 after "The Big CHANGE"
Hi, been testing and tweaking my new EA all day but I've run into a snag - The strategy tester now gets through about 1/5 of the way through the data and then returns the results without finishing the test. If I put it in visual mode, the price sometimes just hovers in the same spot changing by only...
  uninstall (1)
Hi! I'm having problems uninstalling MetaTrader 4. Kept having problems with it and installed a new version. Can someone help with uninstalling the old one? Thanks, Chrissy
hello, can anyone help code an indicator for me? I need an indicator that measures pips from the close of a previous candle (reference) to current price (bid), and displays the count boldly on the chart as well. I need this to quickly gauge current price from previously closed price while spike...
Hello Everyone, I am writing a long IF with many OR. My way of writing right now is that: IF ( condition A1&&condition A2 || condition B1&&condition B2.......) {sell[i]=1} Is there any way to separate condition A set and condition B set into 2 IF like: IF (condition A1&&condition A2) {sell[i]=1}...
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
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...