| 0 comments ]

metatrader 5


A new article about custom indicators in Metatrader 5 was posted today on the mql4.com website. It explains the MQL5 indicators, their structure, drawing, types and their programming details, comparing to MQL4. Also, 7 new custom indicators were presented with the article.

Read

| 0 comments ]

A script which converts MQL 4 code to MQL 5 code was developed by Keiji and Circlesquares on the MQL4 forum.

First, download the following files and place them in your Metatrader 4 / experts / include folder

- mt4accountinfo.mqh
- mt4string.mqh
- mt4datetime.mqh
- mt4objects_1.mqh
- mt4timeseries_2.mqh

Rewrite MQL 4 to MQL 5 Script

Now, download the latest version of the rewrite script and place it in your Metatrader 4 / experts / scripts folder:

- mq4to5rewrite_sample_v4_2.mq4

After that you will need to place a mql4 indicator, script or ea which you want to convert to MQL 5 in your Metatrader 4 / experts / files folder. Now open Metatrader 4 and run the script. As you can see you must first provide the name (without extension) of your mq4 file and select if it is an indicator (0), EA (2) or script (3) file.

Rewrite MQL 4 to MQL 5 Script

In my case i'm rewritting a MQL4 indicator named ang_DCT:

Rewrite MQL 4 to MQL 5 Script

Now hit the "OK" button and if everything is done, the following message will appear:

Rewrite MQL 4 to MQL 5 Script

After that go to your Metatrader 4 / experts / files folder and you will find the converted mq5 file there:

Rewrite MQL 4 to MQL 5 Script

Now open this file with Metaeditor 5 in compile it:

Rewrite MQL 4 to MQL 5 Script

Try to fix the errors with the MQL4 to MQL5 Porting Table and the last version of the translated MQL5 user guide.

| 0 comments ]

FraMa Cross Indicator and EA (author - Paul, see his blog Paul's Forex random walk)

This indicator will show a fast and slow Fractal Moving Average (FRAMA) and places arrows at the open of each bar following an MA cross event. FRAMA is an exponential style moving average and can be a valuable technical indicator because it rapidly follows significant changes in price but becomes very flat in congestion zones so that bad whipsaw trades can be eliminated. The FRAMA is an alternative indicator to the default fractals that is included with the Metatrader 5 installation. Read more about the background of FRAMA here.

FraMa Cross for Metatrader 5

FraMa Cross for Metatrader 5

You can customize the fast and slow MA period. The EA is triggered using the indicator. Because the strategy tester is not available yet, the EA can not be tested for it's effectiveness.

Paul also wrote a useful MQH include file which converts error codes and OrderSend results to strings and a debugging file.

Go to Paul's blog and download

| 0 comments ]

Another 2 new indicators for Metatrader 5:

1. Bma Indicator ( author - Andrei, see original post here)

metatrader 5 bma indicator

BMA (Bands Moving Average) is a modified moving average indicator that comes with Metatrader 5, with 2 more bands added to it. One band is below the main line by 2% and the other — above by 2%. This indicator can be used as the pull-back detector: when the price breaks through the upper band on the long-term bearish trend — it’s a signal to sell and when the price break through the lower band on the long-term bullish trend — it’s a signal to buy. So the BMA indicator can be helpful in identifying overbought or oversold conditions on the market, however, it's probably best to make decisions on whether to buy or sell using moving average bands in conjunction with other technical analysis indicators rather than on their own. I personally wouldn't use it as a signal indicator. Remember, moving averages are a "lagging" indicator. The longer the MA's length, the longer it takes for that moving average to react to severe price swings, such as gaps. Thats why it often works better on smaller timeframes like H1 and below, so using it as a scalping method is a good idea.

As you can see in the picture above, you can change some properties of this indicator like the MA period and the % of shift, in our case it is 2%, but you can off course experiment with other settings.

Download



2. Double smoothed stochastic indicator (author - mladen, originally posted here)

metatrader 5 double smoothed stochastic indicator

This is a modification of the standard stochastic oscillator. As you know, stochastic identifies overbought and oversold conditions on the market, helping to buy low or sell high. It also helps to avoid buying at high prices or shorting at low prices. However, it does not work well on trends! So it should be only used as part of the trading strategy not as signal indicator. Better use MACD for signals. ( This is only my personal opinion based on my trading experience ;) ).

You can change the stochastic period, smoothing period and overbought/oversold levels.

Download

| 0 comments ]

A useful script for changing the timeframe with a hotkey (author - sergeev)

With this little scripts you can change the current timeframe in Metatrader 5 to the previous or next timeframe, for example H1 <- H2 -> H3 with a custom hotkey.

First, place the NextTF and PrevTF scripts in the MetaTrader 5\MQL5\Scripts\ folder:

metatrader 5 timeframe script

Then, right click with your mouse on any script and press "Set Hotkey". Now set a custom hotkey that is easy for you to press and to remember. I personally use Ctrl + N for the next timeframe and Ctrl + P for the previous timeframe:

metatrader 5 timeframe script

Close the properties windndow and test it out. Cool isn't it? BTW, you can also add a hotkey to the Delete all Objects Script, in my case this is Ctrl + D.

Download the NextTF script
Download the PrevTF script
View the MQL5 source code of the NextTF script
View the MQL5 source code of the PrevTF script

| 0 comments ]

More new indicators for Metatrader 5 have been posted recently:

1. Market Profile Virgin POC, Enthios Universal System (author - vdv2001)

This indicator is based on the Enthios universal system. The system is based on trading the bounces from areas of strong support/resistance which is described in detail here.

Enthios Universal for Metatrader 5

You can customize some properties, i have added translation:

Enthios Universal for Metatrader 5

Download
(Indicator is posted here)



2. Color MACD (author - Mladen)

MACD stands for Moving Average Convergence / Divergence and shows the difference between a fast and slow exponential moving average (EMA) of closing prices. MACD is a very popular technical analysis indicator that is used in many trading strategies (including mine :) ). The standard MACD indicator in Metatrader 5 has only 1 color, this one has 4 which you can customize as you want.

Color MACD for Metatrader 5

Download
(Indicator was originally posted here)



3. Tape MACD (author - Mladen)

This is a "tape like" MACD. The difference between the MACD and the signal line is plotted as a tape instead of plotting two separate lines. You can customize the MACD variables and the colors.

Tape MACD for Metatrader 5

Download
(Indicator was originally posted here)