FREE Amibroker and Trading Systems Video Course | Let’s Learn Amibroker!

Line1Free Beginners Course  |  Free Intermediate Course  |  Free Amibroker Course

Line1

Hello, and welcome!

It is great to have you here.  It’s great because if you’ve made it here, it means you are the kind of person who knows what they want, and you’re not afraid to make it happen.  By being here you have set yourself apart from the majority – people who only talk about improving their lives, while you are actually doing it.  Check out the links below.  Each one contains a video lesson with added detail to help you learn, and I personally wish you the very best on your journey.

– Dave McLachlan

Videos in the FREE Amibroker Course:

  1. Amibroker: How To Import A Watchlist With A CSV File
  2. Amibroker: How To Backtest A Single Stock Or Index
  3. Amibroker: How To Backtest a Portfolio or Group of Stocks
  4. Amibroker: How To Optimize A Trading System
  5. Amibroker: How To Scan The Market For Buy And Sell Signals
  6. Amibroker: How To Use Explore To Find And Filter Stocks
  7. Amibroker: How To Add Position Sizing Using AFL
  8. Amibroker: How to Add An Index Filter To Your Trading System Using AFL
  9. Amibroker: How To Plot Your Trading System On A Chart (incl. Buy/Sell Arrows)
  10. Amibroker: How to Use the If, Then Else Function (IIF)
  11. Amibroker: How to Code the ATR Trailing Stop (Chandelier) using ApplyStop
  12. Amibroker: How to Plot ApplyStop on a Chart
  13. Amibroker: How to Code Van Tharp Position Sizing (Fixed Fractional)
  14. Amibroker: How to “Scale In” to Positions (1) – Buying Once a Month
  15. Amibroker: How to “Scale In” to Positions (2) – Pyramiding Three Times
  16. Amibroker: How to Use “Cross”, When One Thing Crosses Another
  17. Amibroker Advanced: How to Compare Equity Curves

FREE Trading System Video Lessons:

  1. 7 Free Trading Systems and Their Returns From The Last 13 Years
  2. Seven Full Trading Systems Revisited, With Completely New Data
  3. Trading System: How to Create A Buy and Hold Trading System
  4. Trading System: How to Code “Sell In May And Go Away”
  5. Trading System: How to Code a Moving Average Channel That Made 23% p.a
  6. Trading System: How to Code Highest Highs As Used In 52 Week Highs Or Turtle Trading System
  7. Trading System: How to Code a Bollinger Band Breakout Trading System
  8. Trading System: How to Code a Moving Average Crossover That Returned 28% per annum
  9. Trading System: How to Refer to Previous Signals For MAup Trading System
  10. Trading System: How to Code the Leap Of Faith (Gaps) Trading System That Returned 24% p.a.
  11. Trading System: How to Code a Short Selling System (Plus Results)
  12. Trading System: Meb Faber Trading System Using Different Timeframes
  13. Trading System: How to Code the Three Billion Dollar Trading System

FREE Amibroker Q & A Videos:

  1. Amibroker Q & A: How To Do A Monte Carlo Test? (on ALL versions)
  2. Amibroker Q & A: Visualising Monte Carlo Data with Histograms and Scatter Plots
  3. Amibroker Q & A: How to Create the 52 Week High/Low Index with AddToComposite
  4. Amibroker Q & A: How to Code Trend Pilot: Five Consecutive Days Above or Below a Moving Average
  5. Amibroker Q & A: Three “Hacks” To Improve Your Coding Skills
  6. Amibroker Q & A: How to Remove Excess Signals

Market Research Videos:

  1. The Three Billion Dollar Day Trading System Revealed and Tested
  2. The Trading System from “Reminiscences of a Stock Operator”, Tested Over 116 Years
  3. Does the “Golden Cross” Outperform Buy and Hold? Market Timing, Real Results
  4. How This Random Entry Beat The Market (The Tom Basso Coin Flip Proven & Explained)
  5. New Mean Reversion Trading System (Stocks Over 50 day MA) Tested in Amibroker
  6. More Stats on the Indicator that Beats Buy and Hold Returns
  7. This Simple Indicator SMASHES “Buy and Hold” Returns!
  8. Stock Market Research: The REAL Effect of “Buy and Hold”

Amibroker – How To Make A Watchlist

Amibroker is probably one of the best “bang for your buck” charting and system testing packages out there.  However, even though it is not expensive, it can take a bit of time to learn how to use it properly.

In this Amibroker tutorial, we are going to show you how to create a Watchlist.  Watchlists can be extremely useful if you want to group a bunch of stocks together to look at them easily.  It is also very useful when we want to automatically test our trading system rules over a range of stocks to see how well it works.

How To Make A Watchlist In Amibroker

  • In the main pane of Amibroker on the left go to the Symbols Tab.
  • There you will see lists like Markets, Groups, Sectors.  Click on the little arrow next to the Watchlists tab
  • Select the list number you want to fill with your stocks, and right click.
  • Select Type In Symbols
  • Type in the symbols you want, separated by a comma.  An example would be CBA, WBC, NAB and ANZ.

You have your first watch list!

You can rename your watchlist by left clicking on the list again.  It will turn blue and you can type a new name in and press enter to save it.

Videos in the FREE Amibroker Course:

  1. Amibroker: How To Import A Watchlist With A CSV File
  2. Amibroker: How To Backtest A Single Stock Or Index
  3. Amibroker: How To Backtest a Portfolio or Group of Stocks
  4. Amibroker: How To Optimize A Trading System
  5. Amibroker: How To Scan The Market For Buy And Sell Signals
  6. Amibroker: How To Use Explore To Find And Filter Stocks
  7. Amibroker: How To Add Position Sizing Using AFL
  8. Amibroker: How to Add An Index Filter To Your Trading System Using AFL
  9. Amibroker: How To Plot Your Trading System On A Chart (incl. Buy/Sell Arrows)
  10. Amibroker: How to Use the If, Then Else Function (IIF)
  11. Amibroker: How to Code the ATR Trailing Stop (Chandelier) using ApplyStop
  12. Amibroker: How to Plot ApplyStop on a Chart
  13. Amibroker: How to Code Van Tharp Position Sizing (Fixed Fractional)
  14. Amibroker: How to “Scale In” to Positions (1) – Buying Once a Month
  15. Amibroker: How to “Scale In” to Positions (2) – Pyramiding Three Times
  16. Amibroker: How to Use “Cross”, When One Thing Crosses Another
  17. Amibroker Advanced: How to Compare Equity Curves

FREE Trading System Video Lessons:

  1. 7 Free Trading Systems and Their Returns From The Last 13 Years
  2. Seven Full Trading Systems Revisited, With Completely New Data
  3. Trading System: How to Create A Buy and Hold Trading System
  4. Trading System: How to Code “Sell In May And Go Away”
  5. Trading System: How to Code a Moving Average Channel That Made 23% p.a
  6. Trading System: How to Code Highest Highs As Used In 52 Week Highs Or Turtle Trading System
  7. Trading System: How to Code a Bollinger Band Breakout Trading System
  8. Trading System: How to Code a Moving Average Crossover That Returned 28% per annum
  9. Trading System: How to Refer to Previous Signals For MAup Trading System
  10. Trading System: How to Code the Leap Of Faith (Gaps) Trading System That Returned 24% p.a.
  11. Trading System: How to Code a Short Selling System (Plus Results)
  12. Trading System: Meb Faber Trading System Using Different Timeframes
  13. Trading System: How to Code the Three Billion Dollar Trading System

FREE Amibroker Q & A Videos:

  1. Amibroker Q & A: How To Do A Monte Carlo Test? (on ALL versions)
  2. Amibroker Q & A: Visualising Monte Carlo Data with Histograms and Scatter Plots
  3. Amibroker Q & A: How to Create the 52 Week High/Low Index with AddToComposite
  4. Amibroker Q & A: How to Code Trend Pilot: Five Consecutive Days Above or Below a Moving Average
  5. Amibroker Q & A: Three “Hacks” To Improve Your Coding Skills
  6. Amibroker Q & A: How to Remove Excess Signals

Market Research Videos:

  1. The Three Billion Dollar Day Trading System Revealed and Tested
  2. The Trading System from “Reminiscences of a Stock Operator”, Tested Over 116 Years
  3. Does the “Golden Cross” Outperform Buy and Hold? Market Timing, Real Results
  4. How This Random Entry Beat The Market (The Tom Basso Coin Flip Proven & Explained)
  5. New Mean Reversion Trading System (Stocks Over 50 day MA) Tested in Amibroker
  6. More Stats on the Indicator that Beats Buy and Hold Returns
  7. This Simple Indicator SMASHES “Buy and Hold” Returns!
  8. Stock Market Research: The REAL Effect of “Buy and Hold”

Read Related Articles:




  And, subscribe for free to stay in touch and receive the latest updates:

Enter Your Email Address:

.
(Check Your Junk Mail, Just In Case)

June 3, 2012  Tags: , , , , , ,   Posted in: Amibroker, Articles On Building Wealth, Trading System

35 Responses

  1. Derek - July 2, 2013

    Dave, Could you please do a video on coding the Chandelier stop in Amibroker. I notice that you have a tab devoted to Chandelier in you Amibroker configuration.
    Many thanks
    Regards
    Derek

  2. Dave McLachlan - July 2, 2013

    Hi Derek,

    Yes, absolutely. I have the ATR stop, it was available from the Amibroker website – and I’m currently learning how to code this sort of thing.

    The Chandelier stop involves Looping – apparently quite a common programming phenomenon but completely new to me as a lay-person and with my basic coding skills!

    Anyway – this means that when I understand it, anyone should be able to understand it, and I’ll throw up a lesson at this site.

    Cheers – Dave

  3. Pratik Patel - July 25, 2013

    Thanks a lot Dave for publishing Amibroker tutorials. I was looking all over internet but yours are the best !
    Thanks a ton !

    Cheers
    Pratik

  4. Dave McLachlan - July 27, 2013

    Thanks Pratik,

    It is my pleasure.

    Cheers – Dave

  5. Joe - September 25, 2013

    Hello Dave,

    Fantastic learning tutorial with Amibroker.
    Maybe you can give me some advice with an Amibroker code I’m trying to backtest. It is a simple Rsi(2) system that goes like this:

    Condi1 = C > MA(C, 200);
    r = RSI(2);

    Upper = Optimize(“Upper”, 90, 60, 99, 1);
    Lower = Optimize(“Lower”, 10, 2, 40, 1);

    Buy = Cross(Lower, r) AND Condi1;
    Sell = Cross(r, Upper);

    The problem is, I do not know how to write a code where I Buy another unit (fixed amount) the day after first Buy signal is triggered, if Rsi(2) is still under “Lower” trigger line. It is for backtesting.
    Do you have any idea how to write this part?

    Cheers
    Joe

  6. Dave McLachlan - September 26, 2013

    Hey Joe,

    I love that method! Am just playing around with it myself. Great stuff. I wasn’t too sure, but a quick Google search found me this:

    SetBacktestMode( backtestRegularRawMulti );

    Apparently, this will take all signals (buy, or short) as long as the criteria is “true” and you have funds available. You can, of course, set your funds available with “SetOption(“maxopenpositions”, xx); and SetPositionSize(amount, type);

    Hope this sets you in the right direction 🙂

    – Dave

  7. Narayan - October 22, 2013

    Hi Dale
    Thanks for the fantastic tutorial on Amibroker.

    I am building an INTRADAY exploration for stocks having moving average crossover and breaking hihger high.

    I want to add a filter for filtering out stocks based on % change from previous day’s close. I can’t figure out a way to fetch previous day’s closing value in the calculation.

    Is there any way to do it?

    (Saw your % change filter video, but that’s for daily charts , I am exploring in intraday)

    Thanks
    Narayan

  8. Narayan - October 22, 2013

    Oops …sorry Dave for writing Dale…..typo error… :d

  9. Brad - October 30, 2013

    Hi Dave,
    I’m VERY new to trading, and I’ve been playing with the Amibroker trial.
    I’m having trouble getting useful data to play with, can you recommend a way of getting it?
    Regards
    Brad

  10. Dave McLachlan - November 3, 2013

    Hey Brad

    I use Just Data, and Premium Data is another one out there. End of Day is about $350 a year I believe.

    Cheers, Dave

  11. Geary - November 10, 2013

    Greetings Brad,

    I’m not sure what you want to trade, but one of the least expensive ways is with forex. You can open a real account with $5o and get a taste of actual trading…on the cheap.

    As to the data, this will get you free real time forex data for your trial of Amibroker:

    http://www.youtube.com/watch?v=VM6pgdUBNP0
    http://www.youtube.com/watch?v=emYZYEyphzg

    Hope this helps,
    Kind regards

    Geary

  12. Geary - November 10, 2013

    Dave,

    Beautiful job on your site, many very useful insights and techniques.

    Thank you sir,
    Kind regards

    Geary

  13. Dave McLachlan - November 14, 2013

    Thanks Geary, it’s my pleasure.

    Cheers, Dave

  14. Martin Siegert - December 6, 2013

    Thanks for the Buy and Hold System !
    I have a question how to do ? I have a portfolio with 10 stocks. I want to make an exploration for the buy and hold performance from 01/01/12 to 12/21/12 for example.

    I create a buy and hold -system like

    BUY = 1
    SELL = 0

    It works onyl for one stock but not for each stock in the portfolio.

    How can I do this exploration ??

    Thanks für help

    Martin

  15. Dave McLachlan - December 11, 2013

    Hey Martin,

    My pleasure! I’m not sure exactly, but perhaps it could be done with position sizing. If you set your portfolio to 10 stocks and 10% in each, then perhaps this would work?

    Type this in:

    SetOption(“MaxOpenPositions”, 10); // 10 positions
    SetPositionSize(10, spsPercentOfEquity); // 10% of equity in each position

    Anyways… hope it helps in some small way 🙂 Dave

  16. ian - January 23, 2014

    Dave,
    Is it possible to get free yahoo end of data for stocks linked to amibroker software ?
    Do you consider this clean data to use for end of day trading ?
    Ian

  17. Dave McLachlan - January 24, 2014

    Hey Ian!

    Yes, I’m pretty sure you can get Yahoo data for Amibroker. It might be more hassle than it’s worth though – cleaning up stock splits, name changes, any random ticks. Might not be the best for back-testing. And I also think that it’s mainly only US stocks available.

    I don’t use it personally, that’s why I’m unsure.

    EOD data to buy in Oz is around $350 a year, and is tax deductible. Maybe there is a better way than this, but this is what I do.

    Cheers – Dave

  18. tim - February 21, 2014

    dave

    love this site…thanks for sharing your knowledge

  19. Dave McLachlan - February 23, 2014

    Thanks Tim – glad I could help your journey in some small way.

    – Dave

  20. hasan - August 17, 2014

    Thank you and very useful tutorials i have ever seen..

    I appreciate if you can show some tutorials including loop conditions..

    thank you

  21. Dave McLachlan - August 21, 2014

    Thanks Hasan,

    Loops are not my area of expertise (in fact, my coding skills are very limited). But one site I can recommend is “Codecademy.com”. If it’s still active, it’s a free site that teaches how to code. The JavaScript course they have teaches looping techniques that are very similar to Amibroker AFL and should set you on the right path.

    Cheers – Dave

  22. Dayn - December 2, 2014

    Dave,

    Great tutorials. Can you show a dynamic buy sell of total market on 7000+ stocks (or all three US NYSE, AMEX, NASDAQ combined). I only like to see the top 200 stocks in %performing top down sort order. I’m expecting to see a table update and change dynamically .vs. a chart, so I can determine BUY SELL and back test my entry and exit strategy. Also, can you elaborate how to turn on AMIBROKER as an ATS. Can I white paper money rolling forward too?

    Thanks, Dayn

  23. J.Mohamed Sarvar - March 1, 2015

    Hello Sir,

    Thanks for your Good service.

    Could you please program a new trading system which is purely based on Fibonacci Levels.

    Steps:

    1. Draw Fibonacci line between previous Day’s High and Low
    2. Time Frame Hourly
    3. If price close below the Fib level 127.2 (Go for Sell)
    4. Target: at Fib level 38.2
    5. Stop Loss above Fib level 161.8
    6. If price close above Fib level -27.2 (Go for Buy)
    7. Target: Fib level 38.2
    8. Stop Loss: below Fib level -61.8

    Please give options to select any Fib level for Target or Stop Loss.

    If you have any questions, please feel free to contact me.

    Thanks

    J.Mohamed Sarvar

  24. Paul SIT - July 22, 2015

    Dave,

    I am an Amibroker beginner. I want to filter out the stochastic slow cross signal from a list of stocks. I have the following simple code

    crossBuy=Cross(StochK(20,5),StochD(20,5,3));
    Filter=crossBuy;

    However, I have tried many many times with various modifications, but it never works. Appreciate if you can teach me and point me to the right direction.

    Many thanks.
    P. Sit

  25. John - November 12, 2015

    Hi Dave,

    It is a pleasure reading and learning about amibroker through your website. I’m wondering if you would be willing to do another tutorial / video on taking a sample amibroker strategy that has been backtested on a basket of equitites to be fully automated through Interactive Brokers. And by this I mean what steps someone would need to make to adapt their strategy for full automation. Sample code and methodology would be much appreciated to the novice trader.

    Kind Regards,
    John

  26. Dave McLachlan - November 14, 2015

    Hey John,

    Thank you! I don’t use IB myself, so haven’t looked into it. But it’s a common question. If I get some answers, I will do up a vid! 🙂

    Happy trending,

    Dave

  27. siva - January 16, 2016

    dear friends,
    dear sir ineed one simple program in ami broker . that is i need three lines( like cammrilla) in 15 mts chart .
    1st line is 2nd 15mts candle high
    2nd line is 2nd 15mts candle low
    3rd line is mid point of 2nd 15 mnts candle .
    that three lines are plotted full day like level .
    If you have any questions, please feel free to contact me.
    [email and number removed]

  28. Paul Davey - June 25, 2016

    Thank you for your training videos I am finding them very helpful. I am trying to get the MA for XAO Index and if I run this code on a single day then I expected the Index (XAO) and the IndexMA to be the same on every share. If I run this Exploration over all symbols the Index stays the same but the IndexMA is changing on each share.

    Filter = ( C>0.01 );

    Index = Foreign(“XAO”,”C”,1);
    IndexMA = MA (Index, 220);

    AddColumn(Index, “Index” );
    AddColumn(IndexMA, “IndexMA” );

    Buy = C > 0.10;
    Sell = (C=0) ;

  29. David McLachlan - June 29, 2016

    Hey Paul,

    That one’s got me I’m afraid! Might be a question for Amibroker Support. They are extremely gracious, so it’s worth an ask. I tried that code myself, and MOST of the IndexMA’s come out the same (as long as the dates are also the same), but occasionally one or two were different (and they were the SAME different i.e. 94 instead of 91 or something). So I’m sure it’s an easy explanation, but not from me 🙂

    Happy trending – Dave

  30. Paul Davey - July 1, 2016

    I got this responce back for the values being different and it seems to of worked for the MA being different.
    It’s almost certainly because you don’t have Pad & Align ticked in the backtester settings. Turn that on and set the reference symbol to XAO. That should cure the issue.

  31. Robert - July 8, 2016

    Hi Dave,
    I’ve been watching your youtube videos as part of my due diligence on systematic trading software systems. When you do a backtest, how does amibroker “rank” the holdings. For example, in your MA crossover backtest it picks 20 stocks, but what if there are 40 crossovers? And can you review the holdings by period? Another software vendor (which I won’t name due to the flaw) has periods where the backtested proflolio may only hold 1 or 2 stocks if that is all that meets the portfolio. Does Amibroker allow you to peer the onion on the backtests? Thanks. Robert

  32. David McLachlan - July 10, 2016

    Hey Paul – that is excellent! Thanks for posting back. They are a great bunch of people there.

    Hey Robert – As far as I understand it, it ranks alphabetically. So it will take all the “a”s from the 40 first, the “b”s next, and so on. That is why I (and others who are more worth their salt than I) recommend Monte Carlo testing. There is a vid on this at this site, and Amibroker has since added an easier / better way as well.

    I HIGHLY recommend getting the distribution of your monte carlo results in a bar graph / histogram, and then a cumulative distribution so you can see how “likely” things are to occur. For example – my trading system had a range of results from -7% to +22% this last year. In real life, I got 1%. The range matters. Look into the “positionScore” command to peel the onion on the backtests. 🙂 Have fun!!

    Cheers – Dave

  33. Ivan - August 20, 2016

    Hi David,
    First of all thank you very much for your videos, you´re good trainer!
    I have a challenge for you! I´m trying to write a pair trading system but Í can´t finish it.
    The idea is to trade to pair of stocks positive correlated, close to +1.
    If the correlation goes down we buy one stock and short the other. The trade is closed when the correlation is one more time close to +1.
    I don´t know how to open one trade long and another at the same momento short with other ticker.
    Could you help me?
    Best Regards,
    Iván

    PD:

    This is the code I have written but it doesn´t work:
    ticker1 = foreign(“dtys”,c);
    ticker2 = foreign(“dfvl”,c);

    range = optimize(“Range”, 60,2,300,5);

    corr = correlation(Ticker1, Ticker2,range);

    ROCTICKER1 = ROC(TICKER1,RANGE);
    ROCTICKER2 = ROC(TICKER2,RANGE);

    LIMITCORR = OPTIMIZE(“Alert”,0.85,0.70,1,0.01);
    NORMALCORR = OPTIMIZE(“Normal”,0.99,0.85,1,0.01);

    ///////SETUPS

    setupbuy = setupshort = iif(corr = NORMALCORR, 1, 0);

    ////////////order/////////////////
    BuyPrice = sellprice = coverprice = shortprice = o;
    Positionscore = roc(c,range);

    if(name() == ticker1)
    {
    Buy = setupbuy;
    Sell = setupsell;
    short = sell;
    cover = buy;
    Positionsize = 10000;
    }

    if(name() == ticker2)
    {
    Short = setupshort;
    Cover = setupcover;
    buy = cover;
    sell = short;

    Positionsize = 10000;
    }

    Buy=ExRem(Buy,Sell);
    Sell=ExRem(Sell,Buy);
    Short=ExRem(short,cover);
    Cover=ExRem(Cover,Short);

  34. ian - September 1, 2016

    Hi Dave,
    for doing all the scans and programming of your code is the standard version of amibroker good for the job.
    I only want to do EOD not tic data etc and also run scan to see what stocks to buy the next day. Just wanted to know if the standard version with yahoo eod is fine.
    Thanks
    Ian

  35. Max - September 23, 2016

    Hi Dave,

    I am new to Amibroker & would like to learn to code in it. However, your website says that its reached the limit of members…
    How soon can I enroll myself for the Amibroker courses & what are the fees involved?

    Thanks,
    Max

Leave a Reply