+ Reply to Thread

AmiBroker Tips

  1. AmiBroker Tips

    The easiest way to export quotes to CSV file is to use the below formula from Automatic Analysis window:
    (Analysis -> Automatic Analysis)

    Filter=1;
    AddColumn(O,"Open");
    AddColumn(H,"High");
    AddColumn(L,"Low");
    AddColumn(C,"Close");
    AddColumn(V,"Volume",1.0);

    1. Open: Analysis->Formula Editor
    2. Paste the above formula into formula window
    3. Choose Tools->Send to Auto-Analysis menu in the Formula Editor
    4. In Automatic Analysis window select Apply to: All Stocks, Range: All quotations (or any other time range or filter, depending on what you need to export)
    5. Press Explore button
    6. Press Export button, specify the name and press OK

  2. Alert at Crossover

    Below are details of an afl file which gives alerts for macd crossovers

    a=EMA(C,30)-EMA(C,200);
    b=EMA(a,20);

    Buy = Cross( a,b );
    Sell = Cross( b,a );
    //Short = Sell;
    //Cover = Buy;

    AlertIf( Buy, "", "MACD BUY", 1,1+2 );

    AlertIf( Sell, "", "MACD SELL", 2 ,1+2);

    You may define/modify a and b in above formulae as per your requirements and get alerts.


+ Reply to Thread

Tags for this Thread