Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Trend_Risk_Indicator - indicator for MetaTrader 5

Views:
8072
Rating:
(19)
Published:
2018.09.27 16:08
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Trend Risk indicator finds trendy parts of the price movement and indicates the trend presence by a value in the buffer.

Can be used for flat trading - to disable trading when there is a possibility of price exiting the channel, in which trades are performed. During trend trading, the indicator can determine areas where the trend can be exhausted or it can slow down.

It has two input parameters:

  • Bands range - bands calculation range
  • Deviation - the deviation value (the width of the allowed channel)

Calculation:

Top = SmoothPrice + SmoothRange * Deviation Bottom = SmoothPrice - SmoothRange * Deviation

where:

SmoothPrice = (PrevSmoothPrice * (Bands range-1) + Close) / Bands range SmoothRange = (PrevSmoothRange * (Bands range-1) + High-Low) / Bands range

Signals:

If Close > Top

SignalBuffer = "Do not trade" = Top

If Close < Bottom

SignalBuffer = "Do not trade" = Bottom

The indicator displays colored Japanese candlesticks in a separate window - bullish ones are green, bearish ones are red. If a candlestick closes outside the channel formed by the bands, the candlesticks are colored in gray, and a value corresponding to the value of the broken channel line is added to the indicator signal buffer, which allows to determine the breakout direction from Expert Advisors and to limit trading in this or that direction, in accordance with the trading system used.

Fig. 1. Trading in the flat channel: Bands range = 12, Deviation = 1.8


Fig. 2. Trend trading (limitation): Bands range = 23, Deviation = 6.0

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21844

TMAGi TMAGi

The TMAGi indicator

T3 T3

The T3 Moving Average indicator

Blue Renko Bars Blue Renko Bars

An indicator for constructing Renko bars in the chart sub-window.

StepMA_3D_v3 StepMA_3D_v3

A trend indicator with three moving averages having different periods, using the Average True Range in calculations.