Hi. I'm TOBY.

self response...
I made function. OK. Thanks.

--------------------
function ContiguousCross(BuyArray, SellArray)
{
        condition = Null;
        for( i = 1; i < BarCount; i++ ) {
                if (BuyArray[i]) {
                        condition = True;
                } else if (SellArray[i]) {
                        condition = False;
                }
                result[i] = condition;
        }
        return result;
}


Buy = ContiguousCross(Cross(Value, LineA), Cross(LineB, Value));
Sell = NOT Buy;
--------------------

http://tobysoft.net/archives/AmiBroker/CrossSignalB.png
--
TOBY
E-MAIL: t-o-b-y(at mark)tobysoft.net
URL: http://tobysoft.net/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to