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

[amibroker] Re: Why I find AFL painful to uee



PureBytes Links

Trading Reference Links

  Thanks Graham for your prompt and WORKING reply.

  Apparently, the mistake I made was trying to access the result of
the 'array' comparison outside an array based 'process' or command.
AddColumn obviously is operating at the array level. 

 As another poster mentioned, if I needed to get at individual results
for manipulation, I'd have to use a loop.

 Maybe this is all obvious for those that have worked with AB for
years, but it's strange enough to frustrate this guy. 

  Hope someone  reading this (besides  me) learned something .

--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> It can be frustrating at first to get a handle on the ways computer
> programs work. But worth the battle
> 
> To start with IF is (as I ahve explained in previous emails here) is
> for use with arrays within a Loop, or for static value variables which
> are the same value regardless of bar.
> 
> This is why you cannot use an array like H1 with IF unless you place
> it inside a FOR loop
> Also strings cannot be array based, so you cannot use them based on
> array values for use in analysis.
> 
> If all you want is to explore and show the "H' or "L" in the column
> then try this
> 
> AddColumn( IIf( H1, Asc("H"), IIf( L1, Asc("L"), Asc(""))), "Signal",
> formatChar );
> 
> 
> -- 
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://www.aflwriting.com
> 
> 




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

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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