MQL4 and MetaTrader 4 - page 290

Hello, How do I tell the iHighest and iLowest commands which direction I want to search. For instance, can I do: iHighest ( NULL , 0 , MODE_HIGH ,- 5 , 8 ); to do a search from shift 8 to shift 3 where shift 0 is the last candle, i.e. left to right search. I've tried it but couldn't get it to work
Dear experienced traders, When we use MT4 manual, we will have a chance to fail to close position and we will hear a voice is like "Wooo...". Does EA have same chance to fail to close position? What will happened if the EA fail to close position? Will the EA try to close the position again or never
[Deleted]
  MessageBox()  (13   1 2)
I need some help. Somehow I can't display one simple message box.  if((Open[0] <  (sum/MA_Period) && Low[0] > (sum/MA_Period))  || (Open[0] > (sum/MA_Period) && Low[0] < (sum/MA_Period))){       MessageBox("Pass Average", "Windown Tittle") The rest of the moving average file is kept the same. Is it...
What's the difference between the MetaTrader account & the MetaQuotes account? How do I create a real MetaQuotes account? I tried to create one, but it still says MetaQuotes-demo? Or will it become a real account when I deposit money into it? & what's the differe­nce between depositi­ng to my
hello everybody, my code repainting but i'm not use future bars, why its happen
Hi All, I am new to MQL, acn any one help me in getting my custom indicator output value in export advisor. Currently I am getting 0.0 value in export advisor. Code in custom indicator:- //---- input parameters extern int ADXPeriod= 28 ; //---- buffers double abc[];
Hi friends sometimes my indicator get stuck and need to reinit it to show new arrows, how can i reinit my indicator automatically in sertain amount of peridos? is it possible using system32 dll? or any alternative approach
So I get this error in Backtesting: And this is my code, I want to add a BuyStop at High Price from Previous Candle: pr= iHigh ( NULL , PERIOD_CURRENT , 1 ); ticket= OrderSend ( Symbol (),OP_BUYSTOP,LotSize,pr,Slippage, 0 , 0 , NULL ,MagicNumber, TimeCurrent ()+ 3600 ,Blue); I already read this
We are working on a EA that shows you trading signals and stop signals that also plots a rectangle and show you how many pips your profit of that trade was. This picture is from a strategy tester run. You can see red Vlines as sell signals and green as buy. Black Vlines are close orders and the
I have a demo account on Metatrader 4, on iPad. 62741 502 EU 0 I can't carry out the command, "a common mistake" pops up. Does anyone specifically block me from playing the demo
  MT4 Support  (49   1 2 3 4 5)
Hello,  I've read that MetaQuotes will no longer be supporting mt4 after this year. Does anyone know if ea's designed for mt4 will still operate correctly after this year?   Thanks, AJ 
Hi guys, I use MT4 platform with my Oanda broker and I need to download historical data for the major currencies from my broker but I cannot see the pairs in the History Center List. When I use the Home Key technique I can only go back for 1 week. Do you know how to have them? Thank you
Hi Im trying to run three range bar charts of different ranges with the same market symbol..When i create three charts using same symbol on 1min then add the range bar indicator, it creates an offline chart on the screen. but as soon as i add the indicator to the second chart and choose a different
[Deleted]
Hi I would like to modify the " Moving Averages .mq4" code given in the indicators folder. Such that in addition to drawing the moving average line, I would like to display the value of the moving average line on top of each bar. I saw from the mq4 code that the buffer which contain all these values
Hi everybody, I'm building an indicator based on values from another indicator, named XYZ; I don't have source code for XYZ; inside my indicator I call an object that encapsulate the call to iCustom as in the following code CIndicatorRCA myIndicator = new CIndicatorRCA(indPath
Guys please help me out, Im sure I got some obvious mistake on my OrderSend function but I cant find whats wrong with it. The if statements appear to be wright because I get the Print SELL and BUY when I want to, but no order gets executed. stopLoss = 5 pips, MaxRiskPerTrade = 1, slippage = 2. if
Hi Team Since Sunday I can't connect my mt4 account to mql5, in the journal I can see the following messages : 2020.06.08 08:53:56.582 MQL5.community: authorization failed 2020.06.08 08:53:55.990 Signal: '5000896': failed get list of signals, connection error It was working very well till sunday but
HI, I made a script that helps me to copy opened orders and I want to share it with some peoples, but I don't want to share the source code, only the functionality. Is this possible using Mql4
I've scoured the internet for a good ATR trailing stop indicator and EA. I found 1 of each that have been the best thus far, but they are still awful. The indicator its fairly useful. Plots support and resistance ATR using the visual dots the PSAR uses. The EA is junk. I thinking of combining the...
On the internet, I got the sample code where I can enter and close orders everytime there is a crossover of Moving Averagea . When I tested the sample code, it worked. When I analyzed the sample code, I didn't get how it worked. I do not understand how this sample code could close orders at
Dear All, I am in search of a program where i want to place order automatically. Once i know the direction of the marker, i need the EA or the script to place order on the basis of correlation. The instruments i can add and specify the lot side and the type of order i can execute. Ex: If the eurusd
I cannot get my VPS to work anymore: 2020.06.15 13:35:21.191 Virtual Hosting: 6135964 failed to get status for 6135964 failed to execute command I cannot migrate it to another account. I cannot sync to it anymore. I can start and stop it. How do I fix this
Hello, I want to download MT4 for PC, but on the Metatrader website, if you select MT4, it install MT5, all the time !! What's wrong with that ?? Bye
  7 Errors  (2)
Hi, I create Object Rectangle.... but I make Object Delete - errors ... i put highlight marker Is it relate Object Name? '(' - comma expected squarecomment.mq4 180 26 ',' - semicolon expected squarecomment.mq4 180 28 ',' - unexpected token squarecomment.mq4 180 28 'obj_rect' - undeclared identifier
Hi I made a ListView using the standard library ClistView. The number of items I'm adding to it is not predefined and depends on how user works with the other parts of the EA. The Items are added in groups of 3 items means in each group I have two lines on string values and one additional string
Hi guys, I am attempting to learn about how to control chart buffers and change which buffers are displayed on the chart versus which ones are not. I decided to use the "Parabolic SAR" as an example, and for my little exercise I decided to try plotting the "step" size rather than the SAR value
[Deleted]
Can somebody please post a very simple example of a) an EA that uses iCustom to get 2 parameters back. No code is needed to do anything with the parameters,except perhaps print them b) the corresponding indicator that produces the 2 parameters. The code to producethe contents can be hard-coded...
Hello, Is there a way to set up a receive endpoint within an MT4 EA? The goal is to be able to send HTTP POST requests via REST API. I am aware of the WebRequest feature but this can be used only for outbound requests. I am interested in inbound requests. Big thanks in advance, Robert
Hey Guys I'm receiving this error "Return value of 'OrderSend' should be checked ! " in my code, on Lines 49 and 65 which are the "OrderSend" for Buy or Sell, what is wrong? thanks! //+------------------------------------------------------------------+ //|
How to select a Chart Window after open it? Symbol() show just Instrument which was opend before. I want to write a script which open different Instruments, do a operation and then close the chartwindow again. But I was getting always the same data. The reason was everytime I open a new chart of an