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

depth of market (DOM) - WhooDoo22

$
0
0
WhooDoo22:

Phi.nuts,

I opened a demo account on a different broker's server and the results are as follows-


Notice how the "Depth Of Market" tab is faded. I'm guessing this server doesn't provide DOM. Also,


and of course I attached the EA below for visual aid.

The EA basically only contains code from an example contained within MarketBookGet from the MQL5 reference.

Is it usual for brokers to not show DOM on demo account servers and only show DOM on real account servers?


Thank you

Its really is depend on broker whether they provide DOM data in its demo or live.

Here's mine with Alpari UK demo.

 

     

  

Were I Went Wrong?

$
0
0
surubabs:

Dear All,

I Edit an EA which works with BB and DEMA, I replaced DEMA as RSI, for some studyes perpous, but i get some error like,

'CopyBuffer' - no one of the overloads can be applied to the function call Bband.mq5 131 7

i am attaching the EA here,please advice me were i  went wrong, and guide me to solve it,expecing ur kind help.

Thanks in advance
Suresh 

When you have an error, click on the log and MetaEditor may show you where the error location in your code.

In your code, this is the error. You only fill 4 parameters of CopyBuffer when it should be 5.

   if(CopyBuffer(RsiHandle,0,0,rsiVal)<0)
     {

This is the correct one

   if(CopyBuffer(RsiHandle,0,0,3,rsiVal)<0)
     {

 

 

Traders Joking

$
0
0
Good morning

painting by 吴涛 / Wu Tao (China)

 

Timeseries access and documentation confusion re: CopyXXX() functions...

$
0
0
cowil:
...

angevoyageur - Basically what I'm trying to do is find a way to determine whether data returned from a CopyXXX is properly synced and correct (using start/end dates, rather than count) or still needs to be (partially) downloaded. At the moment, I'm doing a CheckLoadHistory() prior to every CopyXXX to ensure that the data is synced etc before a CopyXXX is done.

I looked at the operation of the function CheckLoadHistory(). This could be the solution to your problem :

SeriesInfoInteger(symbol,period,SERIES_SYNCHRONIZED);



Market Condition Evaluation based on standard indicators in Metatrader 5

$
0
0
So, nothing special with AUDUSD concerning market condition.

If meta trader is closed will signals still execute?

$
0
0
I am waiting as well (many subscribers incl myself will like TET).

OpenChart problems

$
0
0
jbru:

Hi,

I m trying to open a second chart for my EA, but whan I call "ChartOpen(_symbol, _period);" in OnInit() function, the thing is that TWO charts are opened instead of only one.

Any idea about why?

Thanks in advance

And so you have three charts instead of two charts ? Are you sure ? Because I try it and I have two charts, not three.

What operating system you use and what bit is it (32 - 64 bit) and what bit MT5 you running ?

Libraries: IsNewBar

$
0
0
Automated-Trading:

IsNewBar:

Author: Nikolay Kositsin

There is a little bug in your class (as in most of the functions I saw the code). First time you call you method IsNewBar, it always return true, irrespective of the existence of a real new bar.

But such a function contains a static variable, and therefore we cannot use several calls of this function.

One can also use a two dimensional array to keep last bar open time.


Signal Systems

$
0
0

This is backtesting results with the settings 'Balance + Sharpe ratio', EURUSD H4

 

 

 Set file is attached.

So, do you see how smoothing going on balance and equity? Yes, it is because of Sharpe. This kind of optimization is very good for lower timeframe to get the settings to trade with small deposit size.

That's all news for today.  


No demo servers available?

$
0
0
phi.nuts:
Read this to add new server MT5 Data - scroll down a little bit over there and see the picture. 


Thank you so much. I didn't know I could search for demo servers by typing "Alpari", for example, or any other broker. I thought I had to type in the exact server address. I still don't understand why MetaQuotes server (the first item in the list that comes by default) is not available - if they changed servers I'd expect them to update the software to reflect this change..

Anyway, it works now and I'm happy. Well, sort of, because the thread you mentioned talks about serious issues with the reliability of the data. Now that I have data I can worry about these issues :)


Thanks again!

depth of market (DOM) - WhooDoo22

$
0
0
RaptorUK:
We aren't allowed to discuss Brokers . . .   try one beginning with A . . . . .

Beat ya' to it pro :) I'm busy with other duties immediately but I clearly understand what your statement infers.


Thank you

Range Bars for MT5

$
0
0
dave2905:

Hello folks,

 

I'm a newbie to the MQL5 community so still finding my way around.

I've had the last two years trading with IG using IT Finance charts but had too many technical issues with them so here I am now using Alpari and the MT5 platform.

I would really like to use Range Bars but there doesn't seem to be any downloads for MT5....what is the best way to achieve this?

Can i convert an MT4 program to MT5 or is this not advisable?.....or do i just go ahead and buy the Range Bar plug in on the market place? (99.95 Credits)

As you can appreciate I'm trying to take the least expensive option so as to save a few quid but i won't compromise my trading and cut corners if it's gonna cause problems later on.

Has anybody used the Range Bar plug in on MT5? Can you give me any feedback.

 

Many thanks... 

Dave. 

 

MT5 plugin ?, I think what you meant was MT5 custom indicator.

Well, the cheapest one but will take some time is, you can learn to convert from MQL4 to MQL5 by reading MQL5 reference and some article like this one Transferring indicator from mql4 to mql5 or Migrating from mql4 to MQL5 (click that).

But if you're don't have much time (really ?, are you in a hurry ?) and willing to spend money, you can ask someone in job section to create one for you.

Just make sure you reading a lot anything from MQL5.com and this forum before making any decision (learn, job section, or buy in market) and using MQL5 search may be helpful.

Script close and reverse

$
0
0
zeno:

Hello,

I'm looking for a close and reverse order script. I've been looking on this forum and others online but don't see it for MT5 version (I have MT4 one). Is this standard feature available?

Thank you. 

Have you tried in codebase ? in market ? Otherwise you can order a job.

Multi Terminal for MT5

$
0
0
haniam:
Where can I a Multi Terminal for MT5 like the one for MT4 in order to be able to trade multiple accounts simultaneously?

Not available at the moment :(.

Probably, you will have to use MQL5 signal

Agents lie dormant


trix modified mq5 code

$
0
0

Please edit your previous post and to re-post your code using SRC button.

 

How to convert a mt4 indicator to a mt5 one

$
0
0
How to convert a mt4 indicator to a mt5 one so it works exactly as if you are using it in a mt4 platform

Help for SymbolInfoTick()

$
0
0
BigAl:
Thanks for the info very useful. I have noticed that when the demo system opens for trading on a sunday I get a 0 price when my EA starts executing. however, the third tick seems to be safe. In addition, if the demo system restarts during the week I get the same problem.

Simply at this to your OnTick() :

    if(!SymbolInfoTick(_Symbol, tick)) return;

Apparently, a tick is generate not only when bid or ask change. Is the market close or open when you receive an ask price of 0 ?

What's up with DEAL_ENTRY_* ?

$
0
0
S.L:

No, I don't think so.

This code does the same as mine (checks for DEAL_ENTRY), implying that all cases can occur. However, my problem is that only ever DEAL_ENTRY_IN is occurring, while all cases should occur according to buy/sell/reverse operations.

Subsequent checking for DEAL_TYPE will give additional information, however not relevant in my case (for it is only a simple test).

how bout this then... since you aren't calling HistorySelect(...), you aren't selecting from the latest history?

MY ADX EA NOT TRADING ! NEED HELP !

$
0
0
surubabs:

So what should i do, there is nothing wrong with the order type when i looked at,

is there any problem with the buy and sell condition ?

Pleasae help. 

  • Do not send 3 times same comment.
  • You can't simply copy and paste code, change indicator and hope that works. You have to understand what you do.
  • What you should do is to begin to learn to code by reading documentation.
  • Check journal and experts tabs to see error messages.
  • Do the modification that achidayat show you.
  • Verify that your broker allow "immediate execution" of order, if not, modify your code consequently.
Viewing all 75046 articles
Browse latest View live