Balmora74

B.M.I. Angle of MA

Category: Indicators By: Balmora74 Created: March 1, 2019, 9:53 AM
March 1, 2019, 9:53 AM
Indicators
3 Comments
B.M.I. Angle of MA

The purpose of this indicator is to plot the supposed angle that makes a moving average of X period. The higher / lower the value, the strongest is the trend, it can also be interpreted as the speed of the market.

Other methods of calculation and discussions about this concept in this topic: Discussing the strategy VECTORIAL DAX (M5)

// --- settings 
//Periode = 10  //Période de la MM
//nbChandelier= 20 // Nombre de chandeliers sur lesquels on évalue la pente
// --- end of settings 

MM = Exponentialaverage[Periode](close)
ADJASUROPPO = (MM-MM[nbchandelier]*pipsize) / nbChandelier
ANGLE = (ATAN(ADJASUROPPO))
if angle>0 then 
 r=0
 g=255
else
 r=255
 g=0
endif


RETURN angle coloured(r,g,0) style(histogram) as "Angle", 0 as "level 0"

 

Download
Filename: B.M.I.-ANGLE.itf
Downloads: 407
Balmora74
Balmora74 Veteran
Code artist, my biography is a blank page waiting to be scripted. Imagine a bio so awesome it hasn't been coded yet.
Author’s Profile

Comments

brian gilbert
3 years ago
#

Hello, can you explain to me what are "pipsize" and "ATAN"? What functions do they have and what values do they usually have? Thank you for your help.

Bodaris
3 years ago
#

Bonjour, Je suis débutant 1 mois :p pipsize ressemble à la fonction pointsize et ATAN c'est l'arc tangente.

funkystuff
7 years ago
#

Salut Balmora, Ton indicateur est plutôt intéressant :) Penses-tu qu'il soit possible de l'adapter avec Ichimoku de manière à obtenir l'angle de la Tenkan et de la Kijun ? Réaliser un screener sur cette base serait super intéressant. Merci d'avance

ProRealCode ProRealCode
Loading...