Download MetaTrader 5

MQL4 and MetaTrader 4 - page 622

To post a new topic, please log in or register
Hi, I have an interbank account /ECN with activtrades. In my backtest the EA works fine, all orders open correctly and S/L und T/P works well. But in live trading, the EA did not open a trade (live trading is activ and smily also ), can you help me? Here is my EA coding part for open the order:...
forexparvenu
http://postimage.org/image/3n39c6jrj/full/ i had setup tp sl in coding, but it didnt show out on mt4 platform.. please some expert show me the direction.
Dear Community, how can I change automaticaly the text object color in the same color as the line? I have in my code the folowing lines: #property indicator_color1 Green#property indicator_color2 Red#property indicator_color3 Blue#property indicator_color4 LawnGreen      #property indicator_color5...
Hey guys first post so hello to everyone. Long time lurker. Been trying to code my EA to place buystop and sellstop either side of the pivot when the price crosses it. However it occasionally gets stuck in a loop at R2 not every-time though. Saying Ordersend Error 130. As a sample the values it...
I opened this topic because I'm searching for a list of different font types To display text with Objectsettext on Chart Who knows where I can find such a list with font types like "Verdana", "Arial",.....
  QFF-MACD Code (4)
Hi Does anyone know where I can get the code for QFF-MACD? Thanks Keith
Hi can anybody program very simple EA for me. I am ready to pay for it. There aren't indicators only simple algorithm. regards, Anna
Attached mql4 code, please convert to mql5 code, regards: -------------------------...
Would anyone like to put heads together and do some idea sharing? Happy to do a "peer review" of any code in exchange for the same. I have made some fairly good progress recently. My latest strat test can be seen at: http://www.vortexconsultingonline.com/strat-tests/StrategyTester1508.htm
How to get the EA to choose between two randomly selecting choices with certain probability. Example: I want EA "to decide" whether or not to open a new order with the following probability: 70% opens a new order against 30% likely not to open a new order? Of course "decision" is not static, but...
Hello experts I am trying to built an EA and on it I want to draw vertical and horizontal line. For easiness to change line characteristics in future, I am defining lines characteristics as variables at the begining of my code like this // Variables to handle order previous opened by EA string...
I would like to know if it is possible to run a script i have already made through a expert advisor and for it to not execute over and over but just once. If there is already a forum on this please point me in the direction Thanks everyone
New article Application of the Eigen-Coordinates Method to Structural Analysis of Nonextensive Statistical Distributions is published at mql5.com: The major problem of applied statistics is the problem of accepting statistical hypotheses. It was long considered impossible to be solved. The situation...
Here is the details of my new EA for 5 mins chart GBPUSD pair from 2012.06.26 11:20 to 2012.08.10 23:59 (2012.01.01 - 2012.08.13) https://www.box.com/s/b70328bddfd3ef8dc9ca please give comments. Thank you.
hello, try to know the price of the last active order. For example if I have three buy orders active, only know the price of the first buy order entered, not the last, the function I use is: double retorno_precio_apertura(int NMagb) { double resultprecioultimaorden; RefreshRates(); if(...
Hi together, is there anybody who can help me regarding the mentioned "problem" below... After open 2 market orders (1 buy & 1 sell order as hedged position) I'd like to check if one of the orders in profit and open a new position in the same direction as the order which is in profit. Currently my...
I drag and drop my EA onto M30 timeframe in main window 0. This window has also timeframes H4 H1 M15 M5 opened (tabs on the bottom). EA can draw Trendline in M30: But when I try to draw Trendline in other timeframe like M15 M5, they are not visible there (after I click proper tab)....
Good morning, I wanted to do a consultation to see if anyone can help me. Can a simple subtraction when iTime obtained?, Eg I want to subtract 15 minutes to the value obtained with time_EURUSD_M15 = iTime (Symbol (), PERIOD_M15, i); or I want to subtract 30 minutes to the value obtained with...
Hi Guys, I have trouble with SL and TP. Anyone any ideas? It works well when SL=0; Backtest also works, but when I go live I get Error 130!!! thanks, Sebastian //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  extern int      Magic=...
I have been looking for something like BarsSince (or Bars Since) we find in other platforms but didnt found what I was looking for (maybe Im not good in searching). So I decided to do it on my own and share it here just in case others are in the same situation like I was yesterday. It is a very...
Hi, I have the following problem: I use template from here: https://www.mql5.com/en/articles/1514 Function PrepareTicketsToClose makes an array of orders to close, but I have an additional variable NET_LOTS, which tracks the number of orders in the terminal. What I want, but do not know how to do is...
I have an EA which opens a big number of trades (it uses a system similar to grid trading), so when backtesting it, I often get error 148 (ERR_TRADE_TOO_MANY_ORDERS). To avoid this problem, I ask you: is there a MQL4 function that returns the maximum number of open trades, so that I can code this...
CAN I GET BACK TO WORK NOW?WITHOUT HAVING MR WHROEDER CALLING ME A TROLL?CUZ IF I CANT, I DONT MIND, I HAVE A COUPLE OF YEARS TO KILL..IT IS YOUR CALL..I WAS NICE AND PLEASANT WHEN I ARRIVED HERE.AND YOU ALL PHKD WITH ME.NO DICE MTHRPHKRS.I DONT LAY DOWN FOR NO PHKNG BUDDY.GET IT?GET READY TO RUMBLE...
If anyone wants to give this a go i will upload the indicator for you to code. This has strong potential and with a touch of martingale it could be even better. Had good performance on demo. I tried to make this on Molanis but you cant add custom indicators
In the EAs I Have been working on recently I have been working witht several timeframes, using iHigh(), iLow(), etc, extensively throughout my code. I noticed that my EAs were running slowly in the Strategy Tester compared to the first EAs I wrote. So I started wondering why, I did a little test...
Could some one help me finding this error of Unbalanced left parenthesis.... i tried myself all combinations but it never solves.... and also an advise if all the cases are properly written .... i tried to write the 4 ma crosses and cci above 100 or -100 to buy and sell ... Thanks in advance!...
To trade at better price, I need to save trade information in a string and execute the trade when market reaches a better price. This works without problem until someday when I add variables to some point - it seems the EA has reached a limit. This is especially about some string variables that save...
I have a retail manual trading system that has numerous (custom) indicator modules to it. It has one 'masterindicator' that uses other indicators and generates trading signals and paints these as Objects on thechart and generates alerts if I have them turned on. The problem is that it oftengenerates...
Hi All I run MT on a server in a different country and access my accounts via remote desktop. However, I also want to access my account directly from my laptop when comms to the server are not functioning at their best. Currently I do this by logging into my MT account using my main (not View)...
Hi, I did search forums and was able to write this code. But I am stuck here. I require a script/indicator something that would write to a file when a new bar is created in all time frame. Can somebody help me improve this code please #import "kernel32.dll" int _lclose (int); int _lopen...