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

Re: [amibroker] AFL drives me nuts



PureBytes Links

Trading Reference Links

Title: AFL drives me nuts
Null is a term for "having no value" or "value can not be determined" or "not available".

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Rush
Sent: Wednesday, April 05, 2006 3:22 PM
Subject: RE: [amibroker] AFL drives me nuts

Yep you’re right.  I always thought Null was 0.

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Paul Ho
Sent: 05 April 2006 15:02
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] AFL drives me nuts

 

anything that is added to NULL is null;

try result = 0;

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Rush
Sent: Wednesday, 5 April 2006 10:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] AFL drives me nuts

This looks correct and logical to me, but it doesn’t work.

result = Null;

        for ( i = 1; i < BarCount; i++ ){

                High1 = High[i];

                High2 = High[i-1];

                Low1 = Low[i];

                Low2 = Low[i-1];

                if((High1 > High2 AND Low1 > Low2) OR (High1 > High2 AND Low1 == Low2)){

                        result[ i ] = result[i - 1] + 1;

                }else if((Low1 < Low2 AND High1 < High2) OR (Low1 < Low2 AND High1 == High2)){

                        result[ i ] = result[i - 1] - 1;

                }else{

                        result[ i ] = result[ i - 1];

                }

        }

        Plot( result, "Digger", ParamColor( "Color", colorBlack ), ParamStyle("Style"));

Thanks




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