Re: [amibroker] addtocomposite with four arrays

2010-08-27 Thread Tomasz Janeczko
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),

[amibroker] addtocomposite with four arrays

2010-08-27 Thread mikk12345
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.

Re: [amibroker] addtocomposite with four arrays

2010-08-27 Thread reinsley
|// 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

[amibroker] AddToComposite Help

2010-06-15 Thread James
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

[amibroker] AddToComposite in Porfolio backtest question

2010-05-26 Thread mkecera
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

Re: [amibroker] AddToComposite - using PremiumData

2010-03-02 Thread Mark Hike
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

Re: [amibroker] AddToComposite - using PremiumData

2010-02-23 Thread Keith McCombs
"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,

Re: [amibroker] AddToComposite - using PremiumData

2010-02-23 Thread Howard B
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

[amibroker] AddToComposite - using PremiumData

2010-02-21 Thread patsgreatdeals
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

[amibroker] AddtoComposite Symbols

2009-12-27 Thread ta
Is there way to flag AddtoComposite symbols as indices as they are create? I know that I can change them subsequent to creation. TIA

RE: [amibroker] AddtoComposite

2009-10-01 Thread ta
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

[amibroker] AddtoComposite

2009-10-01 Thread Richard
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);

Re: [amibroker] Addtocomposite

2009-07-25 Thread Markus Witzler
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

Re: [amibroker] Addtocomposite

2009-07-25 Thread Tomasz Janeczko
: [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

Re: [amibroker] Addtocomposite

2009-07-25 Thread Markus Witzler
@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

Re: [amibroker] Addtocomposite

2009-07-25 Thread Tomasz Janeczko
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

Re: [amibroker] Addtocomposite

2009-07-24 Thread Graham
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,"",...

Re: [amibroker] Addtocomposite

2009-07-24 Thread Markus Witzler
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,"",..

[amibroker] Addtocomposite

2009-07-24 Thread Markus Witzler
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

[amibroker] AddToComposite creating irregularly large bars

2009-01-27 Thread G_R_O_W_L_Y
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

[amibroker] AddToComposite() performance issue

2008-11-28 Thread claudecaruana
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

[amibroker] AddToComposite generated ticker Fullname

2008-07-11 Thread tipequity
How can write to description field (Fullname) of a AddToComposite generated ticker? TIA

Re: [amibroker] AddToComposite - Limit Timeframe in SCAN - Bug??

2008-06-19 Thread Ronald Davis
,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:

Re: [amibroker] AddToComposite - Limit Timeframe in SCAN - Bug??

2008-06-16 Thread Graham
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

[amibroker] AddToComposite - Limit Timeframe in SCAN - Bug??

2008-06-16 Thread patsgreatdeals
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

[amibroker] AddToComposite in weekly timeframe

2008-05-22 Thread loveyourenemynow
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

[amibroker] Addtocomposite results time disallignment

2008-05-17 Thread loveyourenemynow
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

[amibroker] AddToComposite tickers to Industry 253 ?

2008-04-28 Thread treliff
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

Re: [amibroker] Addtocomposite - counting totals in a watchlist

2008-04-18 Thread Joe Landry
, 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

[amibroker] Addtocomposite - counting totals in a watchlist

2008-04-18 Thread droskill
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!

[amibroker] addtocomposite -> ProductToComposite

2008-01-16 Thread loveyourenemynow
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

Re: [amibroker] AddToComposite ... I need an example

2006-12-01 Thread Joe Landry
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

[amibroker] AddToComposite ... I need an example

2006-12-01 Thread orionsturtle
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

RE: [amibroker] AddToComposite

2006-08-24 Thread Gordon Sutherland
--- 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

[amibroker] AddToComposite

2006-08-24 Thread osgem_2006
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

Re: [amibroker] AddToComposite

2006-08-21 Thread Stockjunkie
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

Re: [amibroker] AddToComposite

2006-08-20 Thread Graham
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

RE: [amibroker] AddToComposite

2006-08-20 Thread dingo
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

[amibroker] AddToComposite

2006-08-20 Thread Stockjunkie
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

[amibroker] AddToComposite

2006-08-15 Thread Stockjunkie
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

Re: [amibroker] AddtoComposite

2006-04-29 Thread John Nelson
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

Re: [amibroker] AddtoComposite

2006-04-29 Thread Duke Jones, CMT
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

Re: [amibroker] AddtoComposite

2006-04-28 Thread Jeff Springer
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

Re: [amibroker] AddtoComposite

2006-04-28 Thread John Nelson
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

[amibroker] AddtoComposite

2006-04-27 Thread fatboycato
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