[amibroker] Re: Optimization speed increase in 5.01

2007-11-21 Thread rollyzhang
It seems 5.01 breaks the Optimize/Backtest for individual stocks of a watchlist set in the Filter with RangeFromDate and RangeToDate set. Since the GUI only provides portofolio Optimize, you'll see the problem only running it in script code. Please give it a try with the following parameters s

RE: [AmiBroker] Plot ATR trailing stop which only increases

2007-11-21 Thread Mr. Valley
Here's one example; /* Volatility Truth */ EntrySignal = C > ( LLV( L, 20 ) + 2 * ATR( 10 ) ); ExitSignal = C < ( HHV( H, 20 ) - 2 * ATR( 10 ) ); Color = IIf( EntrySignal, colorBlue, IIf( ExitSignal, colorOrange, colorGrey50 )); TrailStop = HHV( C - 2 * ATR(10), 15 ); ProfitTaker = EMA( H, 13

[amibroker] Plot ATR trailing stop which only increases

2007-11-21 Thread amickan1958
Hi, I've been trying to crack this one but can't seem to. What I need is a plot of my trailing stop. The stop is based on a multiplier of todays ATR(30) value. This stop only ever increase. Can anyone help me out with some code please? Thanks Andrew

Re: [AmiBroker] Array Problem

2007-11-21 Thread Tomasz Janeczko
Hello, Please note that "visual angle" has nothing to do with the "angle" you are computing using your formula. What you are doing in the formula is to calculate "angle" from chart that has completely *different* X/Y units. The X unit is time , the Y unit is price. These two can not give you AN

RE: [AmiBroker] Array Problem

2007-11-21 Thread Mr. Valley
TJ, Yes and indeed both "work", but the subtle difference is that that in the title line on the CCI(20) it will display the angle and degrees whereas the other does not and displays 0 on my end... Do they both display the values on your end? Thanks for the reply and Happy Thanksgiving to you and yo

Re: [amibroker] Array Problem

2007-11-21 Thread Tomasz Janeczko
Both work OK on my end. Do you have at least 54 bars in your data set ? Best regards, Tomasz Janeczko amibroker.com - Original Message - From: Mr. Valley To: amibroker@yahoogroups.com Sent: Thursday, November 22, 2007 7:25 AM Subject: [amibroker] Array Problem resend with

[amibroker] Array Problem

2007-11-21 Thread Mr. Valley
resend with subject line -Original Message- From: Mr. Valley [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 11:23 PM To: amibroker@yahoogroups.com Subject: What am I doing wrong? /* Angle Test v2 */ // I don't understand why the array created by "Var" cannot be used as CC

[amibroker]

2007-11-21 Thread Mr. Valley
What am I doing wrong? /* Angle Test v2 */ // I don't understand why the array created by "Var" cannot be used as CCI(20) built-in works ??? // Comment out the Var below and use the other to see what I mean. // Angle and Degrees don't read in the Title Line like they do with CCI(20) Var = CCI(20

[amibroker] Re: Premium data service - TBSP

2007-11-21 Thread treliff
No opinion on TBSP's stock database but beware for their options: they save server space by removing all options that haven't traded for 30 days, including those with outstanding open interest. Useless for serious analysis. -treliff --- In amibroker@yahoogroups.com, "Padhu" <[EMAIL PROTECTED]>

Re: [amibroker] Re: Struggling to Learn

2007-11-21 Thread ricko
Thanks for you help. I have created version 1 of what I had in mind, based largely on the approach you posted. Here it is, and while it is not quite what I am looking for, I seem to be "in the area". And it does not involve loops. How about that!!! K = Param("% Coeff of Correlation",5,1,50,1

Re: [amibroker] Re: Struggling to Learn

2007-11-21 Thread ricko
Well, you must find it difficult to soar like an eagle When you have to work with so many turkeys! Rick Osborn - Original Message From: brian_z111 <[EMAIL PROTECTED]> To: amibroker@yahoogroups.com Sent: Wednesday, November 21, 2007 7:54:17 PM Subject: [amibroker] Re: Struggling to Le

[amibroker] Re: Struggling to Learn

2007-11-21 Thread brian_z111
AB seems to attract more than it's share of exceptional people (birds of a feather flock together!). They are always going to have exceptional curiosity and ask exceptional questions (birds of a feather flock together). Public broadcasts can never cater for the exceptional. Rare birds just have

[amibroker] Re: Premium data service - TBSP

2007-11-21 Thread brian_z111
--- In amibroker@yahoogroups.com, "Padhu" <[EMAIL PROTECTED]> wrote: > > TBSP was a pleasant surprise for me..never heard of them untill I read Larry Mcmillan's Book on options recently. > > What I liked the best was they provide pretty much all data sets required for a very reasonable price. I

[amibroker] retrieveing specific quote thro api

2007-11-21 Thread murthysuresh
Hello If i want to get a high low open close price at a specific time. can i get it thro the api. can i pass the datetime as date and get the other details as in the function call below. Function Retrieve(ByVal Count As Long, ByRef Date As Variant, ByRef Open As Variant, ByRef High As Variant,

Re: [amibroker] Re: Premium data service - TBSP

2007-11-21 Thread Padhu
TBSP was a pleasant surprise for me..never heard of them untill I read Larry Mcmillan's Book on options recently. What I liked the best was they provide pretty much all data sets required for a very reasonable price. I am happy with their phone support as well. Cheers,Padhu - Original Me

Re: [amibroker] Re: Premium data service

2007-11-21 Thread Graham
Yes they do provide database of delisted symbols, in separate folder under the Trading Data folder. This is kept updated I think you need to upload into AB separately as their AB script does not automatically include the delisted symbols. As an aside you could get problems in same database if the s

[amibroker] Re: Premium data service

2007-11-21 Thread brian_z111
--- In amibroker@yahoogroups.com, "brian_z111" <[EMAIL PROTECTED]> wrote: > > --- In amibroker@yahoogroups.com, "haders2003" wrote: > > > > Hi > > > > I notice that a number of posts (eg #106663) refer to the fact that > > premium data provides delisted stocks as well as current. Can > anyone

[amibroker] Re: Premium data service

2007-11-21 Thread brian_z111
--- In amibroker@yahoogroups.com, "haders2003" <[EMAIL PROTECTED]> wrote: > > Hi > > I notice that a number of posts (eg #106663) refer to the fact that > premium data provides delisted stocks as well as current. Can anyone > confirm this? > > I've tried contacting them directly but they are

[amibroker] Re: Struggling to Learn

2007-11-21 Thread brian_z111
Rick, I hope it helps you with your AFL. I find with learning anything that sometimes we reach a sticking point or it seems overwhelming but if we remain immersed in the subject imperceptibly things that seemed difficult start to become easy and we don't actually notice when exactly that learni

[amibroker] Re: Is there a Java - like way to initialize an array of values?

2007-11-21 Thread Mike
Thanks for the suggestion. But, I'm trying to initialize to multiple different values, not all the same value. e.g. {1,1,1,2,2,2} The closest thing that I've found so far (haven't yet verified that this works) is the following: EnableScript("jscript"); myValues[0] = 0; myOtherValues[0] = 0;

[amibroker] Re: Newbie question

2007-11-21 Thread Walter Lepore
Hi Tomasz and Grant Thank you, I did watch the video and found the menu in the AA window (right clicked on trades) and located the various "show trades" commands. Question 1 please However I still cannot see the 30 SMA line on the chart that my basic formula employs. On my chart the AA window

[amibroker] Re: help needed on adx coding.

2007-11-21 Thread vichooo_1999
I think u r looking for a forecaster which gives a value at which +DI will cross -DI. Try the following P0 = C; Acc = 0.0001; LVBI = LastValue(BarIndex()); Mult = 1; for (i = 0; i < 10; i++) { if (P0[LVBI] >= 1) i = 99; else Mult = Mult * 10; } // *

[amibroker] MY CUSTOM INDICATOR GONE

2007-11-21 Thread rashmo_70
Hi Guys having problem with my chart folder, it just disappeared. i have checked my c drive, the custom folder (empty). what did i do wrong or did i press a wrong bottom. pls halp

Re: [amibroker] DDE Plugin and Bloomberg Pro

2007-11-21 Thread Tomasz Janeczko
Hello, Bloomberg API is proprietary. In the past we tried to contact Bloomberg staff but they told us they are busy with work on Tradestation link. Below is a picture showing DDE configuration for Bloomberg. It was used by one of our customers. Best regards, Tomasz Janeczko amibroker.com

[amibroker] DDE Plugin and Bloomberg Pro

2007-11-21 Thread MikAB
Hello All I bought Amibroker a few days ago. I would like to plug it on bloomberg professional software to get real time datas via DDE Server. I tried to "play" with the Database configutration tool (tried a lot of formulas etc) but never succeed to get anything. I hope someone can help me. Ma

Re: [amibroker] Re: Struggling to Learn

2007-11-21 Thread ricko
Brian This is great. I will use your ideas to see if I can create the "monster" I had in mind. If I can get it to work, I will post it. Thanks again. Rick Osborn - Original Message From: brian_z111 <[EMAIL PROTECTED]> To: amibroker@yahoogroups.com Sent: Wednesday, November 2

Re: [amibroker] Re: Struggling to Learn

2007-11-21 Thread ricko
GP Thank you for your patience and I really appreciate the explanation. One more mystery (for me) solved. This should be in the KB I think. One problem I continually face is the dreaded "Error 8. Type mismatch. the value assigned to the array element has to be.." - BUT, I'm getting there.

[amibroker] Premium data service

2007-11-21 Thread haders2003
Hi I notice that a number of posts (eg #106663) refer to the fact that premium data provides delisted stocks as well as current. Can anyone confirm this? I've tried contacting them directly but they are slow to answer. The free trail they offer, which includes complete database of all stocks

Re: [amibroker] Re: Struggling to Learn

2007-11-21 Thread Tomasz Janeczko
Hello, Such information is not relevant to system/indicator coding. It does not matter from end-user point of view - it does not affect the result of calculation. In AmiBroker number of bars processed is dynamic. You should not make any assumptions on number of executions or number of bars pro

[amibroker] Re: Struggling to Learn

2007-11-21 Thread progster01
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: > Actually it is covered fully in the User's Guide: > http://www.amibroker.com/guide/h_understandafl.html Yes, I've read that section of the User's Guide. It is very helpful, but it does not cover what I have termed

[amibroker] Re: Struggling to Learn

2007-11-21 Thread brian_z111
--- In amibroker@yahoogroups.com, "brian_z111" <[EMAIL PROTECTED]> wrote: > > --- In amibroker@yahoogroups.com, ricko@ wrote: > > > > Brian > > Thanks for you interest in this. > > Your indicator is not quite what I had in mind. > > > > That's alright - it was just a starting point. > > The hard

[amibroker] Is there a Java - like way to initialize an array of values?

2007-11-21 Thread Mike
Hi, I have several local variable arrays that I need to initialize. Is there an easy way to do this without having to explicitly index each element? For example; in Java I would just do the following: int myValues[] = new int[] {1,1,1,2,2,2}; Thanks in advance.

[amibroker] afl coding problem - buy signal when 2 conditions - one and then the other

2007-11-21 Thread greenhorn1983
hi everyone, how can I programe buy signal so it would be generated if: two conditions occur, one and then the second one within specified time - precisesly within 1-9 bars after (signal shall not be generated if conditions occured at the same time, as well as when the second condition occured ea