[Deleted]
Specifically, I have 5079 Objects and ObjectTotal=4988, so it does not see a lot of them. My objects are named as numbers in sequential order. i.e 1, 2, 3, 4...etc are each converted to string and used as the name for each object. So its really easy to tell what I can not access. Above 5033...
[Deleted]
I programmed an indicator that uses tick data, however, when I run it in the Strategy Tester, Ask price will not get populated on each tick so it won't work. However, turned the indicator into and EA (in part) and it now has access to tick pricing however, I use indicator buffers for storing values...
Hello everyone. I have noticed that the EA I am working on closes trades if an MT4 is restarted. The issue is that the SL and TP values are lost due to the deinitialisation and logic to close trades gets triggerred on 0 TP values. Could anyone recommend how to store SL, TP and other values used for...
// from p64 of 'Expert Advisor Programming' by Andrew R. Young: double TickValue = MarketInfo(Symbol(), MODE_TICKVALUE); If (Point == 0.001 || Point == 0.00001) TickValue *= 10; Is the equation in Red above a typo or ??? If not what does it mean and what mathematical calculations are being done...
[Deleted]
I cannot have the trailing stop triggered. I don't know why. Here is the code: extern int ticket; extern double SL; // -> Stop Loss void Trailing () { int TrailingStop=MarketInfo(Symbol(),MODE_STOPLEVEL); if((OrderSelect(ticket,SELECT_BY_TICKET)==true) &&...
The following was prompted by a query from fbj in 'Can I code in MQL to turn on and off an already running EA? ' Posting this as a new topic to give it slightly wider attention, because I don't think it's been done before and it's a fun little experiment. It demonstrates using a DLL to subclass a...
[Deleted]
can anyone advise, what's the coding for at the start of each candle (different from the time frame you are using for the EA itself) thanks!
[Deleted]
This is my first encounter with this function. Comment("DayOfWeek() ", DayOfWeek()); When I run on strategy tester it shows me always number 5, no matter what day. Can somebody please help? Thank you.
[Deleted]
hi i have just switched to android from iphone and bought the new htc one x. The problem i have is that i have to always setup the symbols i trade every time i launch the application. It doesn't save the symbols like it does on the iphone version. i am not sure if its how i close the app that...
[Deleted]
BJ A TOUS, BESOIN D'AIDE..je développe une methode trading forex et, je recherche un indicateur avec alerte "popup" pour savoir : quand la ligne de cotation coupe (hausse/baisse) mes lignes exterieurs de bbollinger. Merci ! celui qui me trouve ca recevra ma methode !!
Hi All, I am hoping that someone has seen this before. I have an FXCM MT4 b419 system running on a VPS. Occasionally when I log into the VPS I find MT4 is closed. The VPS hasn't been restarted and it looks as though MT4 has crashed. Anyone seen this before, or have any ideas how to replicate the...
[Deleted]
According to the official MQL4 documentation for trading functions (https://docs.mql4.com/trading) a MetaTrader 4 Client Terminal has only one thread for trading operations which means only one trading operation can be executed at the same time - others fail with the error 146...
[Deleted]
hey, i am trying to check for intersection between ma 20 and ma 50, the function i wrote seem to work, but its seems to be non consistentic. sometimes (depends of current value) the intersection accures when the substraction of the two MA's is ~0.2 and sometimes its ~1.4. how can i determine for...
[Deleted]
What is the shift parameter for? It was explained as "Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). " which i could not understand what it means? Say i was to get the value of previous bar closing price, i should use -1, 0...
Trying to figure out a 'kluge' / 'work around' for Conditional Branching/GoTo in MQL4
How to configure MT4 to send a email with my account balance every X minutes? Is it possible? Thanks.
[Deleted]
Usually, many of you trade on 1 chart - on 1 pair - having a constant profit from one chart - I went further --- and decided to shelve the currencies - the euro to the euro and then the hedge The market is a converter! All pairs are interrelated and USD is the main reserve currency - and usually
[Deleted]
Good evening! I want to calculate the lotsize depending on the risk per trade. Therefore I calculate the value per pip like that: double pips2dbl; if (Digits == 5 || Digits == 3) {pips2dbl = Point*10;} else {pips2dbl = Point;}double pip_value = (pips2dbl/Ask) * 100000; If I do that calculation...
[Deleted]
First, this is a simple admission: I am feeling like I'm crap at this coding 'Milarkey' at the moment, but I am not giving up!! The following is a mash-up of code which I have stitched together whilst I am learning. What I am trying to achieve is link the Indicator to the EA so it will trade...
[Deleted]
What's better in terms of performance? : Use global variables for acces them from differents functions in the EA, or declare as local in start function and pass through parameters to other used functions? (like indicators, that are re-calculated every time in the start loop) Thanks
Can anyone help me explain how this vr--setka ea work... this ea make unbelievable 200% profit in 3 months when i tested it in strategy tester even though i know its impossible for this ea to keep get profit that much in the other months... or in real trading.... maybe january from march is an...
I adapted the 3_bar_swing.mq4 indy to have fewer criteria so that lows are not considered in the downswingbar and highs are not considered in the upswingbar I would like to adapt it further to cope with situations where there are equal highs and equal lows in the pattern so, the downswing bar would...
[Deleted]
My expert uses bar data to analyze the market. Sometimes (rarely) you get a message in the chart "WAITING FOR UPDATE", which I assume is due to some lag between my computer and the server. The problem is, right after that message disappears and the bar chart is displayed again, the expert just stops...
[Deleted]
Hi, I wonder if anyone has come across this problem. I run Win server 2008 16gig Memory and 8 core processor. When i launch more than 86 meta traders on the server, The CPU runs about 10% and memory used is less than 5 gig, But I start to get this error, "Failed to create empty document" in an MT4...
All, As per thread http://www.forexfactory.com/showthread.php?p=5662238#post5662238, the broker's MT4 server keeps terminal login active for 30 seconds only, after the last 'activity' from the terminal. Therefore, if you send a order after a period of inactivity, a fresh login is done which...
I am in search of a good, stable, easy to use, clean news calendar indi that will allow me to plot the red flags news days onto my chart. I do not need my chart to look like a xmas tree:) So if I could select which type of news, that would be great. Some of what I've seen are just too noisy/busy....
Any Acccurate indicator in forex market, already we paid somany trading system. please provide us any accurate indicator or website.
[Deleted]
Hi does anyone know when we select the trades by position eg 0, 1, 2 in the 'trade pool' and 'history pool'. 0 mean the trade at the top of the list. But is this affected by how the rows are sorted when we manually clicked the column headers ? Would it affect how the EA select trades, if we click on...
[Deleted]
Hello I managed to install the same MT4 version from the same broker, displaying prize information with 5 digits (with tick) and in the other version only with 4 digits (without tick). Is there a parameter in MT4 which controls the format of the prize info or is this a broker controled issue ? If
How do I test my indicator with MT4 ? I would like to run it like I test an EA.
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.