MQL4 and MetaTrader 4 - page 1038

[Deleted]
Hi, I managed to setup an email alert and it works fine till today. I receive an error message "mail: not enough space...." Anyone knows how I can rectify this? A million thanks!
Hi, Do the Limitaions of the Backtest Expert-Setup window (it has three tabs: Testing, Inputs and Optimization) really work (and how)? I tried to use e.g. "Maximal drawdown". :( So I first enabled "Maximal drawdown" and then tried to change the default value 70 to 90. But as soon as I left the value...
  EA 2009  (4)
I have this EA, but know very little about programming. i would like it to turn on/off long and short orders based upon a certain ask/buy price. i know it is possible but do not know how to accomplish it. any help would be appreciated.
[Deleted]
I am using the bbsqueeze indicator as part of an EA I am building and yesterday a strange thing happen; at somepoint, while I was writing the EA the indicator, which has been working fine both on its own and as part of the EA stopped working correctly in the H1 time frame but only on the two pairs...
Hi folks How can I define that an indicator begins at the start of a month an ends with the last day of the month, then starts with a new illustration for the next month. For example: 1st of April: the maximum of the momentums (march to april) of two pairs is measured and for april the ATR of this
Hi, Im building my first ea and would like some help figuring out how to call the Forex King STS Indicator from the EA i want to use the MA1, MA2 values and also their "trend-range" module. Attached i have posted the indicator i pretend to use, the signal will indicate when to close my trades, if...
If I call a custom indicator in an EA using iCustom, what price is used (O,H,L,C) to calculate the indicator value? Is is 'close' price by default?
[Deleted]
  buffer issues :(  (24   1 2 3)
Hi guys... Im trying to learn how to use buffers properly in a custom indicator call... so I found an indicator that plots multiple HA on a single chart and I wanted to code an indy that will make an alarm when the color changes... here is where things get weird coz I can get it to work...
[Deleted]
hello guyz, i lost my money in forex market bcz i always always using new indicator bt plz plz plz can any having zig zag will not jump i want indicator which is fixed on zigzag plz anyone hve then plz gve me...
HI,I want to send some data to a php webpage and get the information there. I think that If i can do that with requesting a webpage and get the data with GET method.for example send a request to "http://www.test.com/index.php?a=1&b=2" .I need a code for that in metaeditor 4 . Thanks
New article Econometrics EURUSD One-Step-Ahead Forecast has been published: The article focuses on one-step-ahead forecasting for EURUSD using EViews software and a further evaluation of forecasting results using the programs in EViews. The forecast involves regression models and is evaluated by...
  Showing gaps  (6)
Hi, I tried the following code to show my gaps: for(counter = GapsDistance; counter >1; counter--){   if((iClose(NULL,PERIOD_D1,counter)-iOpen(NULL,PERIOD_D1,counter-1)) > GapsMin*pips2dbl && (iClose(NULL,PERIOD_D1,counter)-iOpen(NULL,PERIOD_D1,counter-1))<GapsMax*pips2dbl )...
  getting info from arrows  (14   1 2)
hi I am wondering if someone can point me to some info on how to get an arrow from an indicator to be read by EA while the code would be nice I would be happy with just a place with this sort of information I haven't found anything from my efforts so far Thanks in advance
[Deleted]
Hi, I am a newbie at this so please be patient. I am practising on an EA that uses an external indicator to pass variables to the EA. However, after coding the EA it will not compile as there is an error message stating "variables not defined". How can I get the EA to compile. Here is the relevant...
Hi, I tried calculate my MAs and my there indicators only with the prices from 9:00-17:30. Does anybody has an tip or an code example?
I am a newbie of coding MQL4 I did not know how to create an assignment which will not be reassigned at every moment a new quote posted. For example, I want to create a function working as follows: ---------------------------------------------- if total=OrdersTotal()==0 then...
[Deleted]
Hello, An indicator can specify through a '#property' declaration that it's for a 'indicator_chart_window' or a 'indicator_separate_window.' Can a single indicator be written that can be used simultaneously on multiple windows? For example, one indicator that can display a histogram on a separate...
[Deleted]
  Help with this code please  (24   1 2 3)
Hello everyone, First off I have to tell you all I am not a programmer but I have put in every effort to figure this out before asking for your help. Basically I came across a cool MT4 indicator and started editing it. After a lot of trial and error I have actually made good progress and learned a...
[Deleted]
This is my first EA which I'm trying to backtest, and I run into weird problem. if (           (Close[2] < Open[2]) &&               (Close[1] > Open[1]) &&               (Close[1] > Open[2])                )           {           TakeProfit = ( High[1] - Low[1] ) * 1 ;           StopLoss = (...
[Deleted]
Hi I've got two questions about MetaTrader4, I'm very grateful if anyone can help: 1. Is MetaTrader 4 capable of generating signals from 2 unique data points (data from Oanda) at the same time? I need to generate entry and exit dependant on market 1 and market 2 both trading above or below their
[Deleted]
Hello I am trying to build an EA which will add position if market goes against itself. TP is always 3 pips (30 pippettes) from average price. and new positions will execute if price goes 30 pips against last open order price. This will act in both buy and sell positions. My EA opens positions as i...
Hi, Is there someone here who can slightly modify WPR indicator code for me? The way I understand WPR at present is it writes the line on close of each bar. What I would like is for WPR to write the line once bar is 10 pips long (high-low=>10 pips), then wait for new bar before writing again. I use...
[Deleted]
Hello. Does any one know how to write a script for the indicator Stochastic Momentum Index? It is much better then Stochastic Oscillator. But I don´t know how to write a script for it and a scrpt for using this indicator in an EA. Here is the description how to calculate the SMI. Thefollowing...
Hi, I’m a real newbie to this game and this site has been recommended to me as a great learning tool. So after searching the Internet for an answer to this question I thought I would try here. I am a programmer by profession but I have had no experience with MetaTrader and EA’s which puts me on a...
Hi people, I'm creating an EA which uses an array to store different price leves to be considered for each opened order. I'm worry about what happens when external events affect the EA execution, for example: interruptions in the internet connection, or even worst a complete reset of the computer
Hellow, I am completely new here. First posting. Can someone perhaps explain where I might find the source code for various indicators on MetaTrader 4. I am particularly interested in the Money Flow Index. Perhaps you could give me a link to the code. Thanks, Brian
  Bad programmers  (15   1 2)
Why is MetaTrader so badly programmed? Isnt there any good programmer who can make it better ? Why are there no rangebars ? Why isnt it much more users friendly ? Why arent there good buy and sell scripts i can go on for 5 hours !! very bad programmers at MetaTrader very very sad it was good...
[Deleted]
See image for a better explanation. I only want to display 1 value on the RSI and 3 on the MACD I know why they are there but I want to hide them just because it irritates me. I needed multiple buffer for the colors, etc... Is it possible to reuse a buffer just for color? int init()  {...
Is there anyway to predetermine the number of times start will run using the strategy tester on a set period of timesuch as 4/11/2012 to 4/12/2012. If the period is M1 how many times will start be executed. If the periodis M15 how would I  predetermine the number of times start() will run.
[Deleted]
Hi all, If anyone could please guide me how to change time in my Mt4 Demo account according to my country indices time. I would be very thankful for the same if any body can help me change the time according to my settings Thanks