MQL4 and MetaTrader 4 - page 1359

[Deleted]
Hi, Wondering if anyone can help me...I'm trying to find a data feed source with the news items affecting currencies for my EA. I generally use Forexfactory Calendar with the little houses etc, but want a data feed source that I can use to tell my EA's when to shut down and stay clear of the market
what is your method of identifying overbought / oversold zone? or your method of identifying reversal?
[Deleted]
Hi. Am just learning to program and i have seen great materials from this forum that really assist me. However the MQL4 book gave an example and the code will give error when i try to compile it. Can anyone pls help me locate where the problem is. Thanks for this and the other issues i will be...
[Deleted]
Hi I'm thinking about protection in my EA. what's happened if you have a buy order on friday evening with price 0.90000 and Stop Loss 0.89900. and If the opening on monday morning is lower than 0.89900 ? Will SL fired at 0.89900 or lower ? Wha's your strategy on friday evening ? Is it better to...
[Deleted]
Anyone can advise me, how should I go about closing only my 1min open trade and left my 5min trade still running using script? Is it possible to filter out?
Hello to all, When building the Global variable, and useing a 5 digit broker: extern int Slippage =1; would mean 1 pip or 1 point? Thanks Huckleberry
  New to Meta$  (3)
Hi all I am new to this forum, I like to say In three days I have made 111,000.00 profit with Equity of 100,000.00 to start with. I want to know is their a limit to how much profit I can make in the demo account, Can anyone help.
Bellowed is my strategy tester of my EA with agresive mode (less filter). Risk and reward is 1:2, always trade with 2% available margin. Always stop loss at 50 pips, and will take profit on 100 pips, or above 75 pips if there is reversal signal, or exit at break even point (0 pips), no martingale...
Hi all when I do a backtest of a Ea it always closes all the open trades when it completes, this gives incorrect results on the report, is there any way to configure the backtest to just leave the open trades open when testing is completed ?
  Small Question  (1)
Hey everyone... So I got this platform from my broker, and well had a question... Is there any way the Brokers can play with the results? More importantly , is there anyway we can launch the platform on our own, with out the loss of pips that goes to the broker? Thanks a lot :)
I want to include the StochasticRVI indicator values for the current + 1 candle in a EA. I have used iCustom to get the values from the indicators but none of the 0-7 modes return the value as listed in the data window or as shown on the indicator in the chart window. What am I doing wrong? The code...
[Deleted]
I am just getting started with MQL4. I have written a DDL in Delphi and I am now trying to call it from a MQL script. When I compile I get the following error:- char - parameter definition expected. In accordance with a tutorial I found I have created an include file with this code:- #import
When "Backtesting" are swap values availabe ...... and used in the computation?? I know they appear in Symbol properties.. How would a Sharia account change this also?? Where can we find out more info on swapless sharia accounts??
I'm trying a new Demo with a different broker, but I'm unable to get my setup exactly the same. On a 5min chart, I like to see what the 200HR SMA is(2400 on 5min). The MA dissapears as soon as you change it to around the 2200 mark. The platfrom even allows you to add a 2400EMA, but not the...
[Deleted]
  Display time  (3)
I planning to do an indicator to display the current time on the chart as the font are really too small to see. Can anyone advise me what's the function to use for time? I read the code and found they use Datetime constant 'D' but i dont' understand this area. anyone can advice me on this. Secondly...
hi i want to ask for help - i want to write alert for two indicators crossing, look at pictue: the problem for me is that this two indicators has different scale values. Red line indi has 1.36 value and blue line has 25.23 value. So indi that looks with higher value in fact has lower value. Does...
Hi, I have a probleme with comit extern int value in an array. extern int a = 1;extern int b = 2;extern int c = 3;int array_tmp[]={a,b,c}; When i compile, i have theses errors: a - expression on gobal scope not allowedb - expression on gobal scope not allowedc - expression on gobal scope not allowed...
[Deleted]
Hi guys, I am tryng to find historical data for the cross eur/usd. I need the data with a maximum time frame 1 minute and if it is possible 1 year data.... I need the data to test my EA I developed. Thanks a lot for your help.
[Deleted]
  GRID?  (1)
Removing the Grid chart, directly from EA? I checked this link, but would like to know how to make the grade when using the examiner? https://www.mql5.com/en/forum/117904
[Deleted]
Does anyone know how to programatically turn the checkerboard grid off? Not a real issue, when I launch the session and open a new chart, my next key stroke is <ctrl-g> -- but, isn't there a way to handle this in code? Also, short of creating horizontal lines on the chart, is there a way to get to...
I'm trying to implement code to fix the ''Error 146 Trade context busy' not working code problems' If I add this line to the start of the TradeContext.MQ4 file int init() I get the follwong error: 'init' - no dll defined for the imported function If I 'rem it out' I get the following errors: Start...
[Deleted]
Hello, First of all, although I'm not totally new to programming, I am quite rustythough and very new to mql4. With the help of this site I've tried to piece together an ea that can take trades from an external source. That external source drops a txt file in the experts\files folder, this bit I...
[Deleted]
I used the script below and does not appear on the chart, have some error? I used OBJPROP_BACK, along with a ObjectSetText but could not put a color in the background text, I found that with the Rectangle is possible, but also could not.if (ObjectFind("RECT") != 0){ ObjectCreate("RECT",...
[Deleted]
OrdersTotal () - How do I separate Buy and Sell orderstotal count ()? In number of orders for each type In values of orders of each type Example OrdersTotal () = 6 Sell = 3 Buy = 3 Value Buy = -120.00 Value Sell = -135.00 I tried the script below but lacks a loop that I have no idea. if...
[Deleted]
Might seem like a daft question, but is it possible to compile an indicator or EA from within itself.... I have been building a custom indicator which changes some of it's settings as it goes, and the only way to get it to update in the terminal is to keep compiling it in the editor. I have tried...
[Deleted]
Anyone can advice me, what i lack off in this script? I wanted the script to prompt me how much lot i want for this trade, but once i excute this trade, it just self excute without prompt. I insert the "extern" but still no use, did i use at the right way? Sorry, still new to programming and keep...
New MetaTrader 4 Client Terminal Build 216: Tester: Provided correct initialization/deinitialization of librariesused by the Expert Advisor under test, at repeated passes and atoptimization. Tester: Fixed the triggering of Sell Limit orders when tested by open prices. MQL4: Eliminated memory leaks...
[Deleted]
Ok, I'm a newbie to MQ4, but I have a lot of programming experience, therefore I understand the syntax and logic fairly well. I have created a custom indicator that uses a manually calculated MACD formula (the internal one doesn't seem to work right for me) to identify my buy and sell signals. I...
[Deleted]
Hello, I tried writing my own custom indicator and I have run into 2 problems. The first problem is when the indicator runs it kicks out the same value for every bar and I don't know why this is. The second is this value is being calculated wrong. What I am looking to do is create a simple...
Does anyone have a decent EA for sale? There is a forex website promoted in the US and China. The website is mine, the Expert Advisor is yours. The profit is 50 to 50. The initial advertising costs, I can take on myself, with half reimbursement from the future earnings. Requirements to the Expert