MQL4 and MetaTrader 4 - page 1318

Dear All, I'm very new to this programming thing, so I would like to ask for your help on some code. I need some help in creating an EA which will have the below function. - Capture the Opening Price for the bar at 21:00:00 everyday - Base on the captured opening price, place a pending Buy order...

Dear All, I'm trying to get the open price for a bar at time 21:00:00 of each day, can I know is there any specific function to get this value? Or we need to create the code on our own? I tried it with an IF loop, but when i run the back test on the tick mode, i will miss out some days, because...

Hi All My fx broker is Alpari so of course I use MT setup from their site. Since the first live update to build 213 popup appeared on MT startup last week, I have this popup appear every time now. The Help>About always shows 211 on startup > go through the liveupdate - which (after 1st 3.xxmeg...

Analysis on the forex market. An experienced trader holds both a technical and fundamental analysis before you enter the market. Basic include the monitoring of world news, and in particular to explore factors that may influence the fluctuations in market prices of currencies, including monetary and...

Hello, Sorry, I had an answer yet, but it wasn't fine. Have you got a code for this : For the money managment, I would like to know the final balance and the final profits of the previous day. And I would calculate the total profits from the begining of the current day (not profits for current bar)...

Hi, gurus, I am very new here and I modified some codes from internet and composed one here, but it didn't pass the test run, very likely due to programming problem. Can anyone here help correct my mistakes? Many thanks in advance. It would be good if there is a diagnostic program for debug purpose...

Helo i am here new and need some help. Cen someone give http for some script and Expert Advisors and how to put them in MetaTrader? Please don't say then i need to reed book.mql4. i know thet. I whant some fast help, if u cen help me please help for my question. THX

I want to write a code like this: 1. If the current trade of EA1 is losing 30 pips. Then 2. EA2 will open a trade of the same lot size to balance it. My questions is how EA2 gets the lost size of the trade in EA1. Can anyone give me a hand? Thanks.

Hello, anyone that can help will be greatly appreciated. I have been having alot of trouble modifying the code for an indicator called "Daily Range Calculator" originally coded by FxIgor on Forex Factory. I want to be able to referance in my EA the Average daily range calculated in this indicator....

I have a managed to set up a comment to show on the screen showing the pips for the open positions on each pair, but i am trying to show the combined amount for multiple pairs eg e/u 20pip g/j 40pips u/c 50pips combined total 110 pips ( Price() - OrderOpenPrice() ) / MarketInfo(...

Hi i want to read form csv file. The data is for instance: EURUSD;1.5510; when i do this: double Price=StrToDouble(FileReadString(handle)); when i print it i get 1.55100000 the value but with 4 zeros more. Also the problem exist even if i make tihis:...

Hi, is posible to calculate the indicator of another indicator, for example an EMA of a STDDEV? Using the iMA indicator only allows me to work with the close, high, etc, but not with any series I want. may be there is some script for building my own custom indicator? I need to calculated the EMA...

currently, I trade a 15 minute chart and it works great for me. But I do not always have the time to watch a trade all the way through to my exits. I currently trade manually(although I have written a holy grail that doesn't work... naturally). My strategy requires that I stay in a trade until my...

Hello MT4 Community, I attempted to run a very simple expert and the following log file appeared: There has been a critical error Time : 2008.03.24 21:40 Program : Client Terminal Version : 4.00 (build: 213, 18 Mar 2008) OS : Windows Vista Professional 6.0 (Build 6000)...

I just re-installed MQL4, and a previously working indicator now causes terminal.exe to crash. Can someone please examine the log and point me in the right direction about how to stop this error. Thanks in advance, Mark. There has been a critical error Time : 2008.03.24 17:53 Program :...

Hi, A friend of my forwarded me an email about a company offering $5,000 for using my EA then a 50/50 profit sharing agreement afterwards. <CENSORED - SPAM is not allowed. Rosh> Has anyone else had experience with this company? If so, what was your experience? Thanks, David

Hello, I'm no expert in MQL4, so I need help. I have this indicator Price Channel, that I find interesting in some situations, but I would like to shift it, like we can do to the MA's on the MT4 terminal. I believe this is not complicated for an experienced programmer. Can someone help, please?...

I wrote three scripts to buy, sell and flat my position. I would like to assign ALT+Up Arrow, ALT+Down Arrow, ALT+Right Arrow keys as hotkey to these three scripts respectively. Is it possible? Thanks in advance for your help.

Because the set files does not have a variable size pattern I don´t know how to create an instruction to read from the beginning of the line to the “=” and then from the “=” to the end of the line. For example: var1=100.00000000 exemple2=50 test3=400 par5=7 Someone can help me please?

hi guys ; iam new in this mql4 i want a code prevent appearing the repeated signal if my indicator gave buy signal i find lots of buy signals i just want one signal buy and when the indicator gives sell sungnal i want one signal ;;; i know i can make it crossing the lines but i want the code to...