Download MetaTrader 5

MQL4 and MetaTrader 4 - page 775

To post a new topic, please log in or register
Hello, I`m getting this nasty error 130, I've triple checked that I`m normalizing everything for my Stop loss, I really don`t see where it's coming from : 2011.01.30 14:45:57 2010.12.17 23:59 EA_v01 AUDUSD,H4: OrderSend error 130 double size; size = 0.01; entry = NormalizeDouble(High[1],Digits)+...
is there an object set cmd to select a lable in mql4?want the ea to enable it so I can modify it without having to double click firstthanks
Hello, Sorry about the noob question, I've got an EA that seems to be trading more that it should (ie: more than once per bar) . What's the best way to ensure that you are only trading once per bar ? cheers,
Hi Im working on My EA to something like Copier,Not exact the same any one had any idea how to detect changes to order?Like opening new order,Modify Orders,Closing (Partial Closing),... How to detect Changes in Orders?
Hi, i added the feature of multiplier in my expert, that is if the last trade is negative then the ea will open the new trade with double the lot that was opened in the previous trade. My Problem is that the multiplyer doesnt mutliply in a correct way, i think it just generates a number higher than...
Hi, I'm new to MT4 and looking for an advice or developer assistance to accomplish the following: I have a custom application I would like to give control over MT4 terminal without use of any third party libs, the only features I need to interface from MT4 are: - GetAccountInfo (spread, balance,...
I tried to get correct signals from calling BBands stop indicator on offline charts but it keeps saying sell, sell, and sell all days. Can you help solve it? extern int StopLoss=0; extern int TakeProfit=0; extern double Lots=1; extern int Slippage=3; extern int Length=5; // Bollinger Bands Period...
Hi All how to do it in EA to open position when bar open and close position when bar close? Thanks
i like looking at the charts with and without EMA lines..... so I have 2 templates for the same pair, for example, USD/JPY with and without the EMAs... however, support & resistance lines are also part of the templates.... how do we save a template without s/r lines because, as you all know, we...
hi! when you use extern variables, its often to input a number or to set a bool true or false. in my case, id prefer to let the user choose between some options, like a menu. so i would like to define the different possibilities he'll be able to choose, like a string that allows only 3 possibilities...
hi Guys, I'd like to build and EA that opens/closes positions based on an app external to mt4 like ms excel. is there a way that I can use VB to change the values in a global variable? Has anyone tried this? I'd appreciate your comments/ideas/suggestions =) Thanks!
Hello. where can I download historical data for mt4? (In the historical center appear only, in the case of EURUSD, from 18 to 27 January 2011). Can you help me? thanks trader201
Is there a way to import CSV data into MT4? Specifically, I have a lot of COT Report data in a spreadsheet. I'm interested in plotting the Commercial Net Position data in an indicator window. Can anyone give some guidance on how to properly format the data in Excel and then how to import it into...
Hello,I am still beginner on forex trading. I currently trade manually with some indicators on 15mins MT4. I seek someone developer who can help reflecting my manual trade on MT4 auto trade. I don't like sitting in front of pc screen for so long just for enter/exit exact timing the signal flashes. I...
Dears, Here I encounter a problem when I want to call the color out of my custom indicator. For example, I have a trendline in changing color. Green means uptrend and Red meand downtrend. When the color changes from red to green, place buy and vice versa. The question is how to call the color or...
  Time EA (6)
Hello Friends !!!!!!!!!!!!! Exists a time EA, with random entries ?? I want to say that if you open a trade, this trade will be closed after a period of time ?? Really thanks for your answers...
The MT4 terminal says that this IS the support site for the MT4 client as well. I'm well aware that this is primarily a MQL4 programming site. So if this is not also the MT4 client support as indicated in the Help section of the MT4 client (the link brings me here), where is it ? The subject says...
I have written the following piece of code to show momentum of MA of price as an indicator on the chart. But nothing shows up. whats wrong with the code? //+------------------------------------------------------------------+ //| Acc.mq4 | //|...
So this code sends a mail message whenever an order is entered or deleted or closed. But, it also sends redundant messages whenever the MT4 trading platform is started up as it re-assesses the recently brought up state of the orders. Does anyone know how to fix this? (I was thinking along the lines...
I have been running MT4 on my laptop for several months. All of a sudden the terminal window won't appear? i have tried re-booting and several different profiles, no go. Any ideas will be greatly appreciated! Thanks, Steve
I want to modify my order in som script and I wonder how to actually get profit in points instead of dollars I want to know what is the simplest way to do this. OrderProfit()*Point or in both sell/buy case use OrderOpenPrice()-OrderPrice() OrderPrice()-OrderOpenPrice() please help me out
Hi, I’m running some back test in 15 minutes chart, but I can only go back to 2009. I need more data than that to see how my model would behave in a very bear market, like 2008. Where I can get more data in good quality? I can buy it if necessary! Any idea? Thanks
hi am traying to make a rectangle using object creat this is my code ObjectCreate("rectanglename", OBJ_RECTANGLE, 0,Time[x],High[x],Time[x]+period()*60,Low[x] ); if the first time point of the rectangle is a timedate   D'2010.10.08 00:00' i want the second time point of the rectangle to be after 100...
Im trying to read data from a .csv file. The file in is the following format: ex. 124124; 1241.21 12241; 131.1 3113; 1213.0 3123; 31.12 ...basically 'n' lines of semicolon delimited values. The left column has all int's while the right has all doubles I am using the following code to read it:...
When a pending order is executed and then closed out at a loss, I need the EA to re-entry the order. I have tried various ways of getting this done with no success. Is it not possible? It seems fairly simple.. can anyone help??
Hi, I'm trying to figure out how to see my projections on MT4 outside of immediate data. Yes, you can zoom out and assuming you're not a high or low point, get information on projections in a very inaccurate way, but I'm trying to scroll to parts of the charts that may or may not have data at the...
  Help with EA (1)
Hello everyone, Wondering if some of you guru's can help me out.... I've created an ea with an online builder, and when I just add variables, buy & sell info, the ea works fine. But once I add in any StopLoss, TakeProfit, or TrailingStop info, the ea compiles OK but will not work. I mean nothing...
Hello. Can someone please tell me how to change this code so nothing shows up on the chart. I made a couple of changes already so the lines do not show up anymore. But the little arrows show up the chart. and I'm not sure what to change. Thank you. if (mgrid>=gridspace/2) { for (int...
I would like a function I can add to my EA (any of them) that I can use to test indicator language. For example, if I have an indicator that triggers, (MACD cross over) I would like to call the Arrow Function and have the arrow printed on the chart on that bar. I'm really new at Forex (couple...