MA Histogram and Slope Line

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

MA Histogram and Slope Line

Postby Apprentice » Thu May 08, 2025 5:21 am

EURUSD m1 (05-08-2025 1220).png

Based on the request.
https://fxcodebase.com/code/viewtopic.p ... 84#p159184

Histogram

Displays the difference between MA1 and MA2

Dynamically colors the bars:

Blue (UpColor) when value > 0

Red (DownColor) when value < 0

Slope Line

Shows the slope calculated as:
MA2[period] - MA2[period - Shift]

Plotted with user-defined color, width, and style.
MA Histogram and Slope Line.lua
(8.65 KiB) Downloaded 168 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38956
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests