Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Visualizzazioni:
27593
Valutazioni:
(34)
Pubblicato:
2015.12.11 11:08
\MQL4\Include\Common\ \MQL4\Include\Divergence\ \MQL4\Experts\
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

The Expert Advisor uses signals provided by the DivergenceViewer indicator. This does not require the indicator to be present in the terminal folder. The EA configuration parameters include the "Divergence parameters" block, which duplicates the similar parameters of the indicator.

The EA opens deals when a divergence of a specified class is registered. The Stop Loss level is set behind the local extremum, reached by the price over the divergence formation period, at the distance of "Offset for Stop Loss, pts.". The Take Profit level depends on the distance between the deal opening price and the Stop Loss level. This ratio can be adjusted using the "Ratio of the TP size to SL" parameter.

For the Expert Advisor to properly detect the divergences, it is necessary to specify the amount of bars, sufficient for the correct calculation of the base indicator values, in the "Start bars count" parameter. For example, to calculate the values of the William Blau base indicator with the parameters 8000, 1, 1, the chart is required to have at least 8000 bars.

The detailed description of the Expert Advisor and thorough test results are given in the article The Divergence Expert Advisor.

Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/14277

iPulsar - indicator of critical price levels iPulsar - indicator of critical price levels

The indicator registers the price level breakout moments and the significance of these levels.

High, Low and Close of the previous day, week or month High, Low and Close of the previous day, week or month

The indicator shows the High, Close and Low of the previous day, week or month with time shift.

Close all locked orders Close all locked orders

The function closes all locked orders. This really saves money on the spread.

Lot-SL propotion Lot-SL propotion

The function returns the lot size, which is calculated based on the stop loss size and the risk specified in the variable.