MQL4 and MetaTrader 4 - page 1224

Hi everyone.I realy need a help with this. There is a lot of scripts that open buy and sell orders,with TP and SL,but a cannot find script that open SELL or BUY with account %. It must look like this:When you open BUY script window,you can write the % ot account that you will risk on that order...
[Deleted]
I am wondering if anyone can explain the proper way to take emailed recommendations and add them into the client. I am not sure if a script will work, or it needs to be an EA. Basically, we get our trade recommendations from our database either by email or web page. Right now I need to cut and paste...
[Deleted]
  DC with maximum speed of execution  (99   1 2 3 4 5 ... 9 10)
During news releases or strong market moves many brokerage companies have a very long delay in order opening plus the spreads are increasing. The question is: What brokerage company may be of your advice with maximal speed of order opening at strong market moves and preferably with fixed spread. If
Hi, this is the main part from my multi-timeframe indicator:    for(i=0,y=0;i<limit;i++)   {   if(Time[i]<TimeArray[y]) y++;     if(TimeHour(Time[i])== TimeHour(endzeit) && TimeMinute(Time[i])== TimeMinute(endzeit))       {   BerechnungZugelassen = TimeFrame/Period()*Repaint;    }           double...
[Deleted]
Hello, I try to write some code for a EA that allows me to nottake a position on a candle if an order has already been executed on thiscandle. Example (UT = 1 hour): 12:00 => Ea launches a purchase order 12:43 => The stop loss is hit 12:51 => Ea launches a new purchase order. It is this order that I...
[Deleted]
I am running the following lines in my EA. When i run the EA for the first iHigh(Symbol(), PERIOD_D1, i)- iLow(Symbol(), PERIOD_D1, i) does not seem to return anything. The value of averageDailyRange after the call is 0. Then after that it seems to work fine, it's only the first time that it fails....
I develop an EA that was running for around one week and then I removeit from chart and build up a new version, close to first one. The new versionhas different name and different ‘magic number’. But, somehow, the old version still sends orders by his own rules! Evenif is NOT attach to any chart!...
[Deleted]
This is what I would *like* to do: iCustom(NULL, PERIOD_TICKS, " StochasticsFast ", 14, 3, MODE_SIGNAL, 0) Problem is, there is no such thing as "PERIOD_TICKS". This is being called by an EA running on the hourly chart. Anyone know how, or have a indicator already made, where from an
Hi, I'm using a trading technique that is mainly based on a trailing stop. I'm wondering if anyone have a indicator. my method is, first I set 30 pip trailing stop for my order, once it's activated, trailing stop value changes to 50 pip. I've doing this manually for a long time and it bothers me a...
[Deleted]
I use this indcator that I downloaded from this site and msut say it is excellent. I was thinking of useful mod that would be a great help to the daily traders. Basically it shows on the top left hand side of the chart (comment area?) the amount of pips until the nearest pivot line. For example if...
  I can't decide...  (114   1 2 3 4 5 ... 11 12)
I don't know a thing about programming, I've never dealt with it before, I have a liberal arts education. I'm afraid to lose time studying MCL. And I'm scared to get into this stuff, but I really want to learn how to implement my own ideas, and when I open some code, I get scared. It's like a phobia
I am running the same EA on two charts and I have encountered this message a couple of times in the last week or two. This morning one instance was trying to place a buy order, the other a sell stop order. Each instance is using a different magic number and the program checks IsTradeAllowed prior...
Hi, Anybody knows how to create DLL for Meta Trader using Visual C++ Express Edition 2010 (free edition) ? And how to code the main OrderSend(), OrderModify() and OrderClose() functions on DLL and use external DLL file on Meta Trader 4 under Expert Advisor ? I need any tutorial or other help, please...
Hello I have read some threads but im not sure if my code can check properly order close by SL or TP: OrderSelect(HistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY); if(OrderSymbol()==Symbol()) { if(OrderClosePrice()==OrderStopLoss()) if (`sl`== OrderComment();...
hi, i have a script which sends a buy-order when dropping into the chart. it uses a simple money management and just needs the %-risk and the stoploss. my problem is that i want a window to appear when i drop the script into the chart and there i want to set the stoploss. at the moment i have many
[Deleted]
I would like anyone to educate me on how to take a portion of my profit for a trade that is in profit. what I mean is if I have a trade with 2 lots in profit and want to liquidate 1 lot and allow the remaining 1 lot freedom as the market moves. This is different from trailling with a certain number...
Hi, I want my E.A to stop if my equity ups a fixed percent comparing the initial balance. I coded my E.A but it can't compile. It has 2 errors. Please, help me to correct my EA. int init()        {                int InitialEquity = AccountEquity();                int Profit = InitialEquity * 10...
Hello, Does anyone know why there is a difference when I’m running an Expert without downloading History Data first? I get a totally difference results when I’m running it after I have downloaded the History Data. Thanks, Eyal.
[Deleted]
Hi guys, I learning do some simple EAs using EAbuilder website. Below is one of my sample. But the code is limited. Can anyone help to add on >>> "if price against X pips from entry, then execute an opposite trade for same lot same SL same TP??" Thanks for anyone who kindly reply this, Merry X;mas
MT4 226 Run on Linux Wine without any problems. But there is not good news after 229 upgrade, a message "A debugger has been found running in your system. Please, unload it from memory and restart your program" appearing. The same message appearing with MT5 in Linux Wine. The conclusion is MT4 is...
[Deleted]
  About ea setting  (1)
I have many .ex4 file. some of them allowe me to do live trade but some of them are not. why they are different? Thanks
[Deleted]
I want to find a sign,it is 60 point,no bend,could you give me some code ?
[Deleted]
I cannot find my recent posts with search...nothing since ~Oct 25. It's really a problem for linking to posts made in the past 2 weeks.
I've gone through the forum posts and cannot figure out how to resolve error 127. I created a .def file but I'm not sure why or what to do with it... none of the samples even reference the file, although an earlier post discussed it resolving the issue. Steps Taken: 1) Placed test2.mqh in...
  Quick Martingale Help  (14   1 2)
Hello, I just had a quick question. I have this one EA that I use that has many lines of coding. I wanted to input a small martingale parameter in the code to make the EA better. I was wondering if it's possible just to input a few lines of coding right after the "ordersend" function of the code...
[Deleted]
Hey, does anyone know why the following happened? I had an ea attached to a gbpusd chart with an open position. I also had a live trade going on the eurousd without an ea attached to it. When the conditions were right, the ea attached to the gbpusd closed the position, but simultaneously, the...
Buy with volumes > 5000 daily when bar is high int start(){ if (last_bar == Bars) return(0); last_bar = Bars; double Volumes; if (OrdersTotal() == 0 && Volumes >5000){ { // if(Close[0]>Open[0])return(0); } OrderSend(Symbol(),...
need a help I need the following code. When candle is in daily up and volume is greater than 50000 is made a buy When candle is down and daily volume is greater than 50000 is made a sell grateful
[Deleted]
Back again to nag the gurus ;-) I have about 18 charts up all running the same EA and also all with the same indicator on each chart. Within the EA, there is a place where I need to make several iCustom calls to that indicator consecutively to get values for the current bar, 1 bar ago, 2 bars ago
I am still working through the book, and try small tasks at a time. I would like to find out what the best way is to approach this. What should the script look like for: If no open orders, close all pending orders. Any help would be appreciated. Marius