Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - tujthevux

Pages: [1]
General Discussion / Re: Price Alerts
« on: May 13, 2011, 01:58:13 am »
Thanks very much, Admin.
Your suggestions are very useful, those help me a lot.

General Discussion / Re: Price Alerts
« on: May 11, 2011, 10:06:14 pm »
Hi Admin,
Thanks for your kindness and enthusiasm,
As I know, AlertIf is used with general condition which we apply the same with all tickers in scanned list.
Let's see the case I mentioned.
In my watch list (List 1 for example) I want to scan, there are 3 tickers which I want system shows an alert when respective condition matches. As below

Ticker -------------Up Price------------Down Price

AB1   ------------- $20.5--------------- XXX
AB2   --------------XXX   --------------- $12.5
BC1   --------------$32.5 -------------- $28.0

(Note: XXX means "unspecified")

Whenever price of each stock reaches up/down to UpPrice/DownPrice, system give me a message.
Just take a look and give me your comment.
Thanks in advance.

General Discussion / Price Alerts
« on: May 11, 2011, 05:39:01 am »
I'm looking for functions which show an alert when price reaches up / down a pre-defined level.

From help, I know "Easy alert window allows to define real-time alerts without any coding. Please note that this functionality is available ONLY if you are using real-time data plugin and is not available in end-of-day mode."

I'm using an external program which fetches data in Metastock format. Amibroker uses  Metastock data plugin to access information.
It seems not a real-time data plugin so I can not find the alert window.

Your suggestion for an alert system will be highly appreciated.

General Discussion / Re: AFL for Oraganize Assignments
« on: April 26, 2011, 10:00:49 pm »
As you advice, I found this helps me.
Code: [Select]
   /* change this line according to your data file name */
    var filename = "industry_data.txt";

    var fso, f, r;
    var ForReading = 1;
    var AmiBroker;
    var fields;
    var stock;

    /* Create AmiBroker app object */
    AmiBroker = new ActiveXObject( "Broker.Application" );

    /* ... and file system object */
    fso = new ActiveXObject( "Scripting.FileSystemObject" );

    /* open ASCII file */
    f = fso.OpenTextFile( filename, ForReading);

    /* read the file line by line */
    while ( !f.AtEndOfStream )

        r = f.ReadLine();

        /* split the lines using comma as a separator */
        fields = r.split(",");

        /* add a ticker - this is safe operation, in case that */
        /* ticker already exists, AmiBroker returns existing one */
        stock = AmiBroker.Stocks.Add( fields[ 0 ] );

        stock.FullName = fields[ 1 ];
        stock.IndustryID = parseInt( fields[ 2 ] );


    /* refresh ticker list and windows */

General Discussion / AFL for Oraganize Assignments
« on: April 20, 2011, 10:12:51 pm »
Hi sir,
I am re-organising my symbols using Organize Assignments in menu Symbols. It's a hard work with thousand of symbols from two stock markets in our country. Anyway to use AFL (programming) to do this work?

Amibroker Help / Re: Update Symbol Information.
« on: October 14, 2010, 04:48:03 am »
Thanks, I'll update with format $OVERWRITE 1.

Amibroker Help / Update Symbol Information.
« on: October 13, 2010, 05:32:15 am »
Hi all,
Symbols in my Amibroker 5.30 database contain wrong market values. I have their correct values in external files (They can be excel or Ascii text file). I think of Amibroker Import function, but I'm not sure:
- Import function can be used to import symbol information only? If yes, how I can do?
- Will amibroker double symbols in the database if I import?
Anyone has experiment on this, please give me some advices.
Thanks in advance.

At last, I found out a method and I want to share it here.
We have statuscode "barinrange" and status("barinrange") returns 1 when current bar is within current auto-analysis From-To range. Calculate a cumulative sum of that array, we have the last bar which keep value=1 gives exactly number of bars in range. That number is also the "n last days" I want to find. So
Code: [Select]

Amibroker Help / Re: Get value of "n last days" in Automatic Analysis window
« on: September 30, 2010, 10:43:41 pm »
Just because I don't want use a Param() for this kind of variable and double the input before execute my scan.
Admin, thanks a lot for your replies.

Amibroker Help / Re: Get value of "n last days" in Automatic Analysis window
« on: September 30, 2010, 09:23:52 pm »
Hi Admin,
The following picture show in encircled area what I meant.
In the script, my formula file, I would like to write code to access this value, use the value in my expression for further calculation.
Is this possible?

Amibroker Help / Get value of "n last days" in Automatic Analysis window
« on: September 30, 2010, 03:22:47 pm »
Hi everyone,
I'm writing an afl script for Amibroker to scan my symbol list. In the script I need to refer to the value of "n last days" in the Automatic Analysis windows. Anyone knows how to get that value programatically? I appreciate your help a lot to instruct me to do that work.
Thanks in advance.

Pages: [1]