My EA can run on real and backtest,it base on zigzag indicator. When optimization , it show array out of range and cannot optimization. Can zigzag EA optimize
Hello, I would like to have this signal sends me an alert everytime there is a buy or sell signal because at the moment, it sends a signal once, if more than 1 buy signal has been triggered it only sends the notification on the 1st time only, a sell signal needs to be triggered 1st before the app
Hello! So I have made this EA which is very simple, once a condition is met it will open a trade. And it will keep adding another 4 trades if conditions are met. All ticket numbers are stored in global area int Ticket1= 0 ,Tikcet2= 0 ,Ticket3= 0 ...Ticketx= 0 ; if (condition1) { Ticket1 =
Hello everyone! I'm starting to learn mt4 coding and working on an EA that is using iHighest and iLowest to plot these lines on the chart and I'm using these lines to calculate if the variable "Ranging" is either ZERO or ONE. This part of the code, to my knowledge, is working fine. The problem is
Hi all, if you have the following program extern int var = 0 ; OnInit() { } OnTick() { if ( var == 1 ) { < do something>; var = 0 ; } } If during operation of the EA the value of 'var' is changed to '1' on the chart, the <do something> routine is executed and the 'var' value is set
Hello everyone. I am programming an indicator for Metatrader 4 and I would need the current signal to appear every 5 minutes, that is, at o'clock, at 5 minutes, at 10 minutes, etc. Following the criteria of the Brazilian MHI strategy, how to program the other values I have no problems since I do it
[Deleted]
I am displaying the price from the current position of a Moving Average on my chart, But the Value is 10858.5 on the EURUSD, I am wanting to move the decimal place to the correct price of 1.08585 I tried using double MA1 = NormalizeDouble(MA[i],1); yet that did not work, All help appreciated 😊
I would like to draw automatically on 30 MIN chart two lines (support and resistance) indicated by the last 300 bars. From the last 300 bars indicator should find two MAXIMUM BARS (ONLY 2 HIGHEST BARS AMONG THE LAST 300 BARS) and draw the RED LINE and from the other hand the same indicator should...
hello, how can i do what i need to do as specified in subject line? reason why i need to do this is sometimes the $125,000 inital deposit setting which i manually set in the "expert properties " box strangely changes back to $10,000 sometimes when i shut down and re-open the MT4 terminal (maybe...
hi everyone I use two moving average 20 and 50 and I enter to the trade in the pullbacks. In fact, I enter trading after pullbacks when the price is above 20 (bullish trend) or below 20(bearish trend). But it is important for me to know How many pullbacks are we in right now?(After the last
im trying to build my first EA. and the first step was to try to make the EA take a buy och sell position on a specific indicator. what i was expecting was to see a trade placement on the bar after the signal (which i have marked with red in the screenshot). but it seems that its placing orders a
Hello, I think I found a bug with MT4 on build 1353. I was back testing a trading robot on the symbol XAUUSD and it opens a long/buy position on 2016 July the 6th at 2:00 AM. This is using Dukascopy data. It opens at a price of 1368.81 and set a SL at 1273.81 I see this message in the logs
[Deleted]
Hi guys, i like to receive an Alert message with Alert(); with the Text of the current timeframe in the chart Alert(Show me the actual chart timeframe); I can't find a call for that. I think one of you know an easy solution.
Hi, i tried to Marks candlesticks with Horizontal Line with body < 50% of overall length (high-low range), I use #property indicator_type1 DRAW_LINE but it not draw horizontal line can you help me please? ths is the script i tried to make
Dear all, I need to Ping an IP to check if my VPS is alive or not. I want to code with EA mql, of course ! I try to use ShellExecuteA, it can call cmd.exe then ping. Unfortunately, ShellExecuteA does not return value of ping's result. Is there any other way that we can check if my VPS SERVER IS...
Unlucky trying to find samples of Canvas usage in code base and articles and no search in codebase source like Find in File is available yet. Any hint would br appreciated. The goal is to write reports on canvas to not interfere with charts
my broker is IG and i can not find a signal tab in my platform any ideas? tk u
Hello, I'm new in mql programming. I wanted to create a mql4 script that return the opened orders of an EA and communicate that information to an external server. I've no idea on how to start, can anyone help me ? Thanks
When using the Standard Libary to create ChartObjects, the objects are deleted upon calling the CChartObject deconstructor. Normally, this isn't a bad thing with indicators/experts/panels, or can be worked around if you call the Save/Load functions, but scripts are a run-once ordeal, so this won't
Hi I use MT4 and I have been using VPS on my IG account. Since my subscription for VPS expired recently, I tried to register for another one as usual and yet I cannot proceed to payment. Normally I am supposed to see payment options such as credit card or paypal on the screen shown on the second
I'm trying to finish up an EA and I just can't for the life of me figure out why it wont place trades. Below is my function for placing orders. I am aware it's probably a little lackluster. This is my first EA and I'm learning. void PlaceOrder(){ if (CurBias == 0 && OrdersTotal () == 0 ){
[Deleted]
Hello, I have an EA in backtesting it works trading indices, but to run it in demo account it don't open any trade, but recently I have found a broker with its mt4 it works in demo and trade it normal. in your opinion why an EA don't open trades knowing that it did in backtesting? and why with a
Hello, im using mobile version mt4 and when i try to see logs i can see only 4 hours history and for 1 account, nothing else in app data i can see files but in .dat format and i dont know a software that can open it
I found a mq4 script on the forum (iprofit) that reads the account history, and shows me a total daily profit in currency and percentage. I'm currently trading Gold and Silver and i would like to filter/specify gold or silver in my script. I'm currently on the level of a script kiddie where i mostly
Hi, Everyone: I have never used MT4 before, but now I have a good MT4 indicator and want to use it on MT4 to analyse at least US indices (SP 500 and NQ). If I can take a look at a few US stocks, that will be even better. But after I downloaded the PC version of MT4, the platform does not allow me to
Scenario: I have developed my own Expert Advisor on mt4 platform. Recently, a same expert advisor is tested with same setting to install on 2 different broker mt4 platform. But the result is not the same. The factor of discrepancy is listed as follow: 1) different broker price data 2) different
Can anyone tell me if the alerts generated by indicators or expert advisors that appear in a pop up box saved somewhere so that I can go and look at what alerts were generated historically
Hello! I have one question: If I calculate margin like this: double lot=0; for(int i =OrdersTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS)) { lot+= OrderLots(); } } int leverage= (int)AccountInfoInteger(ACCOUNT_LEVERAGE); double marginterminal=AccountInfoDouble(ACCOUNT_MARGIN); double
I have put together an EA and it is supposed to have an alert notification pop up when certain criteria are met. What it does: It sends an alert notification every 30 min (the time frame it is monitoring) while the condition remains true. What I want to to do: I need it to send an alert once after

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.