MQL4 and MetaTrader 4 - page 441

Hi I'm a programmer and I wrote an expert that gain 250% in 2 month in eurusd. I decide to sell my expert to 10 best buyer, if you want it plz send an email to me and offer a price... I give my expert in first week for free... my email is arman.amirkamali@gmail.com
Ok so I only just passed coding 101. But its enough for me to do the basics. So I modified a donchian channel indicator so it only adjust levels when a new high or low is made. But it only works once applied to a chart. Could someone have a quick look at it and tell me where I went wrong. Thanks in
[Deleted]
  Charts with Moving Averages  (11   1 2)
WHRoeder : Rastenburg : I have screen shots of H1 to M1 attatched. No you don't. Don't attach a image, insert the image Hi, thanks for your reply, I am here for the first time. I have used the image button, after uploading a 342kb file, I get an error message by uploading, the 2 shots are in docx
Hello, how to get the order close time local time. Has OrderCloseTime always then same timezone as TimeCurrent, server time ?   Thank you 
[Deleted]
Hi, I'm a newbie looking at writing a very basic expert advisor to help me with my Trading self-training. I have no real experience of MQL4 coding so please be gentle with me lol I've got a line of code that gives me an "Implicit conversion from number to string error" when I try and complie in in...
Cananybody help me, please? I tried to changechart template and then create a graphical object (horizontal line) in the chart byMQL4.   For example: ChartApplyTemplate(0,”template_name.tpl”); ObjectCreate(0,obj_name,obj_type,0,obj_time,obj_price);   The Template haschanged successfully, but the...
[Deleted]
  Hello  (1)
Hello,  I am new here. I want to enjoy the trading related information.  Thanks 
Hi, this sample code is behaving different in the build 840 vs build 890. Is this desired behaviour?  string tstamp = "1444977373";Print((datetime)tstamp);Print((datetime)(ulong)tstamp);   Output: build 8902015.10.16 11:24:23.962 test EURUSD,H1: 2015.10.16 06:36:132015.10.16 11:24:23.962 test EURUSD...
Hi all, I am working on a little function within an EA which writes a trade log file and calculates some additional key figures per trade like winning potential, loss potential, achieved Risk/Reward etc.  It works fine for real trades but I was asking myself how to write trades from the tester to...
Hi there. My MT4 does not work with Windows 10 Build 10240. The "Common error" is shown at the bottom right corner. I can see the servers being connected but my account just cannot log in. Please advise. regards natronek
[Deleted]
I'm trying to call this function with an array of RSI values to find the EMA but it's not working properly, always return 0.0 no matter which shift I choose. I can ensure the array gets properly filled with correct RSI values It works fine if I make the same exact thing with closing prices Any help...
Hi all, Before all, let me define "first run". From MQL documentation, https://docs.mql4.com/runtime/running Loading and Unloading of Indicators Indicators are loaded in the following cases: an indicator is attached to a chart; (This is first run) terminal start (if the indicator was attached to the...
  MT4 Station  (2)
Hello  with Mt4 station after 2-3 months became very slow and need more time to open charts ..... so I remove it and reinstall , is that right , or there is another way ....?   Thanks  
Hi guys for know if EA is running in tester, I use the IsTesting() function.....it's ok but I want to know the model that the user have set Every tick or Control points or Open price only there is a way to know it?
Hello, I have found the script 'listallsymbols.mq4' that is very useful to get the extensive symbol list for currency pairs. This does not include CFD symbols or any symbol that does not have 6 characters. I am wondering if such a script exists that covers all symbols, including CFD's with variable...
Hello to all, My EA compiles with no errors but when I do the BackTest the system returns no results, no reports. I have a dough about two parameters of iMA function. They are MA_shift and Shift. Here is the lines of code I'm using: v10_1 = iMA(NULL,PERIOD_M15,10,0,MODE_EMA,PRICE_CLOSE,1); //...
Hello, am a newbie in programming and i had problem in creating a function that auto adjust profit such that when i open an order, StopLoss is(+/-) 50 pips. - for OP_BUY and +  for sell order.  i consider this to be initial stopLoss .  Stoploss should always be 50 pips from current price and...
Hi, can someone please let me know how I can add two assigned variables in a single sentence. i can do it with one e.g. "this is an example for a single", variable. But how can I do the same but with two or more variables. Sorry if this seems like a newbie question but I have tried searching for the...
Hi. I am building a script that does the following: From a list of symbols, it opens (ChartOpen) a singular symbol in PERIOD_H4 and analizes Close[1] and makes certain calculations on Chart's max and min prices. Writes results in a file depend on calculatios. Close chart (CloseChart). When ends...
[Deleted]
Hi,   I would like to know if it is possible to get the mql4 code from an stand-alone .ex4 file.  I have seen some programs on the internet, they claim that they can do it, but I am just wondering if it just scam/virus fake programs or if it is really possible. I have actually found something called...
 Does an Array have the maximum limit of dimension? I can't find it in the help instruction.  Is it mentioned in the help instruction?
Hi,   I've developed my own strategy that I am now trying to implement in MQL4, I would like to start to backtest it and continue to develop the logic, but I don't know if I should create a script that I auto-exectue at some time of day, or have some EA that triggers at some point. I currently have...
how do I add a button on the chartwindow can do some thing like "Buy" "Sell"
Hi friends and Traders. when i click to open terminal shortcut again already opened terminal. it's not opening again. is there any way to open multiple terminal from same installation.. Edit: i'm using portable method with /portable  switch. with Regards Saravana
Hi, I Have written an EA which should generate alert as soon as time exceed the current sever time. My time zone differ from server time by 30 min so I have a condition like  if (Cur_time >(Alert_Time_1 - 0.30))  Alert () But Instead of working on Alert time it executes on very next tick. Please...
Using command line to start terminal: "terminal start.ini" where start.ini contains the following parameters: TestExpert=EAname TestExpertParameters=input.set TestSymbol=EURUSD and others... This does not pick up the EAname, but picks up the EURUSD symbol ok. This used to work in previous versions
Hello guys, just as the subject. I have an EA and is not doing well in round numers (for example 1.1400 in EURUSD or 136.00 in EURJPY, etc). How can I define that when it´s close to a round number (for example 15 pips of that number) doesn't take the trade?.  Thanks in advance. 
I've been scratching my head on this one for hours and I'm not sure if I'm making it more complicated than it needs to be. Most of the MTF Stochs I've seen have the higher TF looking  very flat on the smaller TF which makes sense. I've come across one though that shows the higher TF as smooth and...
  MQL4 Forum editor problem  (13   1 2)
This is driving me ************* CRAZY!! If I add code using the SRC button above and click 'INSERT' the cursor remains in the 'window area' generated for the code. If I press ENTER it simply adds more empty lines to the bottom of the code!! I managed to fix this once by adding the MQL4 website to...
Hello :)I made an EA which opens a trade and set the SL and TP automatically without any problem on eur/usd and Gbp/usd, but for some reason it won`t work on the usd/jpy. can anyone help me ?   Thanks Manuel