Thread: Cross!
View Single Post
  #146 (permalink)  
Old 05-16-2008, 08:01 PM
dvarrin dvarrin is offline
Senior Member
 
Join Date: May 2007
Posts: 150
dvarrin is on a distinguished road
Any Genius out there?

Hi,

I would like to create an EA or indicator that can find a local minimum of a moving average of PRICE_HIGH and the local maximum value of a moving average of the PRICE_LOW.

For example on the chart in attachment, I've drawn the EMA(5) of the highs and the EMA(5) of the lows. In blue, there are the maxima or minima I would like the system to find. In violet, those are the maxima or minima the system should discard.

Is it possible to code something like that? I've no ideas on how to do it.
Attached Images
File Type: jpg MAs.jpg (407.2 KB, 581 views)
Reply With Quote