Changes

Jump to navigation Jump to search

Confluence

357 bytes added, 17:01, 10 December 2013
no edit summary
NOTE: These default input values seem to work well on 30-min SPX
'''DerivativeMA FUNCTION CODE'''
<syntaxhighlight>
[LegacyColorValue = TRUE];
 
Inputs: Price(numeric), Length(Numeric);
 
 
VARS: DERIV(0),SUMD(0),LENG2(0),N1(0),DR(0);
 
DERIV= (AVERAGE(Price,Length)*2) - AVERAGE(Price,Length)[1];
 
SUMD=Length*DERIV;
 
LENG2=length - 1 ;
 
N1= (AVERAGE(Price,LENG2))*LENG2;
 
DR=SUMD-N1;
 
DerivativeMA = DR;
</syntaxhighlight>
'''CONFLUENCE FUCNTION CODE:'''

Navigation menu