HA Difference

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

Moderator: admin

HA Difference

Postby Alexander.Gettinger » Sat Nov 24, 2018 1:05 pm

Formulas:
haOpen[i] = (haOpen[i-1]+haClose[i-1])/2,
haClose[i] = (Open[i]+High[i]+Low[i]+Close[i])/4,
haDiff[i] = haClose-haOpen,
Signal = MA(haDiff),
MA - moving average with [Method] as type and [Length] as number of periods.

haDiff.PNG


Download:
haDiff_JS.jsl
(3.25 KiB) Downloaded 412 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 5 guests