lolo

Trend Force

Category: Indicators By: lolo Created: October 12, 2015, 8:04 PM
October 12, 2015, 8:04 PM
Indicators
3 Comments
Trend Force

The field “Trend Force” indicates the strength of the current bullish/bearish trend. The more strong the trend is, the more significant the reversal will be.

This indicator has been developed with the help of ProRealTime to regroup in the same indicator both bullish and bearish trends.

REM Determines strength of bullish trend
BullTrend = (CLOSE - LOWEST[20](LOW)) / AVERAGETRUERANGE[10]


REM Determines strength of bearish trend
BearTrend = (HIGHEST[20](HIGH) - CLOSE) / AVERAGETRUERANGE[10]

RETURN BullTrend AS"BullTrend", -BearTrend AS"BearTrend"

Download
Filename: Trend-Force.itf
Downloads: 121
lolo
lolo Average
This author is like an anonymous function, present but not directly identifiable. More details on this code architect as soon as they exit 'incognito' mode.
Author’s Profile

Comments

swapping
8 years ago
#

// --- property setting //Alpha = 40 // Transparency backgroundcolor // --- end // Determines strength of bullish trend BullTrend = (close - lowest[20](low)) / averagetruerange[10] // Determines strength of bearish trend BearTrend = (highest[20](high) - close) / averagetruerange[10] // Add Background Color in green if BullTrend Market or red if BearTrend Market if BullTrend > BearTrend then BackgroundColor(0,135,0,alpha) // green color else BackgroundColor(157,0,0,alpha) // red color endif return BullTrend coloured by BullTrend style(histogram,1) as "▲ Bull", -BearTrend coloured by BearTrend style(histogram,1) as "▼ Bear"

swapping
8 years ago
#

Trend Force with Background Color

Petrus
10 years ago
#

Hi Lolo.

 

If you put on the graph only the difference between both values, the result is much clearer:

REM Determines strength of bullish trend
BullTrend = (CLOSE - LOWEST[20](LOW)) / AVERAGETRUERANGE[10]

REM Determines strength of bearish trend
BearTrend = (HIGHEST[20](HIGH) - CLOSE) / AVERAGETRUERANGE[10]

dif=BullTrend-BearTrend

RETURN dif AS "Difference", 0 AS "Zero"

 

ProRealCode ProRealCode
Loading...