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

Re: iif help



PureBytes Links

Trading Reference Links

Hi David,
Please specify the condition in filter 2.

EMA(Close,130)* ATR(10) to do what?
then we shall make the rest.
DT
--- In amibroker@xxxx, "David Holzgrefe" <dtholz@xxxx> wrote:
> Hi ALL hopefully someone will help me with this problem I just 
don't seem to grasp how to use the iif statement despite reading the 
help notes 1,000,000 times :)
> 
> what I would like is that buy to be signaled if filter1 is true 
then buy when filter2 is ALSO true 
> 
> 
> 
> filter1= H >EMA(Close,130) and EMA(Close,250) > Ref(EMA(Close,250),-
10);
> 
> filter2 = EMA(Close,130)* ATR(10);
> 
> if filter1 true then buy next bar that filter2 is also true 
> 
> Thanks David






  • References: