MQL4 and MetaTrader 4 - page 1327

  Classical analysis 'doesn't work'?  (368   1 2 3 4 5 ... 36 37)
I often come across the phrase: "Classical analysis is dead (or "not working")!" In my opinion - nonsense. What exactly is "dead" from classical analysis? Which phenomena of technical classical analysis have been discarded? What do those who have buried it for individual trading needs mean by
[Deleted]
I've been looking for a while for a solution, but I just can't find anything... I take a time when I close an order and this all works fine when the order is closed by the EA. But when the order is closed by either a Stop Loss or Take Profit, it looses the order and I can't get into the code that...
[Deleted]
After I have a code saved on my files how do I load it to the expert library? Thank you for your help.
How is it possible to have an EA pull settings from a file, let's say every 10 minutes, so that settings could be updated once in 1 file and multiple eas could be updated with new settings from that file?
  1 min bars  (1)
Hi, Does anyone have problems with missing 1 min bars on SPI200, gold, Dax?
[Deleted]
hi i m in need of macd EA... tat works good.. anyone can mail to me yahoosrini@gmail.com
[Deleted]
  Closed orders profit values  (13   1 2)
int start() { double OurArray[]; for(int b=0;b<OrdersHistoryTotal();b++) if(OrderSelect(b,0,0)) if(OrderSymbol()==Symbol()) { OurArray[b]=OrderTakeProfit(); } Comment(OurArray[1]); return(0); } Logically it should show a closed order profit value...
  WHIPSAW, TREND, or COMBINED?  (13   1 2)
By using Differential Calculus I can easily locate the bars for the LOCAL MINIMAs and LOCAL MAXIMAs on a 30 min EURUSD chart. They are basically the LOCAL TURNING POINTS. The only problem is how far the turns will go. It could WHIPSAW or just keep on going as a long TREND after the turns. So I've...
[Deleted]
Hi guys, Just a quick one.....when the special functions(init, start & uninit) are called, they return an integer value. Is this value usable in any form....... As an example, I usually add a line in the init function :- if (Period() != 15){   Alert("Wrong timeframe!");   return(-1);} I would have...
[Deleted]
  Error 130  (6)
I am not certain why I am getting this error... I have found that it is related to my S/L... but it's set to 30.. I've even tried 10...100... I keep getting it.... please help //Buy if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { if(...
This error 130 is killing me... Does anyone have a clue or experience of the following scenario? If the OpenPrice is too close to Ask (for a BUYSTOP order) then we should get this error, see https://book.mql4.com/appendix/limits There it says that for a BUYSTOP order we need : OpenPrice-Ask >=...
  Error 130 on microlots  (22   1 2 3)
OrderSend (Symbol(),OP_BUY,Lots,Ask,5,Ask-200*Point,Ask+700*Point,"Normal",255,0,CLR_NONE); Above line works for ordering one lot but give me error 130 whenever I tried to order 0.1 lot. Can anyone please help me why is the error and how to fix it?
Hello, How do I set the description parameter of objects in MQL4? For instance the description of a horizontal line. Thanks!
  LET'S SAY THAT ...  (433   1 2 3 4 5 ... 43 44)
Going to allow the unacceptable in this thread. Not in the sense of breaking the forum rules, of course, but in the sense of understanding the price. :))) - To begin with, I want to continue the previously conceived topic of price randomness... Let there be XXXth element of the table of Mendeleev
[Deleted]
Hi all, I'm trying to modify the default MT4 script modify with a custom one. I need this script modify the Take Profit besides Stop Loss. This is the original script : //+------------------------------------------------------------------+//|...
[Deleted]
I have an EA that I am working on, however, the start() function is being executed at every tick. I want the start() function to be executed at the close of each bar (say if attached to a one hour chart) and not at every tick. My code snippet to control bar opening time is pasted below but it is not...
Is it possible to populate an array with a for loop for instance say I have an array: my_array [26] [4] and I have 26 variables a through z and I want to put them in the third column how would I write a for loop to do that ?
New article Creating a "Snake" Game in MQL5 is published at mql5.com: This article describes an example of "Snake" game programming. In MQL5, the game programming became possible primarily due to event handling features. The object-oriented programming greatly simplifies this process. In this...
[Deleted]
  MQL4 on iphone  (16   1 2)
Hello, We are iphone /ipad application development company, We are starting development MetaTrader application iphone/ipad, we looking technical support and knowledge expert of MQL. thanks PRaful Dynamic Methods. projects.dynamic.methods@gmail.com
[Deleted]
  World Indices  (3)
Can you suggest me a web page that i can download the MetaTrader that includes international indices?
Hello, I am trying to create an indicator that requires the following three condition be satisfiec before producing an arrow: if ( iWaitFor==PLOTDOWN && // A Close[i+1] > ma48 && // B Close[i+1] > Open[i+1] // C ) { iWaitFor = PLOTUP; Bull[i] = High[i] + 0.0005; Alert("Bull"); } Note that there...
  Check trade  (1)
Hello i looking to find a code that check the order history. if in the order historiy to the reference time of the last day an order, dont take a new one there is something wrong with the code      for (cnt=0;cnt<OrdersTotal();cnt++){      OrderSelect(cnt,SELECT_BY_POS...
Does anyone have an indicator that draws a line for the previous day's high and low and maybe the close on lower time frames? I'd like to be able to see it for every day on the chart for back testing. I don't know anything about writing code. If anyone can help I would appreciate it very much....
[Deleted]
I want an EA that would send an e-mail when a manual trade is opened against a pair. This would be used to send entry/exit signals to an e- mail list . Is this possible
Hello I am new in this forex I am doing test with a FXCM MT4 . I am using details[T_MODE_SPREAD] = MarketInfo(Symbol(),MODE_SPREAD); My problem is that during the test I am getting for EUR/JPY M1 a constant spread = 33 what is absolutely Wrong ( normal values are inhttp://www .fxcm.co.u...
[Deleted]
Hi, I'm new to MQL4 and would like to create my own EA, the only problem is that I have no clue where to start.... The rules are simple for this trading system : - 15 min chart - stochastic momentum index as indicator LONG/SHORT buy/sell signal : SMI crossover Take profit when they crosseover again...
[Deleted]
I have a Stochastic and CCI in the same data window. The Stochastic axis from bottom to top of data window is 0 to 100. The CCI zero axis is in the middle of the data window and ranges positive above and negative below the axis. My problem: I need to identify the crossing of the Stochastic with the
  Text background  (1)
I know you can set the background for a chart, still trying to find the exact code, but I am sure it is there, however, what I am really interested in is the ability to change the background on a text label so that the text does not bleed or get buried by other noise data on the chart. I have...
Hello, i have a very simple question. In my expert i want to call an exponential MA5 from an OsMA (having the same results like when you attach a MA to an OsMA chart and set it to previous indicator). How can i do that? I'm using functions. The OsMA is as follows : double OsMA() {...
[Deleted]
Hi, I'm using iCustom to call an indicator in an EA, and I keep getting "unknown subwindow number -1 for ObjectCreate function" From what I have gathered, this is because of the WindowFind code in the custom indicator being unable to find a corresponding name. The code appears in init start() as...