Hello,
As a general note, you don't need IIF like this
IIF( upbar <= 0, 1, 0 )
because
upbar <= 0
is a logical (boolean) expression and as such returns true or false, but true is actually equal 1
and false is equal 0. So you don't need to write
IIF( upbar <= 0, 1, 0 )
because
upnar <= 0 is already giving you the same 1 or 0
So
countif = Sum( upbar <=0, 60 );
Best regards,
Tomasz Janeczko
amibroker.com
On 2016-05-02 22:57, pmxgs0@gmail.com [amibroker] wrote:
Hello,
you can try something like this:
countif=Sum(IIf(upbar<=0,1,0),60);
__._,_.___
Posted by: Tomasz Janeczko <groups@amibroker.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (4) |
Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
.
__,_._,___
EmoticonEmoticon