Quantcast
Channel: MQL5: MetaTrader 5 trading, automated systems and strategy testing forum
Viewing all 75046 articles
Browse latest View live

strict mode - i need to close #import 's somehow please help!

$
0
0
#import "wininet.dll"
int  DeleteUrlCacheEntryW(string filename);
#import "urlmon.dll"
int  URLDownloadToFileW(int caller, string url,string filename,int reserved,int callbackstatus);
#import
#property strict
Please read the documentation.

OnBookEvent() and Strategy Tester

$
0
0

Hello,

Could anyone confirm if book events are or are not handled by the OnBookEvent() method when executing EA in the Strategy Tester? My personal experience is that the method is never called in test mode.

Thank you,
Fábio 

Attaching EA to open position

$
0
0

Hi there

Can anyone advise on how to attached an EA to an opened position?

Thanks

Indicators: Average of ATR

$
0
0

Very nice indicator. I never thought of using ATR that way.

Do you know of a ATR build where you can place a buy /sell order at say .20% of ATR added or subtracted from dochian channels ?

Problem with the EA

$
0
0
hello, can anyone help me out with an EA there is some problem on it. when ever it wants to buy it sells and it sells wen it wants to buy....
please can some one re-code the EA and change the order..

i want most profitable e.a.

$
0
0
thank u all for comments and valuab;e feedback

help modify indicator Bollinger band for MT4

$
0
0

Hello everyone, I wanted to ask a question to some expert programmer mql4, I hope to make myself understood at best. in practice, I would make sure that the indicator Bollinger can cross candles chart as if it were a simple MA but with the characteristic of the MA Bollinger that expand with the volatility

I hope some good programmer can help

Kosta

PS sorry for my english 

 

 

 

 

 

 

 

This is the result of BB modified

How to attach EA to an open position

$
0
0

There are some and possibilities to do that from my point of view ...

Like, do you want to manage a specific order on an account while other orders are opened manually to,

or, are the other orders are opened by other EA? ... are they of the same pair?

For every possibility, there is a specific solution, like you need to write a specific comment if other order is 

manually opened and make the EA manage only orders having the same comment, or if other EA is used

and no other manual orders are used, then, it is enough to make the EA manage orders with magic number

having value of zero, ...

I attach here an EA, it not my code, it manages any opened trade opened in the trading account regardless

of it's magic number ... It can be adjusted easily to mange only manual trades, or trade only trades of a

specific EA buy using it's magic number ... 


Can CUDA of GPU of NVIDIA be used for the backing test of MT4?

$
0
0
Asking because, wondering if you mean use the graphics processor as an agent like the CPU cores are?  If this is what you mean, I have no idea.

Indonesian Member

$
0
0
Hardi Gunadi:
Me. From Jakarta, Indonesia. How are you? Is it okay to write in our own language?
On this particular part of the website, no.  This is the English section, so it is preferred that you use English.  The downside being I do not know if they have a section that it is allowable to use any and all languages.  If there isn't something like that, it would be a good idea to throw around to MQ for possible expansion to the site.

get rid from warning : about PlotIndexGetInteger & PLOT_LINE_COLOR

$
0
0

I am going on the presumption that MQL in this is close enough to other programming languages, so this explanation is based on my Java experience, as limited as it is.

The program is looking for a certain type, be it integer, double, string, boolean, whatever the case may be.  Now if you convert a double (which is one of the types that allow usage of decimals) to an integer (whole numbers only) then you will get a warning like this, because depending on how the conversion is done, the resulting integer could either be the next whole number up or down, but either way, anything to the other side of the decimal is basically lost.  Loss of precision I think is how I remember it worded before.  Basically, that is all that warning means.  Somehow, somewhere in that program associated with that line is code that is causing a type change that is possibly causing your program to lose data.

Judging from the highlighted section, which I presume where your error is showing, whatever number the PlotIndexGetInteger method is getting is not an integer, but something different, and this method converts it to an integer because that is what that section of code is designed to do, judging by the method name.

How to fix it, that would depend more on the rest of the program.  I am not a professional MQL programmer, so I am not 100% sure how it works in this situation, but taking a wild guess at it, if there is a similar method that does almost the same thing as your GetInteger version, but just a regular number, I would try using that method instead.  It might not solve the problem either because the method might be calling something else that is creating this programming change.

What the most important thing in forex?

$
0
0
Wan Azaha Wan Jusoh:

Nice explanation very much thank you.. for conclusion the point:

1. careful

2. Dont emotional

3. education

4. start with demo account 

You are welcome.  While I didn't get into specific details on some of it, just a broad overview, and the others gave a more detailed explanation which is basically the same types of things.  The money management part (MM) falls partially under the education part and under the first part I said being inclined to prevent losing all of your money.  The thing is, when you ask a question like this of say 100 people, you are likely to get 150 different answers.  That, to me, is where the education part comes in.  While each specific section you listed here is true, the underlying things like money management and the rest each have a little bit in each of them.  It is not 100% clear sometimes what section each item falls into.  Like Toby's post of knowing when to take a loss and when to take profit can fall under education, money management, emotions, and greed.  Each trader is different, so the stuff that one person should focus on is not necessarily the same things that another person should pay more attention to.

How to gain maximum profit with small balance?

$
0
0
Could be all one or the other or a varying combination of the 2.  I would be wary of the people who claim to have huge growth in a very short period of time.  Not that it is not possible, but it seems very unlikely.

Can still get long history-period test quality improved to over 90% from now on?

$
0
0
Is it possible that there is another product on the market that does the same thing, but is still free?  IDK specifically what it is you are looking for so cannot say for sure if what you need is there still or not.

Service Desk

$
0
0
Phil4910:
No respect of the due date. No reply to my many emails. Work already requested 2 times. On May 07th, this work should take only three days according to the developper. I request the cancellation of the job and I want the money back to my account.Phil4910
This is not the service desk, this is a topic of discussion about the service desk.  To contact the service desk directly, mouse over your user name on the upper right, go to your profile area, and click the service desk choice on the bar/menu on the left.

refresh

$
0
0
I don't think you mean price recalculation, since the price is sent to your platform from the system.  But as far as forcing the refresh using the most up to date price information at that time, I do not know, sorry.

What is Money Management in detail?

$
0
0

Explaining money management for some might be the simplest thing in the world, not so much for me.  Basically Money Management (or MM) is a short way of explaining only pay out as little as possible and bring in as much as you can.  Explaining how to accomplish that is less easy to explain.  One way of looking at it I have heard explained is knowing when you should cut your losses, and when to let your profits ride (get as high as they can on the trade you are in).  Different people accomplish this different ways.  Some people are day traders, and will sit there all day in front of the screen, paying attention to how their thoughts or their system tells them IF they should even get into a trade or not, and if so, at what price point.  That experience they have, or a trading system for some, also tells them at the top end when to exit the trade.  It also has the flip side, of knowing when you are in a trade, and it goes against you, when you should exit, or if it is a minor price drop and getting out will basically lose you money because after this small price drop, the price is going to jump up 10 times what it went down.  If you exited the trade then, you would have missed out on all those profits.

That is where the money management part comes in.  There are times when you will lose money on a trade.  Unless you are inhumanly lucky, that is the only 100% guaranteed thing in trading.  The money management part as it applies here is knowing when to get out of a bad trade, even though you would be losing money on the trade.  If you do not do this part right, you can lose your entire account in one trade.  There is no way every single time to get every single cent out of every trend that happens.  The trend trading systems out there all have different ways of determining if a trend is happening, with support and resistance lines, history charts, and a whole bunch of different indicators with different names and different items that they are showing you, the trader.

The thing with any of these systems or indicators or any of it, is there is no magic solution to trade on every single tradeable item on every single time frame under all market conditions.  That is where the Money Management part comes in to play.  The day traders might not have something they specifically call it, but that is what makes a day trader successful, knowing when to call it quits on a bad trade, and knowing when to get out on a good one before it turns around and becomes a bad one.  What us (I hate to use this term but...) "casual" traders have to make use of is the same idea if we sit there and "day trade" a few hours a day or else use a system that has money management of some sort built into it.

chart period

$
0
0
Hi, I am new to this. Just wandering how to add a 10 minute period to my chart. Thanks!

Press review

$
0
0

EUR/USD Forecast June 29 – July 3 (based on forexcrunch article)

EURUSD was watching Greece very carefully with contrasting news causing confusion. The story became more dramatic after markets closed with the announcement of post-deadline referendum. In the last and busy week of H2, we have important inflation numbers and PMIs. Here is an outlook for the highlights of this week and an updated technical analysis for EUR/USD.

The reported breakthrough in the Greek crisis on Monday did not last long as the skies darkened on Wednesday and Thursday. New hopes for a deal on Friday still lacked a few key factors. The euro has been reacting to the headlines, but often falling on good news. One reason is the refocusing on monetary policy divergence, that favors the dollar, and the other is that the common currency has become a funding or even a “safe haven” currency. But, in case of a “Grexit” or a “Grexident”, it is clear that the euro would plunge that is already worrying some brokers. The most recent development was the announcement of a referendum on the rejected proposals. This is planned for after the deadline, assuming that the Eurogroup approves a temporary extension of the deadline, which seems unlikely as of Saturday at noon. And, the referendum law still has to pass in the Greek parliament.  The crisis has overshadowed data, which has been balanced: better than expected PMIs but a weak IFO read. In the US, figures have been more positive than negative, with home sales leading the way ahead of a busy but short week in the US.

  1. Greek crisis events: Eurogroup meeting on Saturday at 12:00 and ongoing talks all the time towards the June 30th deadline. This is when the current extension of the bailout expires, and also when Greece has to pay the IMF – payments it “bundled up” in early June. In the meantime, Greek banks lack cash and they depend on the now daily decision of the ECB. The ECB uses its Emergency Liquidity Assistance tool to lend money to the banks. In case of no deal during the weekend and no additional ELA, banks could remain shut on Monday. At the time of writing a 5 month extension was discussed, but things are extremely fluid. Markets would cheer any resolution that puts the topic to sleep, even if it is merely another can kicking exercise.  More: 3 EUR Scenarios Our Greek Playbook– Morgan Stanley.
  2. German CPI: Monday, during the morning with an all German publication at 12:00. Inflation is beginning to show signs of recovery from the lows. In May, prices beat expectations and CPI advanced 0.1% m/m, as oil prices stabilized in recent months. The initial number for June will likely show a rise of 0.2%.
  3. Spanish CPI: Monday, 7:00. The euro-zone’s fourth largest economy is one of the countries that suffered most from deflation, but this is beginning to wane off. After a y/y fall of 0.2% in May, we could see a better number in the preliminary read for June: -0.1% is on the cards.
  4. German Retail Sales: Tuesday, 6:00. The zone’s locomotive has enjoyed a big rise of 1.7% in the volume of sales in April,, but this may have been skewed by the Easter holiday. A modest rise of 0.3% is on the cards now.
  5. French Consumer Spending: Tuesday, 6:45. After a big fall in April, consumers in the continent’s second largest economy picked up spending in May with a rise of 0.1%. Another advance could be seen now, worth 0.3%.
  6. German Unemployment Change: Tuesday, 7:55. Unemployment is falling in the continent’s largest economy, but the drops have been smaller in recent months. After a drop of 6K unemployed in April, a similar number could be seen in May: -5K. The employment numbers have a political impact.
  7. Flash CPI: Tuesday, 9:00. After a long period of extremely low levels, core inflation finally picked up in May and reached 0.9% y/y. Headline inflation, which is the ECB’s target, stood on 0.3% y/y, and the numbers are still affected by the fall in oil prices. A moderation is expected now, with a 0.2% rise in CPI +0.8% in core CPI.
  8. Unemployment Rate: Tuesday, 9:00. Contrary to German unemployment, the situation in the broader continent are less encouraging. A level of 11.1% was recorded in April, a small improvement in comparison to previous months. No change is expected.
  9. Manufacturing PMIs: Wednesday morning: Spain at 7:15, Italy at 7:45, the final number for France at 7:50, final for Germany at 7:55 and the final all-European number at 8:00.  Spain continued enjoying significant growth in May according to Markit’s indicator, with 55.8 points in the manufacturing sector. A slide to 55.6 is expected for June. Italy, the zone’s third largest economy, was a bit behind with 54.8 points in May and 55.2 is predicted now. The preliminary number for France showed 50.5 points in June, finally in growth territory. Germany enjoyed 51.9 points and for the whole euro-zone the number stood on 52.5 points. All three figures will likely be confirmed now.
  10. Spanish Unemployment Change: Thursday, 7:00. Spain suffers one of the highest unemployment rates in the euro-zone, but the monthly changes in the number of unemployed are encouraging, even if they are impacted by seasonal factors related to tourism. A drop of 118K was seen in May and another fall is on the cards for June.
  11. PPI: Thursday, 9:00. Producer prices dropped by 0.1% in April, worse than expected, and showing that a real pick up in inflation is still a long way coming. A small rise of 0.1% is estimated now.
  12. ECB Meeting Minutes: Thursday, 11:30. In the latest press conference, Draghi was quite calm on the QE program and saw no need to front-load bond buying or react to volatility. We will now get an inside view on the internal talks within the Governing Council. What do the members foresee for the rest of the year?
  13. Services PMIs: Friday morning: Spain at 7:15, Italy at 7:45, the final number for France at 7:50, final for Germany at 7:55 and the final all-European number at 8:00. In May, the 58.4 score for the Spanish services sector reflected very strong growth, standing out from the rest. Did this continue in June? A score of 58 is predicted. Italy saw modest growth at 52.5 points and 52.9 is on the cards now. The initial French number for June was upbeat with 54.1 points, Germany saw 54.2 and the whole euro-zone at 54.4 points. The last three numbers are expected to be confirmed in the final read.
  14. Retail Sales: Friday, 9:00. April saw a rebound in consumers’ activity, with a rise of 0.7% in the volume of sales, countering a drop of 0.6% seen in March. Despite being released after the German and French publications, the all-European figure has a significant impact. A rise of 0.2% is predicted now.

Strategy tester cannot put template (possible bug) mt4 hot fix issue

$
0
0

Alain Verleyen:

      "Do you follow the link ? Not a bug, this "feature" is now removed."

A very desirable "feature" it was.

Like FIFO, 50-1 Leverage and No Hedging, the restriction on loading templates is designed - with irony - to protect us from ourselves.

Viewing all 75046 articles
Browse latest View live