Guarda come scaricare robot di trading gratuitamente
Ci trovi su Twitter!
Unisciti alla nostra fan page
Unisciti alla nostra fan page
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
- Visualizzazioni:
- 11448
- Valutazioni:
- Pubblicato:
- 2018.12.18 19:21
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
Trend Signal trend-following indicator specifies the change of a trend when Close price breaks through the specified range of bars upwards or downwards.
The Risk parameter allows defining the distance from the extreme price for this period.
We define it as a percentage of the range for this period.
It has two configurable parameters:
- Period - range calculation period
- Risk - percentage of range over Period
Calculation:
- If PrevClose < Max and Close > Max
Upward breakthrough = Bullish signal
- If PrevClose > Min and Close < Min
Downward breakthrough = Bearish signal
where:
Max = max-(max-min) * Risk / 100.0
Min = min+(max-min) * Risk / 100.0
Max, min are the highest and lowest prices within the Period interval
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/22437