Hi,

I'm having a few issues with some custom indicator design that I think should work its just a bit beyond my ability.

Is it possible to make an indicator thats kind of similar to the 'ZigZag' indicator using the conditions below for adding points to the indicator line each time the candles make a high.

-Using the previous 4 candles
-Candles shift back 3 and 4 are both 'up' ie The close is above the open.
-Candle shift back 2 is a 'down' candle, ie The close is above the open.
-Candle shift back 1 is lower than candle 2, ie The close of candle 1 is lower than the open of candle 2.

When those conditions are met it draws a new point for the indicator at the open of candle 2.

Then the EA will take the information from this indicator and trade accordingly. Eg if the last 'X number' of points are all higher it opens or similar.

Thanks in advance for any help.

Tom