Hi, I am trying to get nth prev candle's open and display it on the current candle. But my code does the opposite. Puts the current candle's open on nth candle. Couldn't figure out what I am doing wrong. void start() { int i, Counted_bars; Counted_bars = IndicatorCounted();
Hello, i just started studying MQL4 programing, i am working on my first EA, but it wont open any trades. It is a Scalper for the USDJPY , and the premise is simple, it should launch an order if the price is 15 points above an 8 period MA (it shoul buy) or 15 points below an 8 period MA, it should
HI all, I have a bit of an issue with just one broker as it seems that the last EA attached with a chart reactivates itself after havin been closed whenever MT4 is started. A quick example would help: EA is attached and running on one chart. During the day I stop the EA and detach it from the chart
Hi All, I have an issue with the function below. It is part of an EA. When a certain profit is attained for a grid and for a specific cross, the fuction is called and is supposed to close all the current orders and delete all the pending ones for the specific cross. It seems to be working till a
Hi When the ZigZag indicator was "fixed" from v600, it effectively made it difficult to use this indicator in an EA with strategy Tester and optimization, unless you isolate Backstep and don't include this in the optimization. I use Zigzag in my Ea using icustom to call it. And therefore when
It's weird again. I was testing my EA and then suddenly I couldn't replicate the results on the same time range with the same parameters . I wasn't editing the code, just changing very few parameters. Even optimization gave at best only 75% of the previous profits. Why did this happen? I wish I
I don't understand. I have an EA that is working on one symbol, but not the other. I copied the code from the good one and all I have to do is change the symbol and the magic number. The error happens for both buy and sell. For instance, I got this error: " Buy USDCHF at Price: 0.98184, SL
I have a file with Symbol, Price and Description which are read into dynamic arrays mySymbol, myEntry, myDescription I have written a script to open a new Chart for each entry: - Symbol of the Chart is determined by the element from mySymbol - Horizontal Line with the level from myEntry, name of
[Deleted]
Can someone help me how to use .DLL file to protect my EA Best Regard
Please help . I do not have the chart tabs with the name at the bottom of the chart. What do I do
I am able to get my EAs working on any pair 3,4,5 decimal places but it would appear that I thought I understood this but obviously i dont!!! as i play with each to get it correct on any provider or currency pair. Life is easier if you know what you are doing and it appears it can be done in one way...
hi , trying to do indicator that will draw 4 horizontal lines with 4 inputs, 2 resistance and 2 support , used code from horizontal line alert file , but after compiled a code -no errors and put inputs for s/r not drawing anything , I am not a coder , will u help me with this
please help me with repainting issues,i have attached the code below
Hello world! I have been butchering custom bollinger bands for a few days now in mql4. Last night I came across this Bollinger Band on TradingView and I cannot figure out a way to replicate the behaviour onto a BB for mql4. I have applied linear regression onto my current BB's and it just never
Hi, I use below code to check daily profit. I will stop EA when daily profit reached to the target. But when I first time attach the EA on the chart and check the daily profit value, it shows account equity. I wonder why... It should be zero when I attach the EA for the first time. double
Hi, I need help to make this indicator works. The idea here is to get a Buy signal alert only once at the opening of a new candle each time the following conditions happens : - First condition - The Open price of the alert candle is above the MA - Second condition - both of the last two candles are
I have a few comments that I've added to chart and they appear at the top left corner. They overwrite 3 lines that are already there and I need to move my comments down but I can't find out how to do it
If MT4 crashes or if Windows close MT4 because of forced shutdown/restart, expert log data are not saved. It seems that MT4 saves expert log data only by regular MT4 exit or when a user chooses "Open" through menu which is opened by right mouse button click on any expert log line
Hey guys. So i have this ma cross arrow indicator that works really great. I think mladen created it. The MA CROSS indicator doesn't repaint or lag but only when conditions are met during the life of the candle, the arrow appears. Saying that, i also have this "Price MA cross indicator" but unlike...
Good morning everyone, I want my code to read the text in a label on other charts in the same workspace. I read this document: https://docs.mql4.com/objects/objectgetstring and I used this line of code: string BiasTextEURAUD = ObjectGetString(" EURAUD ", "Label_Bias", OBJPROP_TEXT, 0); I expect
hi everybody i need some help if it is possible for an indicator to have a pop window alert when the lines are crossing. thank you very much for your help
cant seems to find a search page to look for what am searching for? need help with setting up mutlitrader and can i add different broker accounts to the main account or it has to be several accounts on one broker mt4 mutlitrader app
i Have an indicator which is so good in detecting the buy and sell signal. I want to use in EA using iCustom function.. This one indicator for H1 is very good for manual trade. can any one help me to convert this in EA. double ST1 = iCustom(NULL, 0, "ArrZZx2", xxxxx, xxxxx,xx, xxxxx); double ST2 =
I am writing and EA and are using 2 custom indicators. I have used different custom indicators successfully in other EA's. My problem is that the EA does not pick up the values displayed in the data window. It returns zeros when the ame values in the data window are non zero. Here is an example from
Hello, I just purchases a VPA from MT4 directly. I have a Price alert, but is not working (I have Push notifications enabled for my mobile phone). Someone know how can I solve it? Bests
Hello all, I am trying to understand the logic behind iCustom function, but just can't. I am new to coding, I just started to learn, and got stuck here. My goal is to build an EA based on a simple MACD divergence indicator. The code is here
Hi I need to check if mouse is on top a button object or not in chart event (or any other section that would be proper but looks like chart event is the right way to do it), how can i do this
As of last night I noticed my trade signal alerts sent push to my android phone stopped coming through. If I open up MT4 on my phone, sometimes it will give me the alerts but all the past alerts come through at once. Never had any issues with this before. Any thoughts on what may be causing this? I
If I have 2+ arrays and I want to edit etc one of the arrays, how do I efficiently assign the array so I can make changes? Lets say I have two arrays and I want to change j[0] to 10, and I've used some process to chose array "j" .... int i[]={1,2,3};int j[]={1,2};string arraytouse="j"; I don't want
[Deleted]
Hi everybody I would appreciate if you could help me know if it is possible to install meta trader offline , I don't have direct connection to internet on my computer at work . I was thinking it might be possible to copy source file and specially use editing environment . Ciao

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.