MQL4 and MetaTrader 4 - page 1026

To post a new topic, please log in or register
I'm working on a statistics indicator that shows the average range of different time frames. If I am looking at the 1hr chart and want to get the total number of bars on the daily chart to calculate the average, how do I do this? "Bars" only tells you how many bars are on the current chart. Any...
I have two indicators RSI(13) and RSI(42). if RSI(13)-RSI(42)>=10 is BUY...etc. How to code a EA do it. thanks a lots
Can anyone tell me why the line of code in Green works, but when I try to multiply X by 0.25 (Red Code) then my order does not get placed? double hh; double ll; double ll2; double X; //---- Set Variables hh=High[iHighest(NULL,0,MODE_HIGH,Entry,0)]; ll=Low[iLowest(NULL,0...
Hello, Yesterday, on a live account and on a demo account (2 different brokers) my EA notified that isConnected() returns false. But price was updated and everything else looks ok. I had to shutdown/restart metatrader to get isConnected() returning true. Is there a bug on isConnected() in build 216...
In one of the articles (https://www.mql5.com/en/articles/1523, I came across this snippet of code... void TimeframeCheck(string Name, int Timeframe)  {//----+   //---- Checking the correctness of Timeframe variable value   if (Timeframe != 1)    if (Timeframe != 5)     if (Timeframe != 15)      if...
Hello Traders, i have here a Scalper EA for EURUSD, you can buy it easy and save way over Shareit.com for just 50 USD, this is the Link: https://secure.shareit.com/shareit/checkout.html?PRODUCT[300388463]=1&DELIVERY[300388463]=EML&languageid=1&stylefrom=300388463&currencies=USD_EUR,USD If you want...
for the second time in a week I have managed to crash (freeze and kill) MT4 and when this happens I lose all objects that were drawn into a chart since it was started. The freeze happens during timeframe switching, something I do in start() seems to run into a deadlock, most often MT4 will timeout...
Hi, I try to get the Data shown in the Data Window, which pops up by pressing "Ctrl + D". I'm especially interested in the Highs, Lows, Close and Open at the current Mouse Position. Thanks in advance!
Hi! I just get started with MQL4 and at them moment I'm trying to access the timeseries. I wanna ask for the High, Low etc. of a specific bar. I do it like this:    int i=1;   int hour_bar=TimeHour(iTime("EURUSD",PERIOD_M1,i));   int min_bar=TimeMinute(iTime("EURUSD",PERIOD_M1,i));   Comment("Last...
Hi, I ren into a problem where the market touched a point, and coused for execution, but failed to send the new quote to the expert start function so I wasn't informed on that quote. Is there a way to overcome this problem? Thanks, Eyal.
Hi, I found that this indicator is very useful & help me in manual trading, and now I would like to make an EA base on this indicator, but since I'm not a good MT programmer, I found some problem in getting some value from this indicator. I need to get a level value from: - Average_Pos_Power -...
New article Research of Statistical Recurrences of Candle Directions is published: Is it possible to predict the behavior of the market for a short upcoming interval of time, based on the recurring tendencies of candle directions, at specific times throughout the day? That is, If such an occurrence...
hi, im writing a ea but dont know how to code this part, what i am trying to do is get a macd signal when the macd Signal sma line crosses the fast ema of the histogram, can some one help me with coding this please. thank you very much
  300% profit in two days (12   1 2)
Hi A simple and powerful strategy Account in two days $ 5,000 into $ 19,000
The Subject covers this: OrderOpenPrice( ) : Is this the Current Price of an Open Trade OR the Price that the Trade was Opened at ?
  Best Strategy (5)
this trad is for short time in the 1 day
I'm simply trying this: int Lo=Bid*10000;int Hi=Ask*10000;int Range=Hi-Lo;int Field[2][Range]; getting this error message: 'Range' - integer number expected if I can't initialize an array with another integer variable, is there a workaround?
  trading code (2)
Hi, I got a short question, hopfully not too simple for the experts here. I'm wanting to create a very simple EA for checking things. A stop an reverse system, so it is always either long or short (i.e. it has always exactly 1 open position). My code for the trading operations: int TicketBuy...
Hi, I´m looking for an EA that works with the simples signal : cross of 2 moving averages (simple, or exponencial)....I ve tried to download many of the EA that are in the MQL4 community, but no one seems to work, because no orders are sent in my metatrader...Can anybody post this EA if possible?...
After much trial and error I have come across a Great combination for signal entry. Recently I was able to get 15 of 19 winning scalp trades on the EUR/USD with this setup. I am just starting to learn the MQL4 language. Still have a ways to go to write a program or EA. Do have over 14 yrs. as a...
hi Can someone please add an audio alert to this indicator for me. I have no idea about programming so I need someones help here. This is a simple indicator If someone can help then it would be greatly appreciated thank you jan.
Hi, I was trying to download from the history center USDJPY (M1) and had a problem with year 2004, it stopes at Feb 11, 2004. Anyone has an Idea? Eyal.
Hello everyonefor people looking to learn more about forex trading there is a special FREE 5 day forex course on offer from forexrepublic dot info starting from Monday 21st of June. You can either sign up for one of the days or all of the days. This will be a hugely informative course. This course...
hi i wanted more information off EA and Strategy Tester ? ( Strategy Tester Report explnation . and ea specification )
Is there any way to remember previous values for extern variables of an EA in N2Trader? in N2Trader, When a user attachs the EA to a chart, a windows is displayed that allows him to change values for extern variables defined in EA. The user can store this values by "Save" and "Load" them later....
Is it possible to Utilize Trade Signals from a Compiled Indicator to Utilize in an EA and perhaps Add Some Audible Alerts as well? Thanks to one and all for any assistance with this (< 8)
Hi AnyBody, Please help me to make RSI Break Indicator. It's the rules: 1. at window RSI 14, we create Support (S) and Ressistance (R) lines. start from S1, S2, ..... for Support (Red Line) & Start from R1, R2,....for Ressistance (Yellow Line) 2. S put on Valley and R put on Peak. S1 is first...
Hi there, I'm looking into calling the levels values (100% and 161.8%) of Fibo expansions. Again Fibo expansions not Fibo retracements. If not possible maybe someone would know how to calculate them. Thanks.
Hello Everyone. Is it possible if we could hide stop loss and take profit values from Broker in an Expert Advisor? I would really appreciate if anyone could help in this regard. Thanks. SoberCanadian
I need a Expert Advisor that trades GOLD and earn a fair profit. I tried "MasterMind" and several suggested EAs. but all of them fail to earn profit in "Strategy Tester". I don't know but maybe they need any custom configuration for earning profit in GOLD.