Intraday Momentum Index

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

Moderator: admin

Intraday Momentum Index

Postby Alexander.Gettinger » Wed May 02, 2018 11:32 am

Meaures the percentage of the underlying symbol upwards price change to its total price change during a specified number of periods.

Formula:
IMI = 100*U/(U+D), where
U = MVA(Up),
D = MVA(Down),
Up[i] = Close[i]-Open[i], if Close[i]>Open[i], else Up[i] = 0,
Down[i] = Open[i]-Close[i], if Close[i]<Open[i], else Down[i]=0.

IMI.PNG


Download:
IMI_JS.jsl
(3.13 KiB) Downloaded 402 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 22 guests