GRUCHA Percentage Index

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

Moderator: admin

GRUCHA Percentage Index

Postby Alexander.Gettinger » Mon Aug 06, 2018 1:54 pm

Formulas:
Stream1=MVA(2*a1-HHV),
Stream2=MVA(2*a1-LLV),
Stream3=MVA((HHV2+LLV2+Price)/3),
Stream4=(Stream1+Stream2+Stream3)/3, where
a1=(HHV+LLV+Price)/3,
HHV[i] - maximum price from i-Period to i,
LLV[i] - minimum price from i-Period to i,
HHV2 - maximum price from i-Period/2 to i,
LLV2 - minimum price from i-Period/2 to i.

Grucha_Percentage_Index.PNG


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

Re: GRUCHA Percentage Index

Postby xristos1982 » Wed Mar 08, 2023 4:01 pm

Can i have this in Lua,please?
xristos1982
 
Posts: 37
Joined: Sat May 08, 2021 5:00 pm

Re: GRUCHA Percentage Index

Postby Apprentice » Sat Mar 11, 2023 4:04 am

We have added your request to the development list.
Development reference 228.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 33682
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: GRUCHA Percentage Index

Postby Apprentice » Wed Mar 15, 2023 4:16 pm

Try this version.
https://fxcodebase.com/code/viewtopic.php?f=17&t=73489

It is important to note that you can use JS versions the same way you would use lua versions.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 33682
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to JavaScript Indicators and Strategies

Who is online

Users browsing this forum: No registered users and 2 guests