[amibroker] Amibroker dll's on Window's 7 64 bit

2009-11-24 Thread tassieoak
Hi,

I see here:
http://www.amibroker.com/x64/

Limitations:
- old 32 bit plugins do not work with 64 bit applications

Will the 32 bit plugins work with the 32 bit version of Amibroker running on 
Window's 7 64 bit please?




[amibroker] Re: Amibroker is blinking.

2009-11-24 Thread ThomasJ
Kevin,

Thank you for the reply. However, I read that message and did that. The charts 
do not blink until I turn on my autotrading. Then they start to blink.

I do not have that problem with my other computer. It has Windows XP and the 
new one has Windows 7. Could that be the problem?

Thanks,
Tom

--- In amibroker@yahoogroups.com, kevin...@... wrote:
>
> Try installing 5.00 Full first, then copy your folder...
>  
>  
> In a message dated 11/24/2009 4:19:38 P.M. Central Standard Time,  
> profes...@... writes:
> 
> I have  moved Amibroker to a new computer. I tried 2 ways. 
> First, I copied all the  files and moved them to the new computer. 
> 
> Then I downloaded the 5.20  Amibroker file and installed it. Then I pasted 
> the copied old file to the  folder.
> 
> Both ways, resulted in the charts blinking. The info is there,  but the 
> charts blink.
> 
> Please  advise.
> Thanks,
> Tom
> 
> 
> 
> 
> 
>   IMPORTANT PLEASE READ 
> This group is for the discussion between users  only.
> This is *NOT* technical support channel.
> 
> TO GET TECHNICAL  SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> TO  SUBMIT SUGGESTIONS please use FEEDBACK CENTER  at
> http://www.amibroker.com/feedback/
> (submissions sent via other  channels won't be considered)
> 
> For NEW RELEASE ANNOUNCEMENTS and other  news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> Yahoo!  Groups Links
>




[amibroker] Re: Is this tedious to write , please help

2009-11-24 Thread Mike
Hi,

Your question is very basic. Please take the time to read: the language 
operators, function descriptions, how AFL works.

http://www.amibroker.com/guide/a_language.html
http://www.amibroker.com/guide/afl/afl_index.php?m=2
http://www.amibroker.com/guide/h_understandafl.html

BuySignal = ...;
WeakClose = Close < MA(Close, 10) * 1.0075;
Buy = BuySignal AND NOT WeakClose;

Additional tutorials can be found here:

http://www.amibroker.com/guide/tutorial.html

Mike

--- In amibroker@yahoogroups.com, Deepak Patade  wrote:
>
> How to write this in afl
> for a triangular moving avearge
> 
> "if current close value is not greater than previous 10 bars avarage value *
> 1.0075 then it should not give Buy Signal &
> 
> if current close value is not greater than previous 10 bars avarage value *
> 1.0075 then it should not give SELL Signal
>




[amibroker] Is this tedious to write , please help

2009-11-24 Thread Deepak Patade
How to write this in afl
for a triangular moving avearge

"if current close value is not greater than previous 10 bars avarage value *
1.0075 then it should not give Buy Signal &

if current close value is not greater than previous 10 bars avarage value *
1.0075 then it should not give SELL Signal


[amibroker] Amibroker programmer hire

2009-11-24 Thread dralexchambers
Hi,

I have a smallish project coded that I need some expertise on. I am willing to 
pay for this as well.

The project is around backtesting a strategy I have for rotating an account 
through highest performing funds each month - and seeing how this performs over 
a long period of time.

If anyone is interested, please email me at:

info{at}alexchambers[dot]co{dot}uk

We can negotiate from there. Also, if you are serious, please include a bit 
about yourself - ie. how good your AFL skills are.

Thanks,
Alex



[amibroker] slow amibroker chart

2009-11-24 Thread rink
Hello all
when i use 5min chart of a symbol which have 9 years data amibroker 
chart become so slow(means become so slow to go back when we roll mouse 
button) i tried to change database setting with high numbers of bars but 
it still slow,
but when i change chart to 15min or higer it become fast

tell me if there is any solution
thank you



[amibroker] Re: Spread trading example code???

2009-11-24 Thread Mike
http://finance.groups.yahoo.com/group/amibroker/message/144159

Mike

--- In amibroker@yahoogroups.com, "Mike"  wrote:
>
> I am looking for any information or examples on how to program a pairs or 
> spread trade in AB (Using equal dollar allocations you Buy one issue and sell 
> another at the same time and the equity would be the difference). 
> 
> Can anyone point me in the right direction?
> 
> Thanks for the assist!
> 
> mike
>




[amibroker] Re: Lets ask T J for AFL EDITOR encryption in the next beta

2009-11-24 Thread paultsho
Ronald,
Have you considered hiring an experienced dll programmer to do this for you. 
From what I see, building a dll function based on what you have shown in your 
previous emails will be reasonably straight. To process array in C++ is 
straight forward through loops - Incidentially, the array processing ability of 
AB is most probably built using the same C technology. I'll be happy to give 
you a quote if you're interested and contact me on a private email
/Paul.

--- In amibroker@yahoogroups.com, Ronald Davis  wrote:
>
> I have no C++ programming skills at all, so making an AFL plugin is out of 
> the question for me. 
> Also, I imagine it  would be a lot of work for C++ programmers to create 
> Plugins because of  
> the inability of DLLS to access the fantastic array processing  that is 
> unique to Amibroker. 
> 
> I have attached a chart of UKW which, IMHO, clearly shows top pivots and the 
> bottom pivots.
> 
> Years ago,when  my son showed me the Amibroker software,
> I concluded that it should be possible to develop AFL smoothing techniques 
> that would 
> produce custom indicator lines that would display the technical status of any 
> symbol.
> 
> Hopefully,  some Amibroker readers of this Yahoogroup agree with my view that 
> these chart lines 
> really do a good job of showing  the top pivots and the bottom pivots. 
>  
> This email is a suggestion that we form an Amibroker/Saul Alinsky community 
> organizer group in 
> an attempt to convince T J to include Encryption Ability WITHIN the AFL 
> editor. 
> IMHO, T J'S comment per 2) below that he would  make it a seperate add on was 
> to allay the 
> concerns of grantnoble and stevehite per 1) below.
> 
> 1) On April 13, and April 14, grantnoble and stevehite submitted the below 
> descenting  comments.
> 
> "I hope this functionality is never implemented.  
> If one's AFL is that good then just keep it to yourself and make a private 
> fortune or write a plugin in C/C++ 
> and sell that (if you can). Tomasz has a great open community in the Yahoo 
> group and this doesn't promote 
> a sharing of ideas.  I don't see how this benefits anyone other than third 
> parties who are just looking to make 
> a quick buck." 
> 
> 2) On Apr 25th, 2006, Tomasz Janeczko responded with "This will be made 
> available as a separate add-on 
> product"
> 
> I have also attached a wordpad of the all of the Encryption feedbacks that 
> were posted in response to 
> Encryption suggestion  #51.  Ron D
>




[amibroker] Re: QP2.dll v 2.0.1

2009-11-24 Thread gesges

Thanks.  I'll install the new beta.

--- In amibroker@yahoogroups.com, Mark Hike  wrote:
>
> I think it comes with the latest Amibroker beta installation.
> 
> On Tue, Nov 24, 2009 at 10:52 AM, gesges  wrote:
> 
> >
> >
> > I see TJ mentioned QP2.dll v 2.0.1 But I can't locate it on the AB web
> > site. Can someone point me to the new QP dll?
> >
> > thanks,
> >
> > ges
> >
> >  
> >
>




Re: [amibroker] Amibroker is blinking.

2009-11-24 Thread Kevin243
Try installing 5.00 Full first, then copy your folder...
 
 
In a message dated 11/24/2009 4:19:38 P.M. Central Standard Time,  
profes...@success101.biz writes:

I have  moved Amibroker to a new computer. I tried 2 ways. 
First, I copied all the  files and moved them to the new computer. 

Then I downloaded the 5.20  Amibroker file and installed it. Then I pasted 
the copied old file to the  folder.

Both ways, resulted in the charts blinking. The info is there,  but the 
charts blink.

Please  advise.
Thanks,
Tom





  IMPORTANT PLEASE READ 
This group is for the discussion between users  only.
This is *NOT* technical support channel.

TO GET TECHNICAL  SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO  SUBMIT SUGGESTIONS please use FEEDBACK CENTER  at
http://www.amibroker.com/feedback/
(submissions sent via other  channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other  news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo!  Groups Links







[amibroker] Re: How to add symbols to a *named* watchlist?

2009-11-24 Thread TomB


Thank you, Tomasz 


--- In amibroker@yahoogroups.com, "Tomasz Janeczko"  wrote:
>
> Use CategoryFind
> http://www.amibroker.com/guide/afl/afl_view.php?id=349
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com



[amibroker] Amibroker is blinking.

2009-11-24 Thread ThomasJ
I have moved Amibroker to a new computer. I tried 2 ways. 
First, I copied all the files and moved them to the new computer. 

Then I downloaded the 5.20 Amibroker file and installed it. Then I pasted the 
copied old file to the folder.

Both ways, resulted in the charts blinking. The info is there, but the charts 
blink.

Please advise.
Thanks,
Tom



[amibroker] How to choose a back-testing and trading platform?

2009-11-24 Thread Jez
I have scoured the internet to find which platform I should use.. and I must 
say it is pretty confusing with the plethora of offers in the market (including 
the excellent one from AmiBroker).

I think this article about how to decide on a back-testing and live trading 
platform:

http://bit.ly/6p2k6g

is very useful as it identifies all the areas of functionality that 
might be required for automated trading strategies as well as lists the major 
platforms and what they can offer (ie you can compare AmiBroker to other 
platforms, etc.).

What really helped me - and this is pretty obvious actually - is to put first 
what I require from the software(s) and accept that in all likelihood I will 
not find one piece of software that does all I need.

All I do now when I come across a new software/platform is compare it against 
the list of functionalities in that article and see how it fits in the big 
system diagram. Then I try and see what extra features it can bring compared to 
the ones use or know of... And thats how I decided to switch from TradersStudio 
to AmiBroker as my main back-testing platform! And it will probably help me 
(and you?) decide on what additional platforms might be required to complement 
AmiBroker...



[amibroker] Re: Help with More Complicated JavaScript Needed

2009-11-24 Thread Mike

I believe that the following will serve as a skeleton for the desired
steps 1, 2, 5.

fso = new ActiveXObject("Scripting.FileSystemObject");
ab = new ActiveXObject("Broker.Application");
stocks = ab.Stocks;
count = stocks.Count;
aa = ab.Analysis;

for (i = 1; i <= 10; i++) {
f = fso.GetFile("c:\\temp\\Input" + i + ".csv");
ts = f.OpenAsTextStream(1, 0);  // Open for read of ASCII
tickers = ",";

while (!ts.AtEndOfStream) {
   tickers += ts.ReadLine();   // Assume one ticker per line in .csv
file
   tickers += ",";
}

ts.Close();


for (j = 0; j < count; j++) {
   stock = stocks.Item(j);

   if (tickers.indexOf("," + stock.Ticker + ",") >= 0) {
  stock.WatchListBits |= 1 << 20;  // Add to watchlist 20
   } else {
  stock.WatchListBits &= !(1 << 20);   // Remove from watchlist
20
   }
}

ab.RefreshAll();

// Your backtest here.
// Your exploration here.
}

Mike


--- In amibroker@yahoogroups.com, "bistrader"  wrote:
>
> I am working on a second JavaScript that I will post when done. I want
it to do the following.
>
> 1. Makes watchlist 20 empty.
> 2. Reads Input1.csv symbols into watchlist 20.
> 3. Runs a backtest on MyBacktest.afl with filter at watchlist 20.
> 4. Then, runs an exploration on MyExploration.afl using current symbol
loaded in AB. This exploration creates a text file called Output1.csv to
match up with Input1.csv
> 5. Loops thru Step 1 thru Step4 for a total of 10 times starting with
Input1.csv and ending with Input10.csv. In the end, there are
Output1.csv thru Output10.csv.
>
> I know how to do Steps 3 and 4. I do not know as of yet how to do
Steps 1, 2 and 5 in JavaScript. Help is appreciated and thanks!!
>
> Bert
>




Re: [amibroker] How to add symbols to a *named* watchlist?

2009-11-24 Thread Tomasz Janeczko
Use CategoryFind
http://www.amibroker.com/guide/afl/afl_view.php?id=349

Best regards,
Tomasz Janeczko
amibroker.com
- Original Message - 
From: "TomB" 
To: 
Sent: Tuesday, November 24, 2009 9:45 PM
Subject: [amibroker] How to add symbols to a *named* watchlist?


> 
> The following code
> will clear old tickers
> and add the found tickers to the watchlist:
> 
> CategoryRemoveSymbol("", categoryWatchlist, 1);
> 
> Buy= C> 125 AND C< 200;
> 
> if( LastValue(Buy) )
> CategoryAddSymbol("" , categoryWatchlist, 1);
> 
> 
> But it is not working
> if watchlist 1 has a name like 'Buys'.
> 
> I have tried things like:
> 
> Buys= 1;
> CategoryRemoveSymbol("", categoryWatchlist, Buys);
> 
> with no success.
> 
> Is there a way to work with named watchlists?
> 
> 
> 
> 
> 
>  IMPORTANT PLEASE READ 
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> Yahoo! Groups Links
> 
> 
> 


[amibroker] How to add symbols to a *named* watchlist?

2009-11-24 Thread TomB

The following code
will clear old tickers
and add the found tickers to the watchlist:

CategoryRemoveSymbol("", categoryWatchlist, 1);

Buy= C> 125 AND C< 200;

if( LastValue(Buy) )
CategoryAddSymbol("" , categoryWatchlist, 1);


But it is not working
if watchlist 1 has a name like 'Buys'.

I have tried things like:

Buys= 1;
CategoryRemoveSymbol("", categoryWatchlist, Buys);

with no success.

Is there a way to work with named watchlists?



Re: [amibroker] Re: Lets ask T J for AFL EDITOR encryption in the next beta

2009-11-24 Thread Dennis Brown
I agree with Mike.  

There are things I will not share for free, because it takes to much time to 
support -- especially if someone modifies my AFL and then has a problem because 
they did not realize some side effect of their change.  I would be more tempted 
to share some things if I could protect some parts of the AFL so that it was a 
black box function, just like a DLL would be.  It is not even a matter of 
getting paid for it.  

I would of course prefer to see it be something simple, like an encrypted 
include file with a key used to un-encrypt each copy on the fly at run time.

I am sure some would be tempted to offer a paid product if it could be 
protected for both support reasons, and to keep it from being ripped off and 
translated to other platforms.

I do offer things for free that are mutually beneficial to myself and the 
community, as time permits.  

When someone offers a product for sale, they put a lot more effort into it to 
make it a useful and documented product that does what it says it will do.  The 
real cost of a paid product is the documentation and support issues.  If 
someone in the community offers something for sale that is not supported or 
worth the price, then it will only take a day for the community to advise 
against using it.  The programmer will never recover their costs if they do not 
offer something of value.  

However, we have to be patient with what we ask TJ to offer and when.  He is 
only one person with many things on the priority list.  I have a number of 
things that I would like to see in the next beta, and most have to do with 
solving my own problems with making AFL programs that will improve my trading 
(the main purpose of AmiBroker).  I would like to see more low level AFL 
infrastructure enhancements to make it easier to make more customized trading 
"platforms".

Best regards,
Dennis


On Nov 24, 2009, at 6:22 AM, Mike wrote:

> I support the feature. It hurts no one, and opens up the possibility of 
> creative new tools for those that see value in the offering. 
> 
> There are already numerous examples of quality commercial products and 
> services, arising from the AmiBroker community, that have not comprimised the 
> cooperative spirit.
> 
> Were the paid versions of Fred's "IO" not worth the money when Walk Forward 
> was not otherwise available? Should Howard's books have all been published as 
> free .pdf files instead bound texts? Should the recordings, workshops and 
> courseware from the various conferences all have been made freely available 
> rather than paid CD's?
> 
> Contrary to the sentiments expressed thus far, I invite supplemental 
> offerings. All of the above have substantially benifited those who saw the 
> value.
> 
> Ultimately, commerce is the reason behind why we're all here. Small 
> businesses are the life blood of a healthy, thriving, *adaptive* economy. The 
> more talent put towards a common goal, the more likely the generation of 
> creative new tools.
> 
> However, Tomasz has repeated often that:
> 
> 1. Features of each subsequent release are predetermined well in advance.
> 
> 2. This user group is effectively ignored with respect to new feature 
> requests. (Though there are more than one example of that rule being bent, if 
> not broken)
> 
> Those in favour of the feature may add their support to the existing request. 
> Those against are welcome to their opinion. Though, my hope is that that 
> opinion might be swayed in light of the examples above.
> 
> Mike 
> 
> --- In amibroker@yahoogroups.com, "mark.a.brand"  wrote:
>> 
>> I agree with the sentiments of Grant Noble & Steve Hite also
>> 
>> 2009/11/24 Keith McCombs 
>> 
>>> 
>>> 
>>> Ronald --
>>> Sorry, but I agree with the quote below, which you attribute to Grant
>>> Noble and Steve Hite.
>>> 
>>> Also, I doubt that the AB community represents a very good market for
>>> "Black Box" software.
>>> 
>>> You might better translate your indicators into TradeStation's
>>> EasyLanguage.  EL code can be easily encrypted and, I believe, the TS
>>> community is more receptive to "Black Boxs".
>>> -- Keith
>>> 
>>> Ronald Davis wrote:
>>> 
>>> 
>>>  I have no C++ programming skills at all, so making an AFL plugin is out
>>> of the question for me.
>>> Also, I imagine it  would be a lot of work for C++ programmers to create
>>> Plugins because of
>>> the inability of DLLS to access the fantastic array processing  that is
>>> unique to Amibroker.
>>> 
>>> I have attached a chart of UKW which, IMHO, clearly shows top pivots and
>>> the bottom pivots.
>>> 
>>> Years ago,when  my son showed me the Amibroker software,
>>> I concluded that it should be possible to develop AFL smoothing techniques
>>> that would
>>> produce custom indicator lines that would display the technical status of
>>> any symbol.
>>> 
>>> Hopefully,  some Amibroker readers of this Yahoogroup agree with my view
>>> that these chart lines
>>> really do a good job of showing  the top pivots and the 

[amibroker] Spread trading example code???

2009-11-24 Thread Mike
I am looking for any information or examples on how to program a pairs or 
spread trade in AB (Using equal dollar allocations you Buy one issue and sell 
another at the same time and the equity would be the difference). 

Can anyone point me in the right direction?

Thanks for the assist!

mike




Re: [amibroker] Re: Tick data, how important is bids/asks?

2009-11-24 Thread Dennis Brown
Howard,

I completely agree that the bid/ask data is of marginal value for most stocks.  
Many games are played, and I have experienced them first hand.  

However, there are a couple of instances where the bid/ask is very useful to me.

1.   Thinly traded issues.  Often, the bid/ask is far away from the last traded 
price, and a market order is a big mistake.  You need to look at the bid/ask 
and size available to make a trade.  Even a little guy trading several hundred 
dollars can move the market on these issues.  You have to land your order right 
on the bid/ask, otherwise they will move the bid/ask away from your limit order 
without ever making a trade.

2.  ES futures.  I trade and watch these every day.  The bid/ask is 80% stable 
up to execution.  The traders really do want to get filled.  bid/ask of double 
the normal size on a price really does pose some S/R and scare the traders away 
from that price.  I can improve my trading execution by a tick using this info. 
 Of course a big order can come in and flush all the limit orders away in an 
instant, but that is part of  the game.

So, the information is useful under the right circumstances.  No information is 
100% reliable to make money.  That would be a market inefficiency and would 
soon get closed.  The general rule is 80% reliable is as good as it gets -- and 
the other 20% will take away all your profits if you don't protect them.

BR,
Dennis


On Nov 23, 2009, at 6:34 PM, Howard B wrote:

> 
> 
> Greetings all --
> 
> In a conversation I had recently with a practitioner of high frequency 
> trading, including flash trading, he pointed out that it is not unusual for 
> bids and offers to be modified many times for every trade that is eventually 
> executed.  Many means somewhere between two or three times and several 
> hundred times -- much of that activity taking place in millisecond and 
> microsecond time frames.  
> 
> In other conversations and in my own experience, traders often place an order 
> with a bid or ask price designed to learn something about the market, but 
> have no intention of being filled.  One fellow described these orders as 
> "cancel if close".
> 
> In my opinion, bid and ask prices do not add information that is helpful to 
> individuals and small trading organizations.
> 
> Thanks,
> Howard
> 
> 
> 
> On Mon, Nov 23, 2009 at 9:57 AM, Tomasz Janeczko  wrote:
>  
> Hello,
> 
> Bid and asks are sent by IQFeed and eSignal and IB,
> and they are shown in Time&Sales window in AmiBroker.
> http://www.amibroker.com/guide/w_timesales.html
> 
> Historical data is different story. Various feeds supply various information.
> IB does not deliver tick historical data at all (best resolution is 1 second).
> IQFeed as written below delivers historical tick data in form of TRADES only.
> eSignal depending on request you send can deliver trades only, bid/ask only 
> or both (including
> all bid/ask changes that happen *between* trades).
> Access to historical bid/ask was not given in form of arrays in AB because
> of differences outlined above (only some sources deliver necessary info), and 
> because
> there was no room in quotation structure. With recently introduced changes 
> (added aux1/aux2 fields)
> now it is technically possible to deliver historical bid/ask matching trade 
> records (the way IQfeed does)
> but that requires extra code in the plugin(s) and it is under development.
> 
> Note also that in the past I have been doing research on bid/ask relationship 
> vs trade prices
> and found that there is really lots of manipulation occuring on bid/ask and 
> level2 books and
> hypothesis that relationship between bid/ask/trade is market driving force 
> was found to be false.
> People often forget that nowadays lots of trades come from dark liquidity 
> pools as they are required
> to report trades made but they are not required to report quotes (bid/ask) so 
> they don't appear
> in order books *at all*. You won't see any quote from dark pools. You will 
> see the trades, but they
> are reported with delay as large as possible.
> 
> So called "alternative trading systems" (dark pools among others) are 
> required to report trades to the Consolidated Tape on a 
> 90-second delay.
> 
> This leads to very distorted picture and makes bid/ask analysis very 
> questionable.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> 
> 
> - Original Message - 
> From: "iqfeed" 
> To: 
> Sent: Monday, November 23, 2009 4:18 PM
> Subject: [amibroker] Re: Tick data, how important is bids/asks?
> 
> > Just to clarify, IQFeed does provide bid/ask quotes in the stream. We send 
> > every trade, as well as every bid/ask price and volume 
> > update. We don't store each bid/ask update in history however. Instead, we 
> > only store trades, and the bid/ask price at the time 
> > of the trade which allows 3rd party software to determine if a trade 
> > occured at the bid or the ask. Trades are often interpreted 
> > as a buy or 

Re: [amibroker] QP2.dll v 2.0.1

2009-11-24 Thread Mark Hike
I think it comes with the latest Amibroker beta installation.

On Tue, Nov 24, 2009 at 10:52 AM, gesges  wrote:

>
>
> I see TJ mentioned QP2.dll v 2.0.1 But I can't locate it on the AB web
> site. Can someone point me to the new QP dll?
>
> thanks,
>
> ges
>
>  
>


Re: [amibroker] HERE IS JAVA SCRIPT EXPLORATION AND EXPORT EXAMPLE

2009-11-24 Thread Herman
Thanks, much appreciated! I already saw a few points new to me  :-)

My intention is to launch this, using Alert(), from a control panel 
running in a indicator window. The AA reports provide me with realtime 
sorted  data that is used in my system (running in an Indicator). Thus 
far I started the AA manually and used Run Every to keep it running. I 
prefer to run the AA under complete control of my control panel.

I haven't tried your code yet (AB is busy with a long Indicator 
maintenance run), but can you tell me if it is possible to launch the AA 
but keep it minimized?

Thanks again for sharing!
herman

bistrader wrote:
> Mike, Herman and others,
> Here is my Java Script to run an Exploration and then Export it to a csv 
> file.  This was the easy one.
>
> // Exploration_Example.js
>
> //  This Java Script file should:
> //  1. Load a Database
> //  2. Run an exploration on an afl.
> //  3. Exports the exploration to a csv file.
>
> // 
> 
> // Create AmiBroker object and get Analysis object
> // 
> 
> var AB, AA, i;
>
> AB = new ActiveXObject("Broker.Application");
> AA = AB.Analysis;
>
> // 
> 
> // Load Database
> // 
> 
> AB.LoadDatabase("C:\\Amibroker\\US-Stocks");
>
> // 
> 
> // Automatic Analysis Input and Export Information
> // 
> 
> AFL_Directory = "C:\\Amibroker\\Temp\\"; // Location of AFL
> AFL_ExploreFileName = "Exploration_Example.afl"; // AFL program to 
> get the data to be exported
> AFL_ExploreFile = AFL_Directory + AFL_ExploreFileName;   // Name of the above 
> program with it's path included
>
> Export_Directory = "C:\\Amibroker\\Temp\\";  // Location where 
> Exported data will be saved
> ExportFileName = "Exploration_Example.csv";  // Name of export 
> file
> ExportFile = Export_Directory + ExportFileName;  // Name of above 
> export file with its path included
>
> Settings_Directory = "C:\\AmiBroker\\Settings\\";
> SettingsFileName = "SettingsBasic.ABS";
> SettingsFile = Settings_Directory + SettingsFileName;
>
> // 
> 
> // Load Reference Ticker into AmiBroker
> // 
> 
> AB.ActiveDocument.Name = "RUT-I"; // Set RUT-I as reference ticker
>
> // 
> 
> // Automatic Analysis - Setup Exploration using info defined above
> // 
> 
> AA.LoadSettings( SettingsFile );
> AA.LoadFormula( AFL_ExploreFile );
>
> // Use the following to tell Amibroker what to Include/Exclude and what dates 
> to use
> //
> // "index", "favorite", "market", "group", "sector", "index", "watchlist"
> // 0 = include; 1 = exclude
> // 0 = all stocks, 1 = current stock, 2 = use filter
> // 0 = all quotes, 1 = n last quotes, 2 = n last days, 3 = from-to date
> //
>
> // Set Filters
> AA.ClearFilters();
>
> // AA.Filter(0,"favorite") = 1;   // Try this to load a long ticker which is 
> favorites ^rut
> AA.ApplyTo = 1;   // 0 = all stocks, 1 = current stock, 2 = 
> use filter
> //AA.Filter(0,"watchlist") = 0; // 0 = Include; "watchlist" number
>
> // Set Dates
> AA.RangeMode = 3;// 0 = all quotes, 1 = n last quotes, 2 
> = n last days, 3 = from-to date
> //AA.RangeN = 5000;
> AA.RangeFromDate = "12/31/2002";
> AA.RangeToDate = "12/31/2099";
>
> // 
> 
> // Run exploration, export exploration to csv file
> // 
> 
> AA.Explore();
> 
> AA.Export( ExportFile );
>
> // 
> 
> // Save database (not really needed), Refresh database (also not really needed
> // and close AA window when done.
> // 
> 
> AB.SaveDatabase();
> AB.RefreshAll();
>
> AA.ShowWindow(0); // 0 = all stocks, 1 = current stock, 2 
> = use filter
>
> // 
> 
>
>
>
> 
>
>  IMPORTANT PLEASE READ 
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.c

[amibroker] Help with More Complicated JavaScript Needed

2009-11-24 Thread bistrader
I am working on a second JavaScript that I will post when done.  I want it to 
do the following.

1. Makes watchlist 20 empty.
2. Reads Input1.csv symbols into watchlist 20.
3. Runs a backtest on MyBacktest.afl with filter at watchlist 20.
4. Then, runs an exploration on MyExploration.afl using current symbol loaded 
in AB.  This exploration creates a text file called Output1.csv to match up 
with Input1.csv
5. Loops thru Step 1 thru Step4 for a total of 10 times starting with 
Input1.csv and ending with Input10.csv.  In the end, there are Output1.csv thru 
Output10.csv.

I know how to do Steps 3 and 4.  I do not know as of yet how to do Steps 1, 2 
and 5 in JavaScript.  Help is appreciated and thanks!!

Bert



[amibroker] HERE IS JAVA SCRIPT EXPLORATION AND EXPORT EXAMPLE

2009-11-24 Thread bistrader
Mike, Herman and others,
Here is my Java Script to run an Exploration and then Export it to a csv file.  
This was the easy one.

// Exploration_Example.js

//  This Java Script file should:
//  1. Load a Database
//  2. Run an exploration on an afl.
//  3. Exports the exploration to a csv file.

// 
// Create AmiBroker object and get Analysis object
// 
var AB, AA, i;

AB = new ActiveXObject("Broker.Application");
AA = AB.Analysis;

// 
// Load Database
// 
AB.LoadDatabase("C:\\Amibroker\\US-Stocks");

// 
// Automatic Analysis Input and Export Information
// 
AFL_Directory = "C:\\Amibroker\\Temp\\"; // Location of AFL
AFL_ExploreFileName = "Exploration_Example.afl"; // AFL program to get 
the data to be exported
AFL_ExploreFile = AFL_Directory + AFL_ExploreFileName;   // Name of the above 
program with it's path included

Export_Directory = "C:\\Amibroker\\Temp\\";  // Location where 
Exported data will be saved
ExportFileName = "Exploration_Example.csv";  // Name of export file
ExportFile = Export_Directory + ExportFileName;  // Name of above 
export file with its path included

Settings_Directory = "C:\\AmiBroker\\Settings\\";
SettingsFileName = "SettingsBasic.ABS";
SettingsFile = Settings_Directory + SettingsFileName;

// 
// Load Reference Ticker into AmiBroker
// 
AB.ActiveDocument.Name = "RUT-I"; // Set RUT-I as reference ticker

// 
// Automatic Analysis - Setup Exploration using info defined above
// 
AA.LoadSettings( SettingsFile );
AA.LoadFormula( AFL_ExploreFile );

// Use the following to tell Amibroker what to Include/Exclude and what dates 
to use
//
// "index", "favorite", "market", "group", "sector", "index", "watchlist"
// 0 = include; 1 = exclude
// 0 = all stocks, 1 = current stock, 2 = use filter
// 0 = all quotes, 1 = n last quotes, 2 = n last days, 3 = from-to date
//

// Set Filters
AA.ClearFilters();

// AA.Filter(0,"favorite") = 1;   // Try this to load a long ticker which is 
favorites ^rut
AA.ApplyTo = 1;   // 0 = all stocks, 1 = current stock, 2 = use 
filter
//AA.Filter(0,"watchlist") = 0; // 0 = Include; "watchlist" number

// Set Dates
AA.RangeMode = 3;// 0 = all quotes, 1 = n last quotes, 2 = 
n last days, 3 = from-to date
//AA.RangeN = 5000;
AA.RangeFromDate = "12/31/2002";
AA.RangeToDate = "12/31/2099";

// 
// Run exploration, export exploration to csv file
// 
AA.Explore();

AA.Export( ExportFile );

// 
// Save database (not really needed), Refresh database (also not really needed
// and close AA window when done.
// 
AB.SaveDatabase();
AB.RefreshAll();

AA.ShowWindow(0); // 0 = all stocks, 1 = current stock, 2 = 
use filter

// 



[amibroker] QP2.dll v 2.0.1

2009-11-24 Thread gesges
I see TJ mentioned QP2.dll v 2.0.1  But I can't locate it on the AB web site.  
Can someone point me to the new QP dll?

thanks,

ges



[amibroker] Interesting Trick found with IB TWS

2009-11-24 Thread dubi1974
Hi,

As you maybe know and heard IB/TWS has included a history of 2 years. This is 
also true for Futures contracts. If you try (as of today, Nov 2009) to 
download/backfill the data for e.g YM (DJIA) March contract into Amibroker, you 
will get an error message (something like: contract not found). 
But I found a trick how to receive the data and let Amibroker backfill. If you 
try to backfill the March contract change the clock of your system from today 
(24 November 2009) to the third Friday/Saturday of March (e.g. 20 or 21 March 
2009) and start Amibroker. 
Change to 180 days backfill and Amibroker will backfill the contract. This 
worked for me until Dec 2007. Maybe this trick can be somehow incorporated into 
a next version of Amibroker.
Hope I could help someone with this finding.

Kind regards, dubi



[amibroker] OLE command to force a backfill on a watchlist

2009-11-24 Thread Rajiv Arya

Hi All,

 Try to figure out the OLE command or the best method to force a backfill on a 
watchlist.
I dynamically populate a watchlist via an OLE, but I want to force a backfill.
I used Esignal as my RT quote provider.

Thanks
Rajiv
  
_
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

Re: [amibroker] Trading Triangle from Market Club:

2009-11-24 Thread ram vel



Hi Ashish
 
You seem quite excited about trade triangles.
Sometimes you may already have it in you but just waiting for a spark.

I cant help you fully, but to
 Set the ball rolling (1 to 2%) OR  to Bell the cat or who let the dogs out??
here is some thinking which can help
 
to start moving the ball from stationary zone.
These are just code lines. Not an afl.
 
 
 
1 Last hour close above 5 hour moving average
Code lines may be 
   condition is Hourly close > MA(C,5)
 
 
2 New 3 day high on monday
 think of monday later
 
H3 = High > Ref(HHV(High,3),-1);

 
3.Last price Above 20day moving average
   C >MA(C,20)
4 New 3 week high  week ending 21november
 (think of monday later )
  
 
H3w = High > Ref(HHV(High,15),-1)
 
 
5 NEW 3 MONTH HIGH
H3m = High > Ref(HHV(High,66),-1);
 
   Why 66? (22 trading days a month,take round figure)
--
This is just a start.
rest of the thing  will soon be completed and my mistake if any also will be fixed.
 
Note:
From coding library, new 52 week high is defined as 
 H1 = High > Ref(HHV(High,260),-1);
 
 
Enjoy!
rvlv
--- On Mon, 11/23/09, Asis Ghosh  wrote:
From: Asis Ghosh Subject: [amibroker] Trading Triangle from Market Club:To: amibroker@yahoogroups.comDate: Monday, November 23, 2009, 11:43 PM

Based on a pre-defined weighted trend formula for chart analysis, DJI scored +100 on a scale from -100 (strong downtrend) to +100 (strong uptrend): 









+10
Last Hour Close Above 5 Hour Moving Average


+15
New 3 Day High on Monday


+20
Last Price Above 20 Day Moving Average


+25
New 3 Week High, Week Ending November 21st


+30
New 3 Month High in November



+100
Total ScoreCan any of our experienced AB users/programmers convert the above trading code into AB AFL--it might be very helpful for taking positions (BTST/STBT) at EOD--Cheers,Asis



  

Re: [amibroker] Limiting number of positions ( contracts)

2009-11-24 Thread Tomasz Janeczko
Hello,

Use SetPositionSize 
http://www.amibroker.com/f?setpositionsize

Best regards,
Tomasz Janeczko
amibroker.com
  - Original Message - 
  From: Deepak Patade 
  To: amibroker@yahoogroups.com 
  Sent: Tuesday, November 24, 2009 12:14 PM
  Subject: [amibroker] Limiting number of positions ( contracts)





  I trade only futures and while i backtest then number of contracts bought are 
very huge in the AA
  how can i limit the number of contracts
  Tried numcontracts
  this is simple.
  i am missing something



  

[amibroker] Re: Lets ask T J for AFL EDITOR encryption in the next beta

2009-11-24 Thread Mike
I support the feature. It hurts no one, and opens up the possibility of 
creative new tools for those that see value in the offering. 

There are already numerous examples of quality commercial products and 
services, arising from the AmiBroker community, that have not comprimised the 
cooperative spirit.

Were the paid versions of Fred's "IO" not worth the money when Walk Forward was 
not otherwise available? Should Howard's books have all been published as free 
.pdf files instead bound texts? Should the recordings, workshops and courseware 
from the various conferences all have been made freely available rather than 
paid CD's?

Contrary to the sentiments expressed thus far, I invite supplemental offerings. 
All of the above have substantially benifited those who saw the value.

Ultimately, commerce is the reason behind why we're all here. Small businesses 
are the life blood of a healthy, thriving, *adaptive* economy. The more talent 
put towards a common goal, the more likely the generation of creative new tools.

However, Tomasz has repeated often that:

1. Features of each subsequent release are predetermined well in advance.

2. This user group is effectively ignored with respect to new feature requests. 
(Though there are more than one example of that rule being bent, if not broken)

Those in favour of the feature may add their support to the existing request. 
Those against are welcome to their opinion. Though, my hope is that that 
opinion might be swayed in light of the examples above.

Mike 

--- In amibroker@yahoogroups.com, "mark.a.brand"  wrote:
>
> I agree with the sentiments of Grant Noble & Steve Hite also
> 
> 2009/11/24 Keith McCombs 
> 
> >
> >
> > Ronald --
> > Sorry, but I agree with the quote below, which you attribute to Grant
> > Noble and Steve Hite.
> >
> > Also, I doubt that the AB community represents a very good market for
> > "Black Box" software.
> >
> > You might better translate your indicators into TradeStation's
> > EasyLanguage.  EL code can be easily encrypted and, I believe, the TS
> > community is more receptive to "Black Boxs".
> > -- Keith
> >
> > Ronald Davis wrote:
> >
> >
> >   I have no C++ programming skills at all, so making an AFL plugin is out
> > of the question for me.
> > Also, I imagine it  would be a lot of work for C++ programmers to create
> > Plugins because of
> > the inability of DLLS to access the fantastic array processing  that is
> > unique to Amibroker.
> >
> > I have attached a chart of UKW which, IMHO, clearly shows top pivots and
> > the bottom pivots.
> >
> > Years ago,when  my son showed me the Amibroker software,
> > I concluded that it should be possible to develop AFL smoothing techniques
> > that would
> > produce custom indicator lines that would display the technical status of
> > any symbol.
> >
> > Hopefully,  some Amibroker readers of this Yahoogroup agree with my view
> > that these chart lines
> > really do a good job of showing  the top pivots and the bottom pivots.
> >
> > This email is a suggestion that we form an Amibroker/Saul Alinsky community
> > organizer group in
> > an attempt to convince T J to include Encryption Ability WITHIN the AFL
> > editor.
> > IMHO, T J'S comment per 2) below that he would  make it a seperate add on
> > was to allay the
> > concerns of grantnoble and stevehite per 1) below.
> >
> > 1) On April 13, and April 14, grantnoble and stevehite submitted the below
> > descenting  comments.
> >
> > "I hope this functionality is never implemented.
> > If one's AFL is that good then just keep it to yourself and make a private
> > fortune or write a plugin in C/C++
> > and sell that (if you can). Tomasz has a great open community in the Yahoo
> > group and this doesn't promote
> > a sharing of ideas.  I don't see how this benefits anyone other than third
> > parties who are just looking to make
> > a quick buck."
> >
> > 2) On Apr 25th, 2006, Tomasz Janeczko responded with "This will be made
> > available as a separate add-on
> > product"
> >
> > I have also attached a wordpad of the all of the Encryption feedbacks that
> > were posted in response to
> > Encryption suggestion  #51.  Ron D
> >
> >   
> >
>




[amibroker] Limiting number of positions ( contracts)

2009-11-24 Thread Deepak Patade
I trade only futures and while i backtest then number of contracts bought
are very huge in the AA
how can i limit the number of contracts
Tried numcontracts
this is simple.
i am missing something


Re: [amibroker] Search problems

2009-11-24 Thread reinsley


You can google :

http://www.google.com/search?hl=en&q=site%3Ahttp%3A%2F%2Ffinance.groups.yahoo.com%2Fgroup%2Famibroker%2F+%22two+panes%22&aq=f&oq=&aqi=

another

http://www.google.com/search?hl=en&q=site%3A%2F%2Ffinance.groups.yahoo.com+afl+editor&aq=f&oq=&aqi=

NB : The quotes link the words, it's a string, without quotes it's all 
occurences

Best regards


jamesmemphis a écrit :
>  
> 
> Is anyone else having problems searching for messages in the group? I 
> noticed this link when having problems:
> 
> http://www.ygroupsblog.com/blog/2009/03/17/groups-search-update/ 
> 
> 
> I am inclined to think our group has the bug and was wondering if it had 
> been reported. Sorry if all this has been discussed and I just missed it.
> 
> James
> 
> 





 IMPORTANT PLEASE READ 
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)

<*> To change settings via email:
amibroker-dig...@yahoogroups.com 
amibroker-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
amibroker-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [amibroker] Lets ask T J for AFL EDITOR encryption in the next beta

2009-11-24 Thread mark.a.brand
I agree with the sentiments of Grant Noble & Steve Hite also

2009/11/24 Keith McCombs 

>
>
> Ronald --
> Sorry, but I agree with the quote below, which you attribute to Grant
> Noble and Steve Hite.
>
> Also, I doubt that the AB community represents a very good market for
> "Black Box" software.
>
> You might better translate your indicators into TradeStation's
> EasyLanguage.  EL code can be easily encrypted and, I believe, the TS
> community is more receptive to "Black Boxs".
> -- Keith
>
> Ronald Davis wrote:
>
>
>   I have no C++ programming skills at all, so making an AFL plugin is out
> of the question for me.
> Also, I imagine it  would be a lot of work for C++ programmers to create
> Plugins because of
> the inability of DLLS to access the fantastic array processing  that is
> unique to Amibroker.
>
> I have attached a chart of UKW which, IMHO, clearly shows top pivots and
> the bottom pivots.
>
> Years ago,when  my son showed me the Amibroker software,
> I concluded that it should be possible to develop AFL smoothing techniques
> that would
> produce custom indicator lines that would display the technical status of
> any symbol.
>
> Hopefully,  some Amibroker readers of this Yahoogroup agree with my view
> that these chart lines
> really do a good job of showing  the top pivots and the bottom pivots.
>
> This email is a suggestion that we form an Amibroker/Saul Alinsky community
> organizer group in
> an attempt to convince T J to include Encryption Ability WITHIN the AFL
> editor.
> IMHO, T J'S comment per 2) below that he would  make it a seperate add on
> was to allay the
> concerns of grantnoble and stevehite per 1) below.
>
> 1) On April 13, and April 14, grantnoble and stevehite submitted the below
> descenting  comments.
>
> "I hope this functionality is never implemented.
> If one's AFL is that good then just keep it to yourself and make a private
> fortune or write a plugin in C/C++
> and sell that (if you can). Tomasz has a great open community in the Yahoo
> group and this doesn't promote
> a sharing of ideas.  I don't see how this benefits anyone other than third
> parties who are just looking to make
> a quick buck."
>
> 2) On Apr 25th, 2006, Tomasz Janeczko responded with "This will be made
> available as a separate add-on
> product"
>
> I have also attached a wordpad of the all of the Encryption feedbacks that
> were posted in response to
> Encryption suggestion  #51.  Ron D
>
>   
>