Advertisement
retesere20

Untitled

Jul 11th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. inputs:
  2. Price( numericseries ),
  3. Length( numericsimple ) ; { this input assumed to be a constant >= 1 }
  4.  
  5. variables:
  6. SmoothingFactor( 2 / ( Length + 1 ) ) ;
  7.  
  8. if CurrentBar = 1 then
  9. PZXAverage = Price
  10. else
  11. PZXAverage = PZXAverage[1] + SmoothingFactor * ( Price - PZXAverage[1] ) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement