View Single Post
  #29 (permalink)  
Old 11-06-2006, 03:05 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy Xp Moving Average = Colored Moving Average!

Hi there!

1- I don't know what's going on! I'm sharing all of my works and didn't cheat one of you before! Any member here denies that???

2- Xp moving average is Colored Moving Average no less no more! So, if the moving averages indicators repaint the past (I'm sure they are not) then xpMA repaints the past.

The logic of coloring is very simple:

1- If the previous bar value is Greaterthan the current bar value color the moving average is Green.
2- If the previous bar value is Lesser than the current bar value color the moving average is Red.
3-If the previous bar value is Equal to the current bar value color the moving average is Yellow.

Repainting the past or repainting the future:
I want to mention another thing here. Repainting the past means repainting the future for the history!
I mean, I can write an indicator that looks for the next bar value which it exist only in the past (because in the current bar there's no next bar yet) That's the meaning of repainting the past I think!

Well, The answer is: XP Moving Average does not repaint the past!

__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote