[amibroker] Predicted Close for RSI crossover

2008-09-06 Thread amon_gizeh
Hello. I try to calculate what value for tommorow Close will make a crossover with line 25 (oversold level) or line 75 (overbought level). Can somebody help me? Thanks.

Re: [amibroker] Predicted Close for RSI crossover

2008-09-06 Thread Ara Kaloustian
RSI Formula A technical analysis indicator that compares the days that a stock finishes up against when it finishes lower. The RSI ranges from 0 to 100, but a stock is considered overbought if it reaches 70 (or 80 in true bull markets), indicating that you should consider selling the stock.

[amibroker] (unknown)

2008-09-06 Thread kkrajpura rajpura
plz  dend  me  good  formula    Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/

[amibroker] (unknown)

2008-09-06 Thread kkrajpura rajpura
send me formula Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[amibroker] Re: Predicted Close for RSI crossover

2008-09-06 Thread gp_sydney
The maths is a bit involved to show you how to calculate it, but here's a function that does the job: Function NextRSI(bar, period, nextClose, nrsi) { if (bar = period+1) { clb = Close[bar]; if (clb == Close[bar-1]) Close[bar] = Close[bar] + 0.0001; // To avoid 0/0

Re: [amibroker] Re: Bar chart with close only... possbile..?

2008-09-06 Thread wavemechanic
The red and green O, C are apparently being controlled by the color selector under preferences. Those can be changed (of course that becomes a global change which you probably don't want) so that both O and C are the same color but I don't think you can have individual local control with AFL

[amibroker] Re: Predicted Close for RSI crossover

2008-09-06 Thread gp_sydney
Are you saying you want the Close value at every bar that would make the RSI 25% (or whatever) on that bar? You could do that in a loop by calling this function for every bar, but it might be a bit slow (make the RSI array calculation external, so that it's not repeated at every bar).

[amibroker] Re: Predicted Close for RSI crossover

2008-09-06 Thread gp_sydney
One comment in relation to calling the function in a loop with the RSI calculation outside the function. As the function ensures the two consecutive close values aren't exactly the same, and this must be done before the RSI calculation is performed, the Close array would need to be scanned and all

[amibroker] How to auto indent the afl code into NotePad++ (as prettyfy)

2008-09-06 Thread reinsley
Hello, I juggle with NotePad++ and AB editor. It's a bit heavy and sometimes I lose the last version between the copy-past backward and forward movements. NotePad++ is perfect except for auto-indent. How can I auto-indent the afl code into NotePad++, as the prettyfy function does in AB ?

[amibroker] OT: MacPro with Parallels / Fusion

2008-09-06 Thread Ara Kaloustian
My wife had a copy of initial version of Parallels that was pretty bad and at the time support was no better. She uninstalled Parallels and started using BootCamp. I understand Parallels is working fine now ... and Fusion has come unto the seen and is also good... and would like to reconsider

Re: [amibroker] How to calculate a slope % with Rsquared without a loop?

2008-09-06 Thread Gordon Rose
Hi Louis, What will show the smoothness of the pullback is r-squared. It tells you how well a set of data points fits a straight line by returning a number from 0 to 1. 1 is a perfect fit. r-squared ins't built into AmiBroker, but it's simple to add: function RSquared(array, periods) {

[amibroker] Re: Backtester does not respect date range!

2008-09-06 Thread ozzyapeman
Thanks Mike. That was helpful. --- In amibroker@yahoogroups.com, Mike [EMAIL PROTECTED] wrote: To get you going immediately, try changing your loop condition to the following and see if it produces what you expect: FirstBar = LastValue(ValueWhen(Status(firstbarinrange), BarIndex()));

Re: [amibroker] OT: MacPro with Parallels / Fusion

2008-09-06 Thread Dennis Brown
Ara, I have used Parallels from day 1. It has improved a lot over the two years. I consider it virtually seamless now. I have investigated using Fusion recently, but It is not enticing me to change. It will be a horse race between the companies. I will stick with what I have until

[amibroker] Monte Carlo Back testing with Ami Broker

2008-09-06 Thread Tamer Gamal
Hey all, I am looking for a way to simulate Monte Carlo back testing with Ami Broker, any ideas are highly appreciated. Thx

[amibroker] AmiBroker AFL Glossary project --READY TO PROCEED

2008-09-06 Thread Dennis Brown
0 {\fonttbl\f0\fmodern\fcharset0 Courier;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww12300\viewh14960\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural \f0\fs24 \cf0 Template sample for Glossary Database entry --2

[amibroker] InWatchListName Help (was Re: InWatchList help)

2008-09-06 Thread whitneybroach
GP, Thanks! Bar-by-bar in the backtest is what I have in mind. This subset of code does the job: = Year(); inwl = False; for ( bar = 0; bar BarCount; bar++ ) { inwl[bar] = InWatchListName( NDX_ + NumToStr( [bar], 1.0, 0 ) ); } Whitney ---

[amibroker] Re: Monte Carlo Back testing with Ami Broker

2008-09-06 Thread Pete
I suggest you pick up a book by Howard Bandy. Chapter 22 (last chapter) covers Monte Carlo Analysis in detail and provides AFL code you can drop right into Amibroker. Lot's of very helpful information in the other 21 chapters as well. http://www.quantitativetradingsystems.com/book.html Pete

[amibroker] Copy Drawn Studies from One DB to Another?

2008-09-06 Thread Pete
I have a lot of drawn studies in a database and would like to have all those studies copied into another database I plan to start using in place of the original. I am trying to avoid having to redraw all those studies and I hope there is some way to copy them to the new database. I tried searching

RE: [amibroker] Copy Drawn Studies from One DB to Another?

2008-09-06 Thread Gordon Sutherland
Pete, One way is to save all your local layouts to global layouts and that way all databases can see the layouts and underlying AFL code. I tend to use Global layouts for all my studies for this reason. Cheers, Gordon Sutherland -Original Message- From: amibroker@yahoogroups.com

[amibroker] Re: Copy Drawn Studies from One DB to Another?

2008-09-06 Thread Pete
Ok, I spent about a half hour playing around with this and my experiments show the global layout does not contain any drawn studies. I have several trend lines, text boxes, arrows and a Fibonacci Retracement on a stock I am tracking and I cannot get these studies imported in the new database no

[amibroker] Re: Copy Drawn Studies from One DB to Another?

2008-09-06 Thread Pete
I'm beginning to understand how this works. From the help section titled: Understanding AmiBroker database concepts A database (or a workspace) is a directory that holds a set of binary files, which are stored in 0-9, a-z, '_' subdirectories. Those binary files hold quotes, symbol information,

[amibroker] Backtest - Exit at stop

2008-09-06 Thread Ara Kaloustian
Is there a way to specify Exit at stop from AFL? Did not see a parameter for it in SetOption() function Thanks Ara

Re: [amibroker] AmiBroker AFL Glossary project --READY TO PROCEED

2008-09-06 Thread Keith McCombs
regards, Dennis Template sample for Glossary Database entry --20080906 Font used: Courier Regular 12 point fixed width UniCode UTF-8 Notes about template: Text is ignored if it is not between Begin_entry: and End_entry: keywords. This allows Keyword: in comment lines outside the structure

[amibroker] Re: How to auto indent the afl code into NotePad++ (as prettyfy)

2008-09-06 Thread gp_sydney
Not sure what you mean by auto-indent, but if you go into Settings-Style Configurator, select C++ in the language list, and then add AFL to the User ext box at the bottom, Notepad++ will treat AFL the same as C++ with the same syntax highlighting, etc. You can then verify this by loading an AFL

Re: [amibroker] AmiBroker AFL Glossary project --READY TO PROCEED

2008-09-06 Thread Dennis Brown
for Glossary Database entry --20080906 Font used: Courier Regular 12 point fixed width UniCode UTF-8 Notes about template: Text is ignored if it is not between Begin_entry: and End_entry: keywords. This allows Keyword: in comment lines outside the structure or the whole entry to be ignored

[amibroker] Anyone using Norgate US Stock Premium Data

2008-09-06 Thread _sdavis
I will like to know the list of Industries in the premium data database. This code should dump the list to DebugView if someone would be kind enough to run it for me. // Dump the list of categories for (i = 0; i 256; i++) { category = CategoryGetName(CategoryIndustry, i); _Trace(Category +i+

[amibroker] Re: Anyone using Norgate US Stock Premium Data

2008-09-06 Thread Pete
The US security structure is based on the Dow Jones ICB classifications at levels 3 4. See link for a snap shot of industry groups along with an explanation of why the structure is restricted to only levels 3 and 4 of ICB classifications: http://www.premiumdata.net/support/amibroker.php --- In

RE: [amibroker] Re: Anyone using Norgate US Stock Premium Data

2008-09-06 Thread Richard Dale
We'd love to support more levels (we do so indirectly through our pre-built watchlists) but unfortunately AmiBroker only supports two classification levels. See: http://www.amibroker.com/feedback/view_bug.php?bug_id=313 If you really want it ask for it in the comments - the more that want it