MQL4 and MetaTrader 4 - page 1584

Hi is it possible to install metatrader customize the layout, templates, config & server files and then create the installer.exe again so when i make an install on another computer the metatrader is ready with my settings
[Deleted]
I had a very easy question, please help. i am confuse, i end up with several pending order open at the same time. How to make only 1 Open position ? ex EURUSD SELL 1.5800,If the graph up or down and touches that price, it is still the same, doesn't create another. just like making 1 open or pending...
[Deleted]
Hi Has anyone the PFE indicator? I have the code for MetaStock but can't translate it to MetaTrader. May someone can help me :-) Mov(If(C,>,Ref(C,-9),Sqr(Pwr(Roc(C,9,$),2) + Pwr(10,2)) /Sum(Sqr(Pwr(Roc(C,1,$),2)+1),9),-Sqr(Pwr(Roc(C,9,$),2) + Pwr(10,2)) /Sum(Sqr(Pwr(Roc(C,1,$),2)+1),9))*100,5,E)...
[Deleted]
Hello, Can anybody tell me how to write a EA code based on Indicator code? I have spent several hours however I am not getting the same numbers......... iBuff01[0] is the value which needs to be calculated for each tick and compared to another value. I would appreciate any help. Thank you. #property...
Hello, I have an EA that will placing 2 orders (buystop and sellstop) if the current time meet the StartTime input parameter. It's working fine on my terminal but not in his. He sends me the log file and I found this message : 08:13:52 TimeEA EURUSD,M1: shutdown by timeout 08:13:52 TimeEA EURUSD,M1...
[Deleted]
I need assistance to this EA, how to make "closeAllOrders" instruction when Last open order hit stopLoss. Below is a EA, Thank You for kind assistance. void OpenBuy() { double ldLot, ldStop, ldTake; string lsComm; ldLot = GetSizeLotS(); ldStop = Ask-Point*stopLossS; ldTake =...
Is there some EA code that can determine the AccountBalance() for Today and theAccountBalance() for Yesterday? I'll appreciate it very much if someone can assist me to "code" the above if possible.
[Deleted]
  Off quote  (1)
Dear, I tried to trade several currencies at the same times. I got the message "OFF QUOTE, Please very operation parameters and tried again later." after I made the first order. Sorry, I'm new. Can you tell me what's going on? Thank you
[Deleted]
Is it possible to run through historical prices and volumes with an expert advisor as if it were happening live in order to test it without having to wait for months at a time? Phil Stone
[Deleted]
Hi All While compling my code, I encounter the error msg for this statement. if (PRICE_CLOSE > 0) lots = lots / PRICE_CLOSE; Please help. Thanks. ^_^
[Deleted]
#1---how do I input and activate the following 2 indicator subwindows (labeled as follows): (a) Stochastic Slow (High,Low,Close,15,3,3,1,20,80) (b) CCI Average (14,9,-100,100) #2---what is the profitable way to interepret FRACTALS (and ALLIGATORS) and what market environments (trend vs
[Deleted]
Hello, I am using cycle operator 'for' in similar example like the one below for(i=1;i<=255;i++) Print("Number: ",i); This one should print the numbers from 1 to 255, however it prints the numbers from the number which is different from 1, e.g. 20 and continues up to 255. It should always start from...
[Deleted]
Hello, I am new to MQL4 I was making some modifications to the attached indicator. The file with my changes is attached. I was hoping someone could help me change the line style from style 0 to style 2. I am not sure which line of code changes the line style. Any...
  Common Zero Line  (2)
hi all, is there a way to have a common zero line for two MACDs
Hi all, i need to use iLow, iHigh and iOpen/Close functions in one EA. It works fine for some pairs but for some pairs not. It depends on history in database. Basicly i want to make sure that all history is downloaded, when not download it. No info in the docs :( so please someone help
[Deleted]
hey stringo... do u mind to send me an email? kakeru.kotaro at jee mail ... thanks. im waiting..
[Deleted]
Hi All For eg, I would like to run my EA 2 time within 1 min on a 1 min chart. That is, I want to run my EA on the 30sec mark and the 1min mark. Is this possible? Thank you for the help in advance.
Hi, I'm searching for an indicator that returns the number of executed trades on the last bar (the bar that is forming on the graph). Anyone can help me? Thank you! Alberto
[Deleted]
I need to backup my MT files from an XP machine and restore onto a Vista machine. I have tried copying the entire contents of the MetaTrader folder in Program files and overwriting the same folder on the vista machine, but it makes no difference. The Vista machine must be getting its data from...
[Deleted]
When I try to use Copy & Paste in Vista Home premium, it immediately shows a message that an error occured and windows is closing the program. Is there any solution........... Thanks in advance..
[Deleted]
  exit on psar  (1)
Hi, I just can;t exit on psar in my EA. It does this weird thing where it exits and enters numerous times. Also it exits on will, usually not on first, but on a second change in psar I attached the file for reference int start() { int cnt=0, total; if(Bars<100) { Print("bars less than 100");
[Deleted]
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 MediumSpringGreen #property indicator_color2 DeepPink extern int COUNT=5; double HighBuffer[]; double LowBuffer[]; int init() { SetIndexStyle(0,DRAW_LINE,2,2); SetIndexStyle(1,DRAW_LINE,2...
This is a very simple breakout MA based on rapid price deviations from a significant moving average. It is designed to work on the H1 time frame. With the default parameters it is ready to trade EUR/USD, GBP/USD, and USD/CHF. For use with other crosses it is necessary to switch the base MA to a more
Could someone please help me: What I require for my current EA is some code that will "disable" my buy and Sell conditions if: A profit or loss was made on any new days trade. I was thinking in terms of AccountProfit() made today: Thus If AccountProfit for "Today" is Zero, then go to buy or sell...
[Deleted]
  help me on this  (1)
hi if( (RSIbuffer[i+1]<50) && (RSIbuffer[i]>50) ) { thetime=Time[i]; ObjectCreate(thetime, OBJ_VLINE, 0, thetime, 0); ObjectSet(thetime, OBJPROP_STYLE, STYLE_DASH); ObjectSet(thetime, OBJPROP_COLOR, Green); } the objective is to create a vertical line everytime RSI goes below 50. but it seems its...
[Deleted]
example: ---------------- |ABCDEFGHIJ| <------- OBJ_LABEL ---------------- |<-? pixels->| thansk
[Deleted]
please i would to know if a trading works on a demo account
[Deleted]
  Shifting bars?  (1)
I am new to MQL4. Would someone please tell me the reason we would shift bars when using an indicator? Not sure why.
Hi, I remember someone here said he had an EA can follow other EAs actions. A slave EA will read the account, filewrite a file in disk and another master EA will fileread this file, pick up the symbol, open price, SL, TP, etc. then ordersend... I'm just wondering if the master EA fileread the file...
How come the values of the 365 EMA show differently depending on which you use? Alpaari will show one value which is a 60pip difference than interbankfx