Hello,
Read the docs (again). AddToComposite allows to store OHLC V and OI fields by
specifying second parameter.
Best regards,
Tomasz Janeczko
amibroker.com
On 2010-08-27 17:44, mikk12345 wrote:
> HI,
>
> I would like to create a ticker that has the
> (open/rsi(14),high/rsi(14),Low/rsi(14),
HI,
I would like to create a ticker that has the
(open/rsi(14),high/rsi(14),Low/rsi(14), close/rsi(14) and have it displayed as
a candlestick.
It seems that addtocomposite can only create line charts with a single value.
Is there a solution?
Thanks
Mikey.
|// RSIc
// courtesy by Dimitri Tsokakis
*procedure* RSIc( n )
{
*C* = RSIa( *C*, n );
*O* = RSIa( *O*, n );
*H* = RSIa( *H*, n );
*H* = IIf( *H* < Max( *C*, *O* ), Max( *C*, *O* ), *H* );
*L* = RSIa( *L*, n );
*L* = IIf( *L* > Min( *C*, *O* ), Min( *C*, *O* ), *L* );
}
n = Param( "n", 10, 5
I wrote the script below to count the number of stocks whose 100 day MA is
above their 300 day MA. It seems to mostly work except for about 100 days
where it shows the number of stocks is equal to 0. The same days show the
number of stocks for the inverse is 0. Furthermore I can see there are
Dear All,
I am trying to use AddToComposite to create a new ticker with portfolio
back-test equity after each optimization run. I haven't been able to create it
using back-test. I tried to add the following line to my strategy code but
wasn't successful. Can anybody please point me in the right
Maybe you need to turn on the local database setting for the ATC symbol?
On Sun, Feb 21, 2010 at 9:35 PM, patsgreatdeals wrote:
>
>
> Using AddToComposite along with PremiumData.net I get no results once the
> composite is built using Scan. I get the ~Composite calculated, but there is
> nothing
"Or make up a small program that fails to work correctly to illustrate
your problem."
This is the best suggestion, because:
1. This is a great debugging technique. Merely isolating the problem,
many times leads to its solution.
2. If not 1 above, others will have an easier time helping you,
Hi Pat --
I regularly use AddToComposite with data from Norgate Premium Data without
any difficulty. I suspect the problem is with the way ATC is being used,
not with the data. Post the entire code so we can look at it. (Or make up
a small program that fails to work correctly to illustrate your
Using AddToComposite along with PremiumData.net I get no results once the
composite is built using Scan. I get the ~Composite calculated, but there is
nothing in it. I used AddToComp a while back with no issues and used AMIQuote
at that time.
Now that I switched to premium data I am not getti
Is there way to flag AddtoComposite symbols as indices as they are create? I
know that I can change them subsequent to creation. TIA
There is an example in this document:
http://www.amibroker.org/3rdparty/IntroToAtc.pdf
From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf
Of Richard
Sent: Thursday, October 01, 2009 12:06 PM
To: amibroker@yahoogroups.com
Subject: [amibroker] AddtoComposite
Question ... can you make a composite of stocks in a "Watch List". I've tried
but keep getting an error message. It works fine with Industry groups (see
below) but error comes up with watch list.watch list 9 is one of SolarEnergy
stocks.
//sym = "~" + IndustryID(1);
sym = "~" + watchlistID(9);
Thanks!!!
- Original Message -
From: Tomasz Janeczko
To: amibroker@yahoogroups.com
Sent: Saturday, July 25, 2009 4:03 PM
Subject: Re: [amibroker] Addtocomposite
Multiply by 100 when writing and divide by 100 when
: [amibroker] Addtocomposite
TJ,
is there any workaround for this at this point if I need to use digits in
Addtocomposite?
I´m asking since I have to make references to proprietary variables in CBT
and see no other way to do it.
Markus
- Original Message -
From
@yahoogroups.com
Sent: Saturday, July 25, 2009 1:21 PM
Subject: Re: [amibroker] Addtocomposite
Correct, but in 5.27 it is going to change.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: "Graham"
To:
Sent: Saturday, July 25, 2009 3:47 AM
S
Correct, but in 5.27 it is going to change.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: "Graham"
To:
Sent: Saturday, July 25, 2009 3:47 AM
Subject: Re: [amibroker] Addtocomposite
I think Volume only allows integers, not decimals
--
Cheers
Grah
kus
>
>
>
>
> - Original Message -
> From: Herman
> To: Markus Witzler
> Sent: Friday, July 24, 2009 11:50 PM
> Subject: Re: [amibroker] Addtocomposite
>
>
> data = foreign( "~ATRExpLagRounded_"+Name(), "V");
>
> Plot(Data,"",...
my ignorance!
Markus
- Original Message -
From: Herman
To: Markus Witzler
Sent: Friday, July 24, 2009 11:50 PM
Subject: Re: [amibroker] Addtocomposite
data = foreign( "~ATRExpLagRounded_"+Name(), "V");
Plot(Data,"",..
Hello,
this may be a dumb question, but how can I get the data of
test=AddToComposite(ATRExpLagRounded, "~ATRExpLagRounded_"+Name(), "V",
atcFlagDefaults | atcFlagEnableInBacktest);
in Exploration output? I want to check if it holds the data it was supposed
to...
Addcolumn(test, "Output", 1.5
I have been playing with AddToComposite to make a chart that is an
average of a few other tickers.
I have been using the example given in -
www.amibroker.org/3rdparty/IntroToAtc.pdf
which has been quite helpful but when i create the chart the bars are
MASSIVE, even though i have been dividing
Hi All,
I have developed some indicators using the addtocomposite() function.
I am using streaming 1 minute data and would like to repeatedly
recalculate these indicators.
The problem is that addtocomposite() seems to calculate the entire
range (all quotations) and ignores the range specified in
How can write to description field (Fullname) of a AddToComposite
generated ticker? TIA
,null) means as well as the>, "O" );
Ron D
PlotShapes(iif(aRio4103 ANDdatenum()>=108225,O,null), "aRio4103",
"O" );
- Original Message -
From: "Graham" <[EMAIL PROTECTED]>
To:
Sent: Monday, June 16, 2008 10:18 PM
Subject: Re:
Running addtocomposite from a scan will always include all bars in the history.
What you can do is limit the arrays to only what you want
eg
dn = datenum()
AddToComposite(iif(dn>=1040101,O,null), "~Russell3000", "O" );
then run the scan for n=1 last quotation only
--
Cheers
Graham Kav
AFL Writi
I am doing some work to create a composite based on stocks in the
Russell 3000. In the SCAN I select a date range from 2004 to current.
Everytime I run it, the scan goes back to 2000. I do not want the
composite to go back that far. Is there a bug that is cause this to go
back so far even thoug
Hello,
I have problems to use addtocomposite on timeframe bigger than 1 day?
The results are not alligned with the reference symbol used in AA.
Did anybody experience the same?
Thanks
Ly
Hello,
I use this code:
p1=ref(c,-1);p2=C;ret=(p2-p1)/p1;
AddToComposite(ret,"~MKT","C");
AddToComposite(1 ,"~MKT","V");
N=Foreign("~MKT","V");
SumMkt=Foreign("~MKT","C");
RetMkt=SumMkt/N;
When I run scan I use an appropriate reference symbol, and I keep the
same symbol as the active one.
Thi
Is there a way to send AddToComposite tickers to Industry 253
(consistent with Market and Group 253) instead of Industry 0 where they
will usually end up in between regular tickers? Thanks.
-treliff
,
which is not correct when you have missing data, shorter or longer
histories.
Dimitris Tsokakis
- Original Message -
From: droskill
To: amibroker@yahoogroups.com
Sent: Friday, April 18, 2008 1:41 PM
Subject: [amibroker] Addtocomposite - counting totals in a watchlist
Hey al
Hey all - is there anyway to count the number of symbols in a
watchlist? I want to make an AddtoComposite-created index a % rather
than a hard number. Is there a function to do this?
Thanks!
Dear All's,
as the name itself says addtocomposite is a very useful tool to build
indicator which can be obtained by summing over all the elements of a
given set a given function of its values.
For example using a quite obvious mathematical notations :
average=1/N Sum(x_i,i=1,i=N) or in general
w
ct,"~surrogateprice","C");
AddToComposite(Anothervalue,"~surrogateprice","V");
Buy = Sell = 0;
Filter = 1;
AddColumn(Product,"Product");
- Original Message -
From: "orionsturtle" <[EMAIL PROTECTED]>
To:
Sent: Friday, Dec
I have performed a calculation using the close of two securities and
the result has produced a surrogate price. I want to chart and
backtest using this surrogate price. I have been fooling arouund with
AddToComposite, but I am not getting it. I know from reading it should
be simple.
Can someo
---
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of osgem_2006
Sent: Friday, 25 August 2006 2:12 a.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] AddToComposite
I tried to create a composite by using following ATC formula and run a
scan against a watchlist but I get price
I tried to create a composite by using following ATC formula and run a
scan against a watchlist but I get price chart of the 'first symbol'
on the list & not the composite value of the watchlist.what change is
needed to get a composite, the formula is as following.
/* AddToComposite statements
thanks all!
On Mon, 21 Aug 2006 07:38:29 +0800, you wrote:
>Try a search of recent emails here as this type of question was answered
>what you do is make the name of the compsoite reflect the symbol
>
>AddToComposite( array, ''~macd"+Name(), ...
Please note that this group is for d
amibroker@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> > Sent: Sunday, August 20, 2006 6:16 PM
> > To: amibroker@yahoogroups.com
> > Subject: [amibroker] AddToComposite
> >
> > Does anyone have any code lying around in there tool
yahoogroups.com
> Subject: [amibroker] AddToComposite
>
> Does anyone have any code lying around in there toolbox that
> illustrates using addtocomp with only one symbol of X symbols?
>
> i have read everything i can find on it but it seems like it
> is meant to be used again
Does anyone have any code lying around in there toolbox that
illustrates using addtocomp with only one symbol of X symbols?
i have read everything i can find on it but it seems like it is meant
to be used against all the symbols in a list at once from most of the
examples i can find.
What i would
Does anyone have any code lying around in there toolbox that
illustrates using addtocomp with only one symbol of X symbols?
i have read everything i can find on it but it seems like it is meant
to be used against all the symbols in a list at once from most of the
examples i can find.
What i would
On Apr 28, 2006, at 12:16 PM, Jeff Springer wrote: John, Thank you so much for replying. I think I understand the principle of what you wrote, I'm just not sure I know how to code it. If you wouldn't mind a few questions? 1) If I don't use loops, how will I iterate through each sector/indust
Jeff,
I am sure there are easier and more efficient ways to code the following
but this might get you started. Adjust the following code to your needs
then do a scan
//Average QRS Rank
sym1="^" + "SP1500" + "Count";
sym2= "^" + "SP1500-" + "RS";
QRS=GetExtraData("QRS");
AddToComposite(1,sy
John, Thank you so much for replying. I think I understand the principle of what you wrote, I'm just not sure I know how to code it. If you wouldn't mind a few questions? 1) If I don't use loops, how will I iterate through each sector/industry? What are "the integer codes"? 2) The follo
Jeff,
Here's my two cents...
1) First, get the SectorID and IndustryID for each security in the
scan with a simple call to these functions and construct new
composite symbols from their names. Do not use the integer codes.
Ditch the loops... not needed.
2) Use AddToComposite to accumula
Once again, I turn to the smart people on this forum for help. I
have code (from here) that creates composites of sectors and
industries. I would like to also include a chart of the QuotesPlus
QRS reading on a sector and industry basis. I thought it would be as
easy as including a couple lin
45 matches
Mail list logo