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

Re: [amibroker] Bar query



PureBytes Links

Trading Reference Links

Actually, I think I may have solved my own query! =-O

To check for a bar crossing below an MA you would test the L. To check for a bar being below an MA, you would simply test the H.

Thanks,
Andrew.
Hey all,

How do I test whether a bar has (a) crossed an MA and, (b) remained
below an MA for, say, 2 days in a row? I know how to test for each of
OHLC crossing individually, but what the about the whole bar itself?

Cross(EMA(C,Days),C);  // C crosses below EMA - days being my predefined
term for the ema

Am I correct in thinking that separate statements (as per above) for
each of OHLC  will never return a value because the H cannot be crossing
AND be below the EMA on the same bar? Or am I confusing the issue?

Many thanks,
Andrew.



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links