retesere20

Untitled

Jul 11th, 2018
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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] ) ;
RAW Paste Data