fxcodebase-backup

USDX Slope

Source: https://fxcodebase.com/code/viewtopic.php?f=38&t=63997
Forum: 38 · Topic 63997 · 1 post(s)


USDX Slope

Apprentice · Thu Oct 20, 2016 3:37 am

USDX_Slope.png

LUA Original: viewtopic.php?f=17&t=2304

Description:

This indicator (Colored Histogram) uses other 2 indicators:

This USDX Slope Histogram will be colored according to the following scenarios:

UpUp: Slope Line going Up and current USDX greater than previous USDX (Lime) DnUp: Slope Line going up and current USDX lower than previous USDX (Yellow) UpDn: Slope Line going down and current USDX greater than previous USDX (Red) DnDn: Slope Line going down and current USDX lower than previous USDX (Magenta)

For ease of use, both calculations of the above described indicators were incorporated into the histogram.

Slope_Direction_Line.mq4

USDX.mq4

USDX_Slope.mq4