D oscillator

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

Moderator: admin

D oscillator

Postby Alexander.Gettinger » Wed Aug 15, 2018 2:25 pm

Oscillator based on two indicators: RSI and CCI.

Formulas:
Line1[i]=2/(Smooth+1)*StCCI+(1-2/(Smooth+1))*Line1[i-1],
Line2[i]=2/(Smooth*0.8+1)*Line1[i-1]+(1-2/(Smooth*0.8+1))*Line2[i-1], where
StCCI=[CCI_Coeff]*CCI[i]+(1-[CCI_Coeff])*StRSI,
StRSI=(RSI[i]-MinRSI)*200/(MaxRSI-MinRSI)-100,
MaxRSI, MinRSI is a maximum and minimum of RSI from [i-D_Period] to [i].

D_Oscillator.PNG


Download:
D_Oscillator_JS.jsl
(2.53 KiB) Downloaded 447 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 3 guests