Download MetaTrader 5

MQL4 and MetaTrader 4 - page 787

To post a new topic, please log in or register
Consider the following: if ( t2>0 && (t2>t1 || t2>t3) ) l=5; I have seen this statement return true when t2<0. It seems to me this should be impossible, unless MT4 is disregarding the parenthesis altoghether. This really shakes a fundamental assumption i had made about mql4. Does anyone know how...
Hallo, I have a challenge. I need a solution for the import of few numbers generating about an extern program which works on a ftp-server. How can I read in this numbers in my ea? Many thanks!
This has to be a repost as I've not solved it yet I have tried this code, but I don't know what to do to get it to work void killTrade(int pips, int ticket) { double price = NormalizeDouble(OrderOpenPrice(),Digits); bool reopen = 0; if(OrderSelect(ticket, SELECT_BY_TICKET)==true) { if(pips <=...
I wonder the code for changing the s/l continuously or t/p of an open position by the EA.... How to change it and I want the s/l to follow open trade by differing in 3 pips but that should start when the trade is in profit zone. and where I should include this set of code in the mql4? Please help...
First I try to delete pending order with magic number=1 using this: OrderDelete(OrderMagicNumber()== 1 ); Doesn't work! But somebody tell me that this is boolean expression. //by the way thanks brewmanz So i think about: int OMN= OrderMagicNumber; for ( OMN= 1 ) {...
Please give me a prompt if you know why this isn't runs when I add it as a strategy in my panel. I want it to check if any order is on the market. If not it should send pending orders. I think that the problem is in form or coding. int start() { double ABUY=0;double ASELL=0;double BBUY=0;double...
Hope one of the computer savvy forum members might help me with this. I want to upgrade an old laptop to something (a desk top PC) that I can run multiple EA's and versions of MetaTrader 4 on. I have 2 questions: 1. Is it more effective to run multiple EA's (all within one version of metatrader but...
Dear Sir I have a question I use technique scalping. Due to this it use order instant and pending order. And every order has in set TP that distinctive. I want close all post just now when has attained either TP. and the closure to pair that only. can master help me Thank You
hello, I am looking for a good mt 4 range bar indicator or script for free or ? one that : draws candles, not renko bricks. works well in real time can have all standard and custom indicators applied onto it can have the border and body colors modified does not crash or bog down can be modified...
I am having a hard time trying to create a custom indicator by using math functions. I am trying to create a simple indicator that charts the median (H+L/2) price for each time period and then graph the line. I can not find any examples of indicators that does this simple function or any other...
Can the MT4 Multi Terminal be used to control two or more accounts with two or more Brokers? Thanks in advance
I keep getting this error from my MT4 terminal saying I have entered an "invalid Serial". I use Oanda as my broker and the expert Im using has worked fine on other accounts. Any suggestions?
Hi All, I'm trying to develop my own indicator (MyIndicator) by using the iCustom function to read three values from a third-party custom indicator. Originally I was trying to calculate a value for MyIndicator for all bars in the sample window (GBPUSD Daily ~65K bars). But each time I ran...
Hi guys. Logged in now and my account history is just missing? Has this happened to any of you and if so what is the fix. thanks,
'Gday Amigos Anyone know if MT4 has a problem with Vista Ultimate 64 bit? Or anyone happy using MT4 on Vista 64 bit ? Thanks alot. M
Hi, i'm looking somebody who knows how close open order on the level that was opened. If oder had been opened on price level 1.4321 than i want now close it on the same level. Anybody knows how to do it? thanks for any prompts:)
I have tried this code, but I dont know what to do to get it to work void killTrade(int pips, int ticket) { double price = NormalizeDouble(OrderOpenPrice(),Digits); bool reopen = 0; if(OrderSelect(ticket, SELECT_BY_TICKET)==true) { if(pips <= -1*getMaxLoss()) {...
I have found a custom indicator in the 'Book' section. It is listed as "roc.mq4 (Priliv)". I assume that this is available to buy but how do I contact the author? Also, once downlaoded, how do I had it to the MT4 'Custome Indicator' file? Hope this makes sense, Gordon.
this is my sample EA, how can i change it to having hedge trade? because now it can not trade in hedge position, and i have change it to AU server (not US server that prohibit hedge). can any one help me? my email is nomis3@ymail.com Thank you. Sample 001 #property copyright "nomis" #property...
Hi I would appreciate it very much if somebody with programming skills could help me improve a little the attached MACD signal. The idea is that it gives me sound alerts, but I would like also to get a message window stating the currency and time frame where the cross ocured, like in second attached...
Not sure if this is the correct forum to ask this on, but if anyone has had a similar error, I would certainly appreciate some help. I have had MetaTrader4 installed on my PC for several years, haven't traded for about two years and went to open the platform up last week. After clicking the icon I...
I think I'm totally stuck here. As I read from the docs, start() is called for each tick that has arrived. And then, and only then it seems I can submit my order. But what if I need to submit an order at the time the last candle finishes? Let's say it finishes at 17:59:59. The last tick before came...
Busco a alguien que sepa programar experts para forex, para que me haga mi estrategia. Es muy sencilla seguro que no será mucho trabajo. A quien le interese por favor contacten conmigo a palazon_94@hotmail.es poner en el asunto "robot forex".
Hi, Can someone give me the code to work out the high and low between the time period 00:00 hrs and 07:00 hrs. Many thanks, Goatee
I would like to conact a good MT4 EA programmer to develop systems. Please contact: v.estret@terra.es
Anyone have code to get the metatrader icon in the Windows status bar to flash? I think you need FlashWindowEx but there's a fair bit to it, so if someone's already done this in MQL4 it would be a great help if I could have the code! Thanks.
  ERROR 4108 (5)
Hey everybody Using ea i need to delete a pending order sellstop type. i use simple technique : first ordeselect and then oderdelete, nost of the imes i recieve error 4108 invalid ticket though it the orderselcet locates the order. my question : who can explain that mishap and how can i overcome...
Hi, My EA trades 10 pairs simultaneously, I have all 10 charts open and run the expert on the first chart. It checks the values of all 10 pairs during every pass through start(), but i noticed that it frequently misses entry and exit points when the price only barely touches a value (only for the...
Fellow collegues,, I am in search of a trading system which is having attractive look, best predictions, and with detail plane of action. Can any body help me by sendind an e-MAIL ON JANAKINAMDAR@GMAIL,COM.? 2 .I am also searching an indicator/ set of indicators which can predict the trand in...
Ok, so i thought that when your EA places a trade, it is shown on the chart with an opening and closing arrow as long as you specify a color on the ordersend or ordermodify commands (which I did). instead, it shows the opening arrow and two hashes for the TP and SL levels the last time they were...