PureBytes Links
Trading Reference Links
|
I am trying to sum horizontal. I am only using one stock. I tried
some variations of what you recommended, but got nothing to work. One
error message is "Variable "MA Long" not initialised". Ma Long is not
initialised in my code. It is the heading of one of the columns I
want to sum. More ideas are welcome, Joe
--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
<psytek@xxxx> wrote:
> Not sure whether you mean Sum vertical or Horizontal... below an
example for
> vertical summing.
> Perhaps try something like AddColumn(cum(MALong+RLong),"MA Long"
+ "%R
> Long", 1.2);
> but this would only work for the current stock. For portfolio use
you can
> use the AddToComposite() to sum values from each stock in your
watchlist
> using an Exploration, like:
> AddToComposite(MALong+RLong,"~Test","X",1|2|4|16);
> and retrieve the data using Foreign("~Test","X");
>
> herman
> -----Original Message-----
> From: joeemmett2000 [mailto:joeemmett@x...]
> Sent: Tuesday, March 02, 2004 10:17 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] AddColumn-Sum of other columns
>
>
> I am doing an 'Explore' in which I have columns giving me the 1's
and
> 0's for Buys and Sells.
> I have columns labeled "MA Long", "MA Short", "%R Long", & "%R
Short".
> I want to have a AddColumn which will give me the sum of "MA Long"
> and "%R Long".
> Something along the lines of;Addcolumn(Sum,"MA Long" + "%R
Long");.
> Thanks for all the help, Joe
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
> --------------------------------------------------------------------
--------
> --
> Yahoo! Groups Links
>
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> b.. To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|