MACD of ATR oscillator

Here you can post and download custom indicators written in JavaScript.

Moderator: admin

MACD of ATR oscillator

Postby Alexander.Gettinger » Fri Dec 07, 2018 2:38 pm

The indicator shows the MACD adjusted for the values ATR.

Formulas:
MACD_ATR=MACD-Coeff*ATR, if MACD>0 and
MACD_ATR=MACD+Coeff*ATR, if MACD<0.

If the directions MACD and MACD_ATR are the same, MACD is in green (for positive values) or red (for negative values).

MACD_ATR.PNG


Download:
MACD_ATR_JS.jsl
(4.48 KiB) Downloaded 283 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to JavaScript Indicators and Strategies

Who is online

Users browsing this forum: No registered users and 7 guests