Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Rejoignez notre page de fans
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Trend_Signal - indicateur pour MetaTrader 5
- Vues:
- 10780
- Note:
- Publié:
- 2018.12.18 19:21
- Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur 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
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/22437