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
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
(4)
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
I wrote this indicator to plot the average daily range split by the daily open price... problem I'm having is getting it to correctly plot the a.d.r. correctly over less than daily time period charts. It will plot half the daily range above the daily open and half below the daily open on a daily...
I have uploaded some indicators in the MQL4 folder in the metaeditor but cannot see them in the add indicator folder on the metertrader 4 platform. Any ideas on how to fix this
I'd like to write an EA that looks at heiken ashi candles instead of normal candles but am not sure how to do that (I'm still pretty new at this). Do I just write a standard EA using the Open[], High[], Low[], Close[] commands and drop it on a chart showing heiken ashi candles? Or is there some...
Hi i have a ea that when chart reach the some condition open and buy/sell trade i want to know it's possible when a user close open trade the ea ignore the condition and don't open a new trade( immediately ) and wait for next condition it's have any command and function to check if already opened
Hi there, I am new to this so would appreciate any help I can get. I have the following code to display the bid, ask and spread. It is displaying the bid correctly except for a couple of pairs (CAD/CHF and NZD/JPY). I've done troubleshooting and digits is 5 for CAD/CHF so I am not sure why the bid
Hi I want to learn about creating an EA that can open a position according to price action. Does anyone have an example or an article so I can learn it. thank you
Hello, Thanks to read my question: I got an array[x] x=196 // number of strings grabbed by: SymbolsTotal(0) I grab all name instrument and put them in that string array, for that it works well :) Now I need to get a drop down list to show all names to the guy who will set his instrument in the
Hi, I am new to MQL4 coding, and I have a question. I am coding an expert advisor which sends an Entry order at Golden Cross of Moving Average lines. I also want to close order when the Moving Average lines cross at Death Cross. However, when I backtest this EA, I can only send the orders and these
how can i convert a double value to a integer value?
Every time there is an update, about weekly most of my custom and market indicators no longer work and have to be reloaded
Hello All, I am new to MQL, Can anyone help me in converting following custom code to export advisor. It would help me lot. //+------------------------------------------------------------------+ //|Vortex Indicator.mq4 | //|From the January 2010 issue of
[Deleted]
In MetaEditor on EA source I start debugger via F5 In ClientTerminal a new chart is displayed. I need .tpl of my choice... Same idea as when use StrategyTester, I name the .tpl of choice with the .ex4's <fname>.tpl I've done the renaming in all dirs having .tpl's but no joy. I've searched total...
i'm new and hung out somewhere. I would be glad if you help. If the close price is up to 20 higher than my active end position, I would like to reopen new position. How can I assign my last active position price to a variable? and "If the last candle closing price has increased at least 20 from my
Hi,I have to get the oscillator value of the previous bar (oscillator [1]), do I have to generate an array first? Can anyone tell me the syntax? Thanks for your help
hi can anyone help me find a good position size calculator for MT4 for forex i have purchased one th at didnt work and i am so disappointed

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.