Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.03.01 15:57
Libraries

Trading signals module based on WPRSIsignal indicator - library for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
2419
Rating:
votes: 14
\MQL5\Indicators\\MQL5\Include\Expert\Signal\MySignals\
wprsisignal.mqh (12.79 KB)view
\MQL5\Experts\

The signal is formed when a bar is closing. WPRSIsignal indicator's color arrow serves as a market entry signal.

Place WPRSIsignal.ex5 compiled file to the terminal_data_catalogue\MQL5\Indicators.

Creation of a trading robot based on this trading signals module has nothing special in it. It has been described in details in the article "MQL5 Wizard for Dummies". The general idea of creating a trading signals module has been described in the article "Simple Trading Systems Using Semaphore Indicators".

Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.

Fig.1. Deals examples on the chart

Fig.1. Deals examples on the chart

Testing results for 2011 at NZDUSD H4:

Fig.2. Test results chart

Fig.2. Test results chart

Note:

The Expert Advisor generated using MQL5 Wizard chooses the moments for opening and closing positions based on the results of the "voting" of trading signals added during the Expert Advisor creation. The main trading signals module (containing all added ones) also takes part in the "voting" but its LongCondition() and ShortCondition() methods always return 0.

Since the smoothing by the number of present modules (basic one + one additional module) is performed during the "votes" calculation, threshold values should be indicated considering this fact. For this reason, Signal_ThresholdOpen and Signal_ThresholdClose values must be set to 40=(0+80)/2 and 20=(0+40)/2, respectively, after creation of the Expert Advisor code using MQL5 Wizard.


Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/843

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Holt's double exponential smoothing trend Holt's double exponential smoothing trend

Holt's double exponential smoothing - the trend component (mt4 version).

Holt's double exponential smoothing (mt4 version) Holt's double exponential smoothing (mt4 version)

Holt's double exponential smoothing with linear forecasting.