MQL4 and MetaTrader 4 - page 1041

[Deleted]
Can custom indicators return a variable (parameter) back to the calling EA. I know how to send parameters from the EA to the indicator using icustom, but how how can I pass a new variable (parameter) from the indicator to the EA?
Please, I have an EA written which opens one trade per day ( I use OrdersTotal()<1 to make it so), but I want it to open another trade whenever it enters another day when it sees a trade advantage. Any suggestion will be appreciated.
Hi, I tried this code with different underlyings             Print("Freezelevel is ",MarketInfo(Symbol(),MODE_FREEZELEVEL));            Print("Stoplevel is ",MarketInfo(Symbol(),MODE_STOPLEVEL)); And I get always Freezelevel is 0 Stoplevel is 0 Can anybody explain my why??
Does anyone know of any reason NOT to use TimeLocal() whenfiltering trade signals? My broker just changed their time zone (now GMT+n), and Ilive in the GMT time zone. Rather than me making adjustments for their new timezone by adding an offset to the TimeCurrent(), it seems easier just to...
B"H Hello there, I have self-implemented the Bollinger bands indicator. Attaching it to symbol's graph produces exact results (I've compared them with those of the standard indicator-implementation supplied within the MT4 package). In other words, it works perfectly fine attaching it to a graph, as...
Hi, I am trying to write an EA that will plot the lowest low and highest high for the past ‘n’ number of days. I have worked out how to do it in a Custom Indicator but can’t figure it out in an EA. I have attached a image of what I am trying to achieve. Could someone point me to some example code...
  SendMail problem  (1)
Hi EveryOne, I have problem with SendMail function. If I test Options-Email-Test, I got error message. The settings are working in email program. If I include SendMail command in expert it does not send any mail. Could you advice ? Regards, Edward
hi... can i replace symbol() in OrderSend(symbol(),OP_BUY..... with eurusd so it buy eurusd if i run the script from any chart, i just want it to but eurusd... is this possible? thanks christian
New article AutoElliottWaveMaker - MetaTrader 5 Tool for Semi-Automatic Analysis of Elliott Waves is published at mql5.com: The article provides a review of AutoElliottWaveMaker - the first development for Elliott Wave analysis in MetaTrader 5 that represents a combination of manual and automatic...
Hi All Can anyone please tell me how to identify and apply the current time frame showing on my chart to a variable? Basically what I want to do is to only show specified vertical lines on certain time frames. What I was planning on doing (rightly or wrongly) was to say - if the current time...
Hello there guys, I want to know if there is any way to find our when an order is modified? I mean is there any flag or trigger that is activated when an order is modified? I need to know when any order in my terminal is updated. Thanking in advance. Regards, Umer
iLowest() can return the LOWEST VALUE, but i want the bar index of this value instead of the value itself. Is there a function to perfom this?
  Multicurrency advisor question  (140   1 2 3 4 5 ... 13 14)
Good evening! I am thinking of combining two pairs into one EA. I have done it. But suddenly I had doubts. I did it like this: extern bool GBP = true ; extern bool EUR = true ; - - - - - - - - - - - - - - - - - - - - int start () { double A = iRSI ( " GBPUSD " , 0 , ..... ) ; double B = iRSI ( "
[Deleted]
Hi everyone, I am writing a code that loops through all orders, and to check that if is a pending order is placed more than 2 days before, the pending order will be deleted. e.g Pending orders placed on 3 April (or earlier) will be deleted if today is 5 April. Pending orders placed on 4 April will...
I am working on an EA, but no matter what I do, I can't make it close trades. It opens them just fine, but when I want them closed, the EA will not close them. I'll post part of my EA code so maybe one of you experienced coders can figure out why I'm having this problem. The vars 'buyTrade' and...
Is it possible to create a chart based on data from other charts? Im trying to create a "trade weighted us dollar index chart ". Any ideas on how to achieve this?
[Deleted]
Hi, I have the following problem: I want to call an .exe within my DLL which I use in an EA. Therefore I tried different C++ ways of doing this. Like system(start "program.exe"), ShellExecute() or CreateProcess. All of them fail if used in the DLL but succeed if they are implemented in an separat...
Hello again, my young viewer))) I am interested in the daily fluctuations of different instruments. The change in the number of ticks (density) in the average intraday may be considered proportional to the change of volatility (N-L). At first sight this value seems to change almost synchronously for
There are many script/EA available generating offline history (Renko, Free-of-Holes, Constant Range Bars, Tick Chart, Time Frame Converter, and so on ...) you can open as offline chart and run indicators on it live. They all use the "PostMessageA(winHandle, WM_COMMAND, 33324, 0)" Windows function to...
hi, I got a new EA as above but something wrong. I want to buy when MA38 cross MA140 and close it when MA7 cross MA38. I test it on AUDCAD ,M15 between 2012.04.25 to 2012.04.26. It should buy at 12:15 and close at 16:00. But the result is it buy at 12:45 and close at 19:29. Would you please kindly
[Deleted]
Hello. Greetings from Poland ! I 'm currently working on a script that wii display renko bars on mt4. But to do that i need to programicaly turn on mt4 strategy tester, any ideas how to do that?
Sometimes I'll test an EA, get good results. then not change a thing, press start again, and have different results. Also, sometimes I use every tick method and the account balance goes down to zero. Then I'll do Control Points and get amazing results. I can't continue to work on my EAs until I've...
Hello I am amaterur on Forex and on MQL4 programing and I will apreciate all help I can get. I am writing EA code for a strategy that uses MACD/OsMA (FEMA: 12, SEMA: 34, MACD SMA: 9 at Close) as a TakeProfit indicator on the event that the two lines that MACD/OsMA draws cross (red and green on...
I have the source code for an EA that works in MT4. I need this program converted to work on the LMAX Exchange through their API. LMAX offers client libraries in C# and Java - you can implement whichever you prefer. If you have the skill-set and experience of working on low-latency trading programs,...
[Deleted]
R/sir/madam, I Have a live trading A/c with alpari uk Now i wish to build & run Auto [ buy/sell/stop loss /take profit] order keeping & execution on your MT4 trading terminal, according my predefined strategies stated as below, 1] chart periodicity : 30 minute 2] moving average : 20...
[Deleted]
Anyone can help me? In my EA, I have to manage a matrix 20x20 (rows,columns), but it seams that is not possible to store more than a certain number of data. Did you know Why? Or how I can increase the possibility of matrix or array dimension? Thank you.
i have an indicator, voltychannel and there are 2 color lines displayed by this indicator, how do i change the orders to buy if the color of the line is blue and to sell if the color of the line is red, following is the screenshot of the chart window, if((iCustom(NULL, PERIOD_H1,...
[Deleted]
I got a chartshift in my tickchart window AND in my "new order" tickchart window. My friend does not. Why? How to disable this chartshift? Using MetaTrader 419
FOREX - Trends, forecasts and implications
  Edge effect on the way to the GRAAL  (131   1 2 3 4 5 ... 13 14)
Gentlemen, good afternoon. I am working on a reverse MTS. Expert Advisor gives BUY and SELL signals and the system reverses trades depending on these signals. SELL appears at the maximum of the indicator, BUY at the minimum. This indicator is a proprietary one, based on on several sliders, which