result = hold(signal1,5) and signal2;

see HOLD() function in help

----- Original Message ----- 
From: "janhausd" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, April 06, 2008 11:56 AM
Subject: [amibroker] Generalized question - combining signals from multiple 
indicators


> Hi,
>
> I had a general question regarding how to combine signals from
> multiple indicators. For example, (assuming 1-min timeframe), if I
> have a signal from a moving average, and also one from macd (slightly
> lagging) 2 minutes later, what is the best way to I combine these 2 to
> set off a buy/sell trigger?
>
> I have seen some posts from others regarding a similar need, but
> haven't found any specific suggestions for how to deal with it. Is
> there a way to do this without adding in the complication of static
> variables?
>
>
> ------------------------------------
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
>
>
>

Reply via email to