[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ELA Help Please



PureBytes Links

Trading Reference Links

The MRO() function should do the trick. Here is how
you would use it:

If MRO(H>H[1], 8, 4) <> -1 then ...

MRO(H>H[1], 8, 4) will look for the fourth instance of
H>H[1] in the last eight bars. And it will return -1
if it does not find a fourth instance of the condition
you are looking for in the last 8 bars. 

H

--- bkmk <bkmk@xxxxxxxxxxxx> wrote:
> I’m trying to write a code that contains a statement
> referring to 4 higher
> highs. They do NOT have to be contiguous, just 4
> higher highs based on the
> last eight bars. I can write it as 4 contiguous bars
> but I don’t know how to
> write it if the bars are not next to each other. I
> hope I explained it well
> enough and any help will be greatly appreciated.
> Thanks.
> Barry
> 
>