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

Re: AFL Help request



PureBytes Links

Trading Reference Links

try as follows

AND EMA( Close, 21 ) > ref(EMA( Close, 21 ),-15);

like Ref(c,-15) will get u the close 15 days ago.

nand









--- In amibroker@xxxx, "pacific5_au" <pacific5_au@xxxx> wrote:
> Hi folks,
> 
> I am trying to add a simple filter to a system to stop entry into a 
> position where the moving average is dropping or going sideways, 
but 
> other criteria have been met.
> 
> I am trying to say todays EMA is greater than the EMA of 15 days 
ago.
> 
> This part is not working :
> 
> AND (EMA( Close, 21 ) > EMA( Close, 21 ),-15);
> 
> 
> 
> Any help will be appreciated.
> 
> 
> pacific