Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inputs:
- Price( numericseries ),
- Length( numericsimple ) ; { this input assumed to be a constant >= 1 }
- variables:
- SmoothingFactor( 2 / ( Length + 1 ) ) ;
- if CurrentBar = 1 then
- PZXAverage = Price
- else
- PZXAverage = PZXAverage[1] + SmoothingFactor * ( Price - PZXAverage[1] ) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement