Suggestions, Questions, Comments

Suggestions, Questions and Comments

Sometimes you visit a site, and you’re left with more questions than answers after reading it.  I never want that to be the case here – if you have any questions about trading or investing, my posts, my site or Market Watch, please use the comments feature on this page to voice them.  Please feel free to make Comments or Suggestions also – I am here to serve so if you want something done differently, let me know.

If you prefer, you can also contact me by email:  Dave [at]

All the best,

Dave McLachlan

149 Responses

  1. Graeme - June 19, 2009

    Hi Dave,
    I have just stumbled on your website and am very impressed, it’s clean, precise and straight forward. I have been trading stock on the ASX for about 10 years, was doing well until the crash, now my money has gone on holidays, I didn’t have stop losses as I was div stripping blue chips and underestimated what was to come.
    Anyway to cut a long story……. I am going back to the basics and your site is giving me those basics back and that is all you need really.
    Keep up the good work.

  2. Dave McLachlan - June 21, 2009

    Graeme – many thanks for your comments! You are definitely not alone. The good news is that when things go on holidays they tend to come back stronger, refreshed. By getting back to basics as you say – I have a feeling your portfolio will do just that.

  3. Brett - July 28, 2009


    Only a true sharemarket enthusiast with such passion can create a place whereby the common people of the land can gather and be inspired by your thoughts and actions!

    It’s good to see that there are still people out there with a desire & will to help others.

    Great work, great site.
    Keep up the good work…

  4. Dave McLachlan - July 29, 2009

    Thankyou Brett! If there is anything else I can do to help, of course please let me know – I am here to serve.

  5. John Ball - August 2, 2009

    Hi Dave,

    Congratulations on your new site, it looks awesome. For people trading the market your site will be a big help to them.

    Well done.


    If you want to use any of my photo’s for your site I would only to be to happy to share.

  6. Dave McLachlan - August 3, 2009

    JB – you are too kind! Your photos are always welcome here, that is for sure.

  7. Colin - May 22, 2010

    I travel a lot Dave and don’t get as much time as I would like to visit. Everytime I get a chance I tell people about your site so keep up the fantastic job.


  8. Dave McLachlan - May 22, 2010

    Thanks Colin it’s always a pleasure! Great to have you here.

  9. Cameron - June 23, 2010

    Hi Dave

    Thanks for a simple and informitive site alond with the regular videos. One question regarding Peaks and Troughs and there identification for interpreting Dow Theory

    Does the Down bar have to occur immeaditly after the Up bar eg next trading day, for a trough to be evident. Or can a series of inside and outside bars, all with a lower high than the first Up bar, followed by a Down bar, with a lower high and low than the first Up bar, also indicate a trough? And visa versa.

    Thanks again


  10. Dave McLachlan - June 27, 2010

    Hi Cameron,

    That is an awesome question, and you are absolutely correct – a peak and can be made with an up bar, a series of inside bars, then a down bar. (If you had an outside bar, the peak would be made with a down bar following this one instead).

    Vice versa for troughs. Great question!

    – Dave

  11. James Goodwin - September 21, 2010

    Hi Dave,

    Great site mate, this is all very new to me and all your information is very helpful

    A question for you:
    Is there anywhere online which shows the biggest daily movers on a realtime basis?

    Appreciate your help.



  12. Dave McLachlan - September 21, 2010

    Hi James,

    Thanks! Excellent to have you around. And good question – I have just found a site like this – it is 20 minute delayed, but still very good (and free). will get you the top gainers and losers throughout the day!

    Happy trending – Dave

  13. Colin - October 21, 2010

    Hi Dave,

    Excellent work as usual on your site. Take a look at Dominion Mining, I like the way it has broken well out of it’s down trend and now 2 weekly higher highs and higher lows. It had a massive jump today.

    Cheers Colin.

  14. Dave McLachlan - October 25, 2010

    Hey Colin,

    Love that chart! Closed above the trend line AND made a Dow Theory entry at $2.90. The only thing I don’t like about it is I missed it, being outside the Top 200! 🙂

    Hope your trading is going well – Dave

  15. Peter - November 7, 2010

    Gday Dave,

    I have just received video 5, thanks mate for making these fantastic clips available to everyone.

    I’m a slow learner so I’ve probably watched them about 20 times so far LOL, but every time I re watch I pick up another little trick.

    I would also like your opinion on charting software, what software do you use in your video tutorials? and what would you recommend at a reasonable price is best for novice traders like me?

    I have used FCharts Pro for the last 7 years, although not effectively until I practiced your theories. I have not used and have no experience with any other programs.

    I have gone crazy back testing anything and everything on the ASX and enjoying getting back to basics with real charting and forgetting about all my dodgy indicators for a while.

    Thanks again Dave for this great site and free videos.

    Kind regards – Peter.

  16. Dave McLachlan - November 7, 2010

    Hi Peter,

    Love your work! From your comments I can tell you are or soon will be a successful market participant – back testing and getting back to basics are truly the two parts to a winning strategy.

    I use Amibroker for my charts – it’s around $200 and does everything I could possibly want (and much more). Using this I get end of day data from Just Data at around $350 a year. Others I know use Incredible Charts (cheaper alternative) or Metastock or Market Analyst (more expensive alternatives).

    Hope this helps! – Dave

  17. Brian - December 25, 2010

    Merry Xmas.

    What happened to your 18th December report? Celebrating early?

    Regards, Brian

  18. Dave McLachlan - December 26, 2010

    Haha – thanks Brian!

    Yes, not much has changed since our last report / prediction so we might as well rest while we can 🙂 Looking forward to a great 2011!

  19. Matt - January 3, 2011

    Hey Dave, happy new year and a big thanks for 2010 its almost like having an advisor sitting next to me while I make trades. Without you and your website I dont think I would have been as successful as I have (Although I made many many many mistakes). I have been watching your site since nearly the begining after seeing your market watch in 2009 on YouTube when I first started trading and dont know how I would do it without ya so again a BIG THANKS. Matt

  20. Dave McLachlan - January 4, 2011

    Hey Matt,

    Wow, since 2009 – thank you – it is really great to have you at the site 🙂 I’m right there with you on the mistakes too. All part of the fun!

  21. shane - January 26, 2011

    Hi Dave,

    Any chance of doing a one or two video commentaries on the general use of the Amibroker charting program. Setting up, navigation, workbooks, templates etc etc ?

  22. Dave McLachlan - January 27, 2011

    Hey Shane, this is an excellent idea!

    I will start working on this now. Any other suggestions just let me know 🙂

  23. Matthew - May 11, 2011

    Hi Dave Matthew here from Adelaide. Just been watching your YouTube clips on your chart reading predictions and I must say I’m very impressed. I am new to trading and don’t know hardly anything about it but just by watching your clips I feel I’ve learnt so much in such a short time so I thank you for that. Anyway the reason as to why I’m contacting you is to ask if you offer any training videos on chart reading as I would like to learn more on trend lines etc. If you have DVDs to sell or YouTube clips which teach this art in more detail then please let me know.


  24. Dave McLachlan - May 12, 2011

    Hi Matthew – glad to be of service!

    I teach technical and fundamental analysis in the complete course (link below), as well as prediction techniques and risk management. There’s a lot of gold in there that no one else will teach in the one place 🙂

    Happy trending!


  25. Andrew - September 29, 2011

    Thanks for the amazing information! I’ve looked at a lot of sites that say alot without saying anything – Yours was REALLY useful for a noob investor like me.

  26. Dave McLachlan - September 29, 2011

    Andrew, always a pleasure.

    If there is anything more I can do, just let me know 🙂

  27. Winnie - December 29, 2011

    Hi Dave,

    I just know your site some days ago. I take some times to visit it. Thanks for your information.

  28. ray - January 23, 2012

    Strange? My email address you don’t recognise yet I receive emails from you? I thought I had joined some time back? Also,
    I went to some bother responding to the above website. It has been moderated out! I would have thought it to be good manners to explain why? One spec I mentioned was AQD which I’m pleased to see has performed well (5%) on a down day at this stage. Look forward to hearing from you.

  29. Dave McLachlan - January 24, 2012

    Hi Ray – it’s just the website software default, waits for moderator approval on comments. Once you have one approved you should be ok for future comments.

    Good to see your trades at the moment, nice one!

    – Dave

  30. Colin Griffiths - March 25, 2012

    Hello Dave,

    I have just come back to your site only due to a major development I was involved in and I removed myself mentally from trading to give myself some brainspace. I come back and listen to one of your video reviews and you are still punching way above your league. You deliver an amazing truth to your reports and all I can say is well done, congrats and you deserve all the prosperity for offering your knowledge and passion.

    Cheers Colin.

  31. Dave McLachlan - March 27, 2012

    Thanks Colin! And great to have you back here! This year could be a big one indeed. I’m getting involved and keeping stop losses in 🙂

  32. katy ford - April 1, 2012

    Hi, really great if you do show all entry signals and not just what you bought. Great website, thanks Katy

  33. Dave McLachlan - April 2, 2012

    Thanks Katy,

    Thank you – looks like everyone is feeling the same way so there should be more entry signals shown soon 🙂


  34. Mark - February 4, 2013

    Hey mate,

    This is just a thought, but these posts appear in the wrong order… I mean the most recent posts should be at the top with the older ones being down the bottom so you should be scrolling down to find them.

    Hope this idea helps

  35. Dave McLachlan - February 9, 2013

    Good call Mark – I’ve changed the setting and will see how it goes. It will only happen from new posts by the looks of it though.

    Cheers – Dave

  36. Sally - February 20, 2013

    Hi Dave,

    Just wonderign when you are doing the next All Ordinaires weekly chart?


  37. Sally - February 27, 2013

    Hi Dave,

    Just wondering when you are doing the next All Ordinaires weekly chart?


  38. hitul shingala - March 8, 2013

    % change afl given below is not working properly, kindly give exact AFL for amibroker.

    pchng = ((C – Ref(C,-1)) / Ref(C,-1)) * 100;
    Filter = pchng;
    AddColumn(Close, “Close Price” );
    AddColumn(pchng, “Percent Change” );

  39. Dave McLachlan - March 10, 2013

    Oh dear Hitul,

    The code works – try typing it in. Sometimes if you copy and paste directly from a website it carries accross wrongly formatted characters, and this will cause the code not to work.

    Type it in, and try again.

    🙂 – Dave

  40. Uday Gupta - September 19, 2013

    Hi Dave,
    Thanks for creating such a good website so that a non pro CAN even learning Amiboker coding is such a simple way .
    keep the good things coming in and lets us give a good comment every time ..


  41. Dave McLachlan - September 21, 2013

    Many thanks Guptak03,

    It is my pleasure to serve, with readers like you out there 🙂

    Cheers – Dave

  42. Timothy - October 10, 2013

    Dave, great site, a valuable resource for anyone new to Amibroker! One thing I’ve struggled to find is a resource for AFL programmers who are able to convert from other platform languages. I have a strategy in EasyLanguage that I’d like to transfer over to Amibroker for the purpose of backtesting and optimization which is painfully slow in TradeStation! Any ideas? Thanks

  43. ian stevenson - October 10, 2013

    Hi Dave,
    I’m enjoying your video’s, don’t have Amibroker but will get it soon.
    Re the “Leap of Faith” formula.
    You say Gap Up = Close > Open. Doesn’t this just relate to a single bar. Wouldn’t a gap up require Open > previous close.
    cheers Ian

  44. Dave McLachlan - October 10, 2013

    Hey Timothy,

    No idea on that one! Unless the languages are similar and there are people out there who can already program in C, etc and pick up both languages easily.

    The Amibroker Yahoo group might have a few people with this skill.

    Cheers – Dave

  45. Dave McLachlan - October 10, 2013

    Hey Ian,

    Yes – I’ve put a gap up as a GapUp() (which is the low higher than yesterday’s high) AND the close greater than the open.

    That’s just to avoid gap bars that are reversal bars at the same time 🙂

    So – you’re right, your description is one way to view gaps – I’ve just gone the full hog.

    Hope this helps,


  46. ian stevenson - October 12, 2013

    OK Dave, got it now. Amibroker must recognise GapUp without it being defined.
    thanks Ian

  47. Dave McLachlan - October 15, 2013

    Hey Ian, yes, spot on! That’s it exactly.

    Nice one – Dave

  48. rasheed - October 20, 2013

    Hi Dave
    Great Job you doing here enlightening pple about the powerful tool of Amibroker.
    My question:
    was following Amibroker: Adding An Index Filter To Your Trading System Using AFL

    Got stock coz the video wasn’t clear enough on the codes.
    This was what I got.
    Index = Foreign(“NSE”, “C”, True);

    IndexMA = MA(Index, 100);

    Buy “C >” MA(C,200) AND Index >” IndexMA

    Can u pls complete it for me?

  49. Daniel - October 24, 2013

    Hi Dave,
    I just found AmiBroker and I wonder if it can help me solve my problem. I´d like to backtest manually taken trades. So I´d like to check if the manually taken closings could have been better with e.g. TSL, SL, TP etc.

    Is it possible to enter the openings of my trades (buy or sell) and then compare let´s say a TSL with x % to my manually closing?
    So I would like to import around 200 openings and then backtest different closing strategies with that.

    I hope you can understand what I mean.

    Best regards und thanks a lot

  50. Yogesh - November 18, 2013

    Hi Dave,

    I tried to sign up for the complete course (link was given in one of the above replies)however I got a error report from Paypal stating that the transaction could not be completed because of an error from the seller’s website. How do I sign up for your course?

    Thanks & Regards
    Yogesh C

  51. Dave McLachlan - November 18, 2013

    Hey Yogesh,

    My apologies for the confusion – the complete course is closed to new members at this stage. I had forgotten about that link in the comments! Since that comment was made, even more was added to the course.

    Even though it is closed, there is enough in the free section to get you started on your way to creating your own winning entries and exits.



  52. Yogesh - November 21, 2013

    Hi Dave,

    I’d like to sign up for the complete course. When would I be able to do so?

    Yogesh C

  53. tim - November 24, 2013


    thanks for this site…very informative and useful…

  54. Dave McLachlan - November 26, 2013

    Hey Yogesh!

    No time soon. I am working on some new content around Amibroker trading systems, but there is no ETA at the moment.

    Cheers – Dave

  55. Dave McLachlan - November 26, 2013

    They Tim – many thanks 🙂

  56. Ian - November 28, 2013

    Hi Dave,

    Found your site after looking for video tutorials for amibroker. I am completely new to software platforms and was looking for a platform to link to interactive brokers. Two questions i have regarding this. Can I actually place trades on Amibroker which will then be implemented on interactive brokers. Since I will not have my computer on the whole day would I have to load all these applications onto a VPS so that they can follow stop loss and take profit protocols.
    Would like to hear your input.

  57. Dave McLachlan - December 3, 2013

    Hey Ian – no idea.

    Usually a quick Google search will turn up a place to start if you need to code something though – and often others have asked the question before.

    Cheers – Dave

  58. nayot - December 15, 2013

    Hi Dave,

    I’ve just watched your video on youtube yesterday, until now watched several videos. It’s very useful and practical!! Thanks a lot.

    I also have some question to get suggestion from you. If I want to buy 20 stocks with Rate of change (ROC) –> ROC(C, 10, False), but I need to buy in condition with the 20 top ROC values, not order by alphabet. what is the formula ?

  59. koen - December 23, 2013

    hi, great site and amibroker tips ! quick question :
    lets assume i want to buy after a gapdown() and sell if the stock gained lets say 5%.

    buy = gapd();

    this will give a buy signal and go long on the define buy price (in my case i selected OPEN and long)


    i am struggling with defining the sell signal+

    i wanna sell when it has gained 5% from buy price … i seem not to see how to define that

    sell = 1.05 * “the price that i bought it for ..”

    how do i refer to that price ? and even if possible with a limit of 10 day in future

    thx in advance

    reg koen

  60. sharon - December 27, 2013

    Hey Dave
    I watch your videos and enjoy them, this is a good way to learn about Amibroker, and There is no other course such as this About Amibroker online, well done!
    I have a problem. I need that a weekly candle will start on Sunday and will end on Thursday.
    Amibroker default is that the weekly candle begins on Monday and ends on Thursday. Do you know how one can fix this?

  61. Alfred - March 17, 2014

    Hi Dave,

    excellent work.
    Thank you very much and keep on.



  62. Dave McLachlan - March 25, 2014

    Thanks Alf, the pleasure is mine of course.

    Cheers – Dave

  63. Mike - March 30, 2014

    Hi Dave – I really got into systematic trading after reading Nick Radge’s book. I’ve even exchanged a couple of e-mails with him. I’ve been trying my hardest to work with the Amibroker program and would have given up if not for your site. I too anxiously await a post about Chandelier or trailing stop ATR exits. Love the website and appreciate everything you have done so far. – Mike

  64. Rick Gonsalves - April 26, 2014

    Do you do custom one-offs for clients?
    I am looking for a robust optimization tool and would need your help.
    Thank you,
    Rick Gonsalves

  65. Pedro - August 11, 2014

    Hi Dave,

    I am a trader from Adelaide. Like your site. Are you still active. If you are free to catch up for a coffee to talk about trade.



  66. Dave McLachlan - August 21, 2014

    Hey Pedro,

    Not too active on the site, but still trading of course (it’s a skill for life, and we should do it for as long as possible!).

    Cheers – Dave

  67. chalapathi asv - October 25, 2014

    doubt which many could not answer.arun high & low in afl is for past 14days.suppose i selected 2 future dates i.e from 23-10-2014 to 7-11-2014 and want to plot horizontal lines for a set percentages,how to do.amibroker is giving in combo only day,d/n,monthly,quarterly,yearly.u may say u can scroll back but the trends or trend change rates r for future how to do that.thankful if u can post this article in this site.i am an engineer from india & always feel there is some thing beyond indicators controlling markets.ur website is v good & helpful.appreciable service by u to investors.good luck & good day.

  68. Rick - November 13, 2014

    Hello Dave. Thank you for the Amiboker videos and cogratulatios for the site. This is definitely the best free Amibroker site!
    Could you please help me with coding of this exit rule?
    I am trying to add an additional exit rule to the classic MA cross over price system. Exit long if higher high of next x days since entry day, is lower than high of entry day. I give you an example (I’ve chosen 3 days, but the idea should be adaptable to x days):
    Day 0 (signal): high 11, low 8.5, close 9.5, MA 9 open long (because close>MA)
    Day 1: high 10.5, low 7.5, close 8.8, MA 8.5 keep long position (because close>MA)
    Day 2: high 10.7, low 8, close 9, MA 8.8 keep long position (because close>MA)
    Day 3: high 10.2, low 7.8, close 9.5, MA 9 close position (because higher from day 1 to day 3 is lower than high of day 0).

    So, on day 3, altough close is ABOVE MA, I would like to EXIT position (sell), because higher from day 1 to day 3 (10.7) is LOWER than high of day 0 or day or the signal (11).
    I only need help on coding the lower higher exit rule, that is a kind of time out exit rule.
    Thank you.

  69. GB - November 30, 2014


    You don’t mention which stocks from the asx your are backtesting on. Top 100? 50? Entire universe?

  70. Dave McLachlan - December 10, 2014

    Hi GB, ASX Top 200.

    Cheers, Dave

  71. Karl Avis - January 24, 2015

    Hi Dave
    Fantastic website, I have learned a lot frm it.

    I want to know if you have plugin for Iress Pro?

    I use the dde link for intraday, but surely there must be a better way, as Iress has api and websevices.


  72. michal - January 25, 2015

    Hi you have done great work witch tutorial amibroker. it would be great to see some more episodes of tutorial in youtube 🙂 Kindest regards, from Poland

  73. Michael - February 21, 2015

    Hi Dave.
    Thanks so much for the guidance on using the Formula Editor in AmiBroker. I was initially perplexed at how I was going to learn how to use it. I’ve simply been copying the criteria from your videos which given me a means to become familiar with the process. One question for you; because I therefore do not know how to program other criteria, can you please verify the following code that I found on the Amibroker-AFL Library for an Inside Day Breakout?

    _SECTION_BEGIN(“Inside Bar”);
    for (i=1;i<BarCount;i++)
    if (H[i] = L[i-1])
    PlotTextSetFont( “t” ,”Wingdings”, 10, i, H[i]+1,42);

  74. Dave McLachlan - March 15, 2015

    Hey Michael,

    No problem! As for the code though, I do not know. It’s been a while since I’ve delved into it, as I just have my medium term scan now and let it do its work 🙂

    But what you have there is a “for loop”… for what looks like showing a “wingdings” font symbol on the chart if today’s High is equal to yesterday’s Low. Slightly more complex than regular Amibroker code, so others will probably know more.

    I found the “” javascript course to help with learning looping code (it’s free). Hope this helps in some small way!

    Cheers – Dave

  75. Doug B - April 7, 2015

    hi Dave love your site. just learning ami code, and your videos are most helpful.

    is your “medium term scan” here on your site, or proprietary?

    thanks, doug

  76. Dave McLachlan - May 3, 2015

    Hey Doug,

    Well, it’s not proprietary, but it is just for myself. Kind of a distillation of everything I’ve learned into the simplest method I can find. I have no time for complicated things these days!

    It’s nothing fancy though – a basic weekly scan to see if it’s heading up, and then a few other checks based on content from the Complete Course I used to sell on this site. I am quite sure others could do a better job, but it suits my temperament and time constraints, which is VERY important in a trading system (otherwise you won’t follow your rules).

    Happy trending – Dave

  77. Alexander Crane - May 20, 2015

    Hi Dave

    I stumbled across your website today whilst looking for market data vendors and I’m impressed with your tweet in August 2013 going long for CGF – it must have paid off.

    I’m curious as to why you no longer post on this website, have you started a new blog at a different URL or have you taken a break from trading / investing?

    Best Regards

    Alexander Crane

  78. Dave McLachlan - May 28, 2015

    Hey Alexander,

    Thanks for stopping by! Yes, CGF did pay off, but (keeping my feet on the ground, here) it was only one trade. The next trade was most likely a loss – a small loss that I could handle both account-wise, and psychologically. That is important.

    To be fair, the last year has been kind to me, but I don’t know if it’s just been kind to everyone, or if I am at now peace with my method and letting it do its work.

    I don’t have another Trading website, but I am definitely still trading 🙂 A few things happened that may have caused me to stop posting – I had a young family, I genuinely had written most of what I wanted to say on trading / psychology / risk management, I realised that tips and “predictions” said more about the tip giver and very little about the true future, and I nestled into a method that suited my time and temperament.

    Trading is an incredible journey – I learned more about myself, and gained a steely resolve that has positively affected other parts of my life. And when you come out the other end of the journey, you know it. I have a strong faith in my method because I’ve been through the losing streaks, the drawdowns, the hope and the greed and the fear. It’s a good feeling. But in true trading fashion, I can only say – “This too shall pass”.

    Happy trending – Dave

  79. Brendon - May 31, 2015

    Hi Dave,
    I’m a big fan of your videos. The amibroker code examples are very well explained and concise.
    I noticed that some of your examples are from the ‘Unholy Grails’ book. I just finished the book and am trying to code some of the trading models. I was just wondering if you know how to code the ‘TrendPilot’ method used? In particular where the buy/sell condition must occur for 5 conservative days before making the trade. Whilst the TrendPilot method may not be the best, i am interested in applying the buy/sell condition on some other models.
    Thanks and keep up the good work!

  80. Dave McLachlan - June 8, 2015

    Hey Brendon,

    I reckon it could be done with the “Ref” command and “AND” command – i.e. referencing previous bars. For example if price is below a 100d MA today, yesterday (-1), and the day before (-2), etc. I’m a bit rusty, but off the top of my head that might look something like:

    TPUp = C > MA(C, 100);
    TPDown = C < MA(C, 100); Buy = Ref(TPUp, -2) AND Ref(TPUp, -1) AND TPUp; Sell = Ref(TPDown, -2) AND Ref(TPDown, -1) AND TPDown; Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy); The "ExRem" is to "Rem"ove extra signals. I have a lesson on "Ref" at this site. Hope this helps 🙂 Dave

  81. John - June 5, 2015

    Hey Dave what data do you use with amibroker? If premium data, do you recommend the alpha PDU database option? Thanks!

  82. Dave McLachlan - June 8, 2015

    Hey John,

    I use Just Data, but premium data is another one many people use. Nothing too fancy for me 🙂

    Cheers, Dave

  83. Brendon - June 21, 2015

    Hi Dave,
    Thanks for your response, it was most helpful.
    I’d love to know your thoughts on what key figures make a good back-tested trading system. For example CAR > 35%, CAR/MaxDD > 1.5, Winning % etc.
    Are there any other metrics that you consider important?

  84. Dave McLachlan - June 22, 2015

    Hey Brendon,

    Good question! Surely others will be better at answering this. I am a simple guy, but sometimes in simplicity, we see the things that others miss.

    I would definitely use the ones you list, and the figures you have are worthy figures. Winning % is important as many find it hard to stick to a system with a win% less than 50%. One thing I would add would be:

    # of Trades.

    This is often overlooked. But trading anything over 200 trades a year not only burns the commission, but the time required as well. Very few people will tell you to pick a trading system that suits both your TIME needs, and your TEMPERAMENT. For example, with a young family, 35-50 trades a year is quite suitable for me. If I become more risk-oriented in the future, I might trade differently.

    Hope this helps – and I’m sure others could add to this list.

    Cheers – Dave

  85. martin cameron - October 7, 2015

    Hi Dave,
    I wonder if you can help.
    I am trying to obtain a ASX Dynamic Database for use in Amibroker. I will use it to back test various ASX systems. I used to be a Hometrader member.
    Do you know where I can obtain one?
    Thank you
    Martin Cameron

  86. Dave McLachlan - October 19, 2015

    Hey Martin,

    Not sure – do you mean price data for ASX listed stocks, that is kept up to date for which Indices they are in?

    There are two that I know of – Just Data, and Norgate Premium Data. One is a little cheaper and a bit more hands on (the one I use), and the other (Norgate) creates watchlists for you in Amibroker automatically I believe. This can cause some problems for those wanting to do it themselves.

    Hope this helps 🙂 Dave

  87. Wendy - November 13, 2015

    Hi Dave, what earnings data source do you use for your PEAD trades? Just announcements listed on the ASX website, or can Amibroker handle?

  88. Dave McLachlan - November 14, 2015

    Hey Wendy,

    Yes, I use either a percentage change filter in Amibroker (then check the announcements if the change is big enough), or just the ASX daily announcements page.

    Happy trending,


  89. Martin Siegert - November 17, 2015

    Hi Dave,

    woukd you be so kind to do a video in amibroker how to trade equity-curve ?

    Perhaps with one or more system in combination.

    Thank you for all videos



  90. Keith Toghill - November 23, 2015

    Hi Dave,

    Your sight is just fantastic so from me it’s well done for all of your effort. I’m wondering if at any future time you will again accept new members.

    Best regards

  91. Dave McLachlan - November 24, 2015

    Hey Keith,

    Thank you! It is great to have you here as well.

    For your question – I am thinking about it. There is certainly more than enough in the free courses to get people up to speed. A portion of the paid content is even covered there. The main difference in the paid content is that it contains my own personal trading system – which certainly isn’t for everybody.

    We’ll see how the current, free, trading diary goes, and then I’ll determine the best way to take it 🙂

    Happy trending! Dave

  92. Tim - January 1, 2016

    Have you run across an AFL that can scan for triangle formations etc? Most of the Pattern Recognition software either is not available or is very expensive. Any help you can give me will be most appreciated. Thank you.


  93. David McLachlan - January 1, 2016

    Hey Tim,

    I haven’t, but it is something I am interested in as well. Coding something like that would also force a trader to lock in exactly definable rules for those patterns, which is always a good thing.

    It’s probably beyond the scope of my average coding abilities, but if I find one, or make one, I will let you know!

    Happy trending – Dave

  94. Neha Lele - January 8, 2016

    Hi Dave,

    Congratulations for the good Work. This is one website which has really helped me a lot exactly at the time when I needed it the most. A big Thankyou for your Work, Time and Effort.

    Listening to your videos also makes me sense that you are a very wonderful person at heart!

    God Bless you,

  95. David McLachlan - January 9, 2016

    Thank you Neha, your words made my day.

    God bless you too 🙂

    – Dave

  96. Neha Lele - January 16, 2016

    Hi Dave,

    Neha here again! My previous post here is still the latest, so will not take you too long to remember whom you are talking to. I have already thanked you for your work and spirit and this time taking the liberty of asking something more from you. Dave in the list of the amazing systems that you have uploaded on your website, there seems to be one variant prototype which is missing. You have shown us systems like buy and hold and then buy and sell and than buy and sell with a stoploss. Dave there can also be a condition where you have a buy criteria and for the sell criteria you have to use two apply stops: 1) for Book profit condition 2) for Stoploss condition. How can we manage such a situation? To elaborate more on my question, say I buy on the MA crossover of 5 and 13. I want to book Profit at a standard 2% markup on my entry price and stop my self out at a standard -1% of my entry price. Also help me with the correct back tester settings for the same.

    Thanking you in anticipation.


  97. David McLachlan - January 16, 2016

    Hi Neha,

    Thank you!

    Off the top of my head, you could use ApplyStop for this. Google “Amibroker ApplyStop” for the full range of info. I personally would set up the buy condition as normal, then it might be something like:

    Sell = 0;
    ApplyStop(stopTypeProfit, stopModePercent, 2, 0);
    ApplyStop(stopTypeLoss, stopModePercent, 1, 0);

    You will have to have a play with it.

    The “2” and “1” are your percents, and the “0” is the setting for when you want to exit. Check out the Amibroker page for the full info 🙂 You can set your normal trade delays in the back-tester settings tab (i.e. exit 1 day after your signal, on the Open, for example).

    Happy trending! Dave

  98. 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 ]

  99. siva - January 17, 2016

    dear sir ,
    i need the specific afl code for high low and mid point plotted right side when select in the chart , it will reflect full day .( chart time frame is 15 mts)

    like i will select the 11.00 am candle it will give the h,l,mid point line in right side extended .
    kindle help me out from this lacuna. it will great help for my trading…….
    thanks in advance

  100. Ted Penner - January 24, 2016


    I am new to AMI Broker and am trying to test a strategy I wrote in TOS for SPY 1 minute charts. I’d rather not pay for data at this stage.

    What would you suggest as an alternative to this?

  101. Geo - January 31, 2016

    Hi Dave

    Have you ever setup Amibroker to analyse Option Chains ?
    Specifically for Iron Butterfly or Iron Condor spreads ?

    Would be nice to see Ami extended into back testing Options Spreads


  102. Neha Lele - February 4, 2016

    REFERENCE: Post number 96 and 97 of this page.

    Hi Dave,

    Hope you are doing fine. Just ran into some problem, hope you’d care to help. As you suggested, I used:

    Sell = 0;
    ApplyStop(stopTypeProfit, stopModePercent, 2, 0);
    ApplyStop(stopTypeLoss, stopModePercent, 1, 0);

    the problem is that I cant add any AND/OR condition with the above mentioned code. Say for example I want to exit at either of the two ApplyStop Conditions or intraday (TimeNum() >= VarExitAllPositionsTime; // where VarExitAllPositionsTime is a variable where I would Like to exit all my positions irrespective of the applystop for profit/loss being hit)

    Kindly Help,

  103. David McLachlan - February 8, 2016

    Hey Neha,

    Hmmm, it’s got me. Could you use your TimeNum as your actual sell rule – as in “Sell = TimeNum etc”? And then the ApplyStops might work afterwards, if the sell signal isn’t triggered?

    That’s all I’ve got without doing it myself. If you’re really stuck, the Yahoo Amibroker forum is good, as is Aussie Stock Forums Amibroker FAQ thread.

    Happy trending – Dave

  104. Neha Lele - February 9, 2016

    Hey Dave,

    Thanks a ton once again! What you recommended really works.

    Also since I am new to AmiBroker, I have’nt purchased the license yet, wanted to understand whether it is truely my cup of tea or not before investing in the same. I thus, do not have access to their support team or the forum. Sorry to bother you.

    Thanks for all your help once again.


  105. David McLachlan - February 10, 2016

    Hey Neha,

    Oh! Of course, no problem. I did the same thing – tried it out first. I consider myself a beginner too (I’m sure many actual programmers out there would agree!) and I know it’s much easier when there are others around to help with problems 🙂

    Happy trending – Dave

  106. Loordh - February 21, 2016


    I really appreciate your effort.

    We have been learning lot from you.

    As I am beginner in AFL coding, can you please help me or post an video explaining “How to write afl code for partial exit”. For example, sell 33% of holdings when stock reaches 5% profit, another 33% when stock reaches 10% profit and the final 34% should be sold when it meets sell condition. This should have 15 days moving average price as trailing stop loss.

    I tried to change the example code given in amibroker reference library. But I find it hard to understand.


  107. David McLachlan - February 22, 2016

    Hey Loordh,

    My pleasure – thank you for watching 🙂

    Yes, this is something I’m interested in too. I’ll definitely look into it (although it may take a bit of time – my skills are merely basic also!)

    Happy trending – Dave

  108. Loordh - February 22, 2016


    Thanks 🙂
    Waiting for your video ……


  109. Alessandro D'Aquino - March 4, 2016

    Hi Dave,
    Did you end up running a weekly time frame test on the daily systems you publish every Sunday?

  110. David McLachlan - March 4, 2016

    Hey Allesandro,

    I certainly did – a while ago on the Moving Average Channel, and the Dow/Gann is weekly already. The results on the MAC were similar, if not a bit less.

    I’m not sure on the Gap Up / Leap of Faith trading system, as it relies on daily gaps above a 150 day Moving Average.

    Always open to suggestions 🙂

    Happy trending – Dave

  111. Cam Hawkins - March 22, 2016

    Hi Dave,

    A listener of mine recommended you as a future guest on my podcast 52 Traders.

    If you’re interested please let me knwo and I’ll forward you all the details.



  112. alex - March 22, 2016

    Hi Dave,

    Love your vids, there so helpful!

    What would be awesome is a video on how to put all this amazing research to work and let it trade in a live market auto trading with IB.

    That would be awesome to see the 3 billion dollar system, as you could then tweak it to maybe a weekly time frame etc as you can run it on simulated account which is same as real or as close as you can get.

    Awesome site,



  113. Igor Livshin - March 22, 2016

    Hi Dave,

    I am evaluating AmiBroker and want to ask a simple question. If I try to get an element from an array it shows the wrong value. Say, I display the CLOSE array
    AddColumn(C, “Close”, 3.2);

    And then I display say the 5th element in that array
    AddColumn(C[4], “5th element”, 3.2);

    The value it shows is not even in the Close array. However, if I use Ref for the same element
    AddColumn(Ref(C,4), “5th element”, 3.2)
    the result is correct;

    Same thing if I use trace debugging this issue.

    The problem is that Ref returns an array also, but I need a value and not an array.

    Appreciate your help


  114. alex - March 25, 2016

    Hi Dave,

    Love your vids, there so helpful!

    What would be awesome is a video on how to put all this amazing research to work and let it trade in a live market auto trading with IB.

    That would be awesome to see the 3 billion dollar system, as you could then tweak it to maybe a weekly time frame etc as you can run it on simulated account which is same as real or as close as you can get.

    Awesome site,



  115. aui - April 11, 2016

    hello ,do you help me for database every stock in many country
    thanks you

  116. Ben Lai - May 19, 2016

    Hi, Dave

    I have watched the video of the function Applystoploss, but still fail to “stop program trade today after cut loss twice”, stop program referring to the number of cutloss times. would u mind give me some advice?

    Many Thanks!

    Ben Lai

  117. Tommy - June 1, 2016

    Hi Dave, just wonder what data source do you use in Amibroker for Australia? and how do you get the full name for each tickers in the symbol window? Thanks

  118. David McLachlan - June 7, 2016

    Hey Tommy,

    I use Just Data. I find them good, and well priced. Norgate is another one in Australia, and from all accounts they are good too.

    I haven’t done anything special to get the full name there… it must just come across from the data source I think!

    Cheers – Dave

  119. Mahsud - June 15, 2016

    Hi Dave:
    Simply Great! I really love your videos! I have finished watching 60%+ of them and carrying on. I am actually optimising my systems based on your backtest and mote-carlo videos. I finding – if I work on my selected stocks of watchlist (I call it, fundamental), my trading system give me very less CAR (7-12%) but if I make another watchlist by selecting any stock (after running backtest in individual mode) that has CAR/MDD >=0, then CAR approximately doubles! Then, using the related AFL for related watchlist. Do you think it is a good practice?

    I am struggling with exploring – bottom/ double bottom, top/ double top, GAPUP/ GPDown, W, M, Cup patterns. Can you please create any ‘magic’ video for such pattern?

    One more question – do you use Amibroker for maintaining Trading Journal? If yes, pl share AFL.

    Thanks & regards

  120. Nick - June 27, 2016

    Hi Dave,

    I am learning AFL coding just now and your videos have made that easier. I see that you managed to use the Foreign function to reference the MA for a specific symbol. I have now done that for SPY but I can’t seem to code it to reference the RSI(20) for that index? Array=RSI(20),Index; obviously doesn’t do it, but what will?
    Any suggestions much appreciated!

  121. David McLachlan - June 29, 2016

    Hey Nick,

    I reckon RSIa(Index, 20); should do it. I just googled RSI and it showed the other option – RSIa that can use an array as well 🙂

    Happy trending – Dave

  122. tommy - July 5, 2016

    Hi Dave, how do you load Just Data feed into Amibroker automatically?

  123. David McLachlan - July 10, 2016

    Hey Tommy,

    I’m pretty sure Just Data have an article on that. If not, I’d definitely try them first – their support is good and pretty quick. From memory it’s to do with File > database settings.

    Cheers – Dave

  124. John - July 11, 2016

    Hi Dave,
    Great web site learning plenty from it thankyou, could you help me with a bit of coding I have coppied the ma channel system as you have shown but how do I code a initial stop loss of an atr then have the ma trailing stop take over once it moves above the initial stop loss. any help would be much appreciated.
    cheers John

  125. Daniel - August 5, 2016

    hi dave.
    thx a lot for your movies for amibroker programming skills. i’ve a question about the cot report to import into the amibroker desk or programming an indicator for that. maybe its possible to make a movie about this? will be great and really helpful.

    be blessed,

  126. David McLachlan - August 16, 2016

    Hey Daniel,

    And thank you. I’m not doing any videos at the moment, but will keep your idea in mind if I do.

    Happy trending – Dave

  127. William Beech - August 12, 2016

    Hi Dave,
    I have recently come across your website and have found it very interesting
    and helpful.

    Have been thinking about purchasing the Amibroker software, but to tell you the
    truth have been put off by having the learn the code. I must say that by looking at some
    of your videos, it does not appear that difficult to grasp.

    Have been investing for a number of years and mostly a buy and hold investor, but have
    some interest in tactical asset allocation strategy as shown by Meb Faber in the book –
    The Ivy Portfolio using momentum trading in etfs.

    Have subscribe to your e-mail updates and looking forward to future videos.

    Kind Regards

  128. David McLachlan - August 16, 2016

    Thank you William! It is a pleasure to have you here.

    Cheers – Dave

  129. Jamie - August 14, 2016

    Hi Dave, any chance you can create a video to show how to code Nick Radge’s weekend trend trader? Have you ever tested it in ASX?

  130. David McLachlan - August 16, 2016

    Hey Jamie,

    I have coded it, with good results. For me, it required looping to do the conditional trailing stop. Others might know an easier way to code that. Because it was a bit more complex, I won’t post the code here – I believe it’s worth the price of either time or money if people wanted to figure out how to code it themselves, or buy the code directly from Nick.

    Happy trending! Dave

  131. Charles - August 16, 2016

    Hi Dave
    I miss your videos, but can understand you have a life as well 🙂
    I’m close to buying Amibroker, mainly because I want a to use Ichimoku charts. Do you know if there are decent (free) applications I can use from the library?

    Great video’s my friend, you’re a pleasure to listen to.


  132. João Guilherme - September 14, 2016

    Hi Dave,

    I have a question concerning stop afl.
    According to the Amibroker’s manual, the main syntax: ApplyStop( type, mode, amount, exitatstop, volatile = False, ReEntryDelay = 0, ValidFrom = 0,

    ValidTo = -1 ).
    The exitatstop have only the following options: 0, 1, or 2.

    I would like to know the reason why some trading systems are programmed with a TRUE condition for exitatstop, as the example: ApplyStop(

    stopTypeLoss, stopModePoint, stopAmount, True ).

    Please take into consideration that I develop my trading systems for day-trade operations.

    Thanks a lot.

  133. João Guilherme - September 17, 2016

    Hi Dave,

    I have a question concerning stop afl.
    According to the Amibroker’s manual, the main syntax: ApplyStop( type, mode, amount, exitatstop, volatile = False, ReEntryDelay = 0, ValidFrom = 0, ValidTo = -1 ).
    The exitatstop have only the following options: 0, 1, or 2.

    I would like to know the reason why some trading systems are programmed with a TRUE condition for exitatstop, as the example: ApplyStop( stopTypeLoss, stopModePoint, stopAmount, True ).

    Please take into consideration that I develop my trading systems for day-trade operations.

    Thanks a lot!


  134. Thomas Ikegwu - September 20, 2016

    Hi Dave,

    I came across your website by chance similar to Incredible

    Chart, and want to express how great you are to devote

    your precious time to help others! What a true Angel in

    form of human you are.

    I’m about to purchase Amibroker which I came across as well

    by accident, after spending or pumping my money into the

    waste basket for worthless softwares. Except the last

    software (Forex Tester 2) which does good back testing

    results but is stand alone App.

    What do you charge for your software with code?

    Will that be able to switch my App. from FT. API, C++


    I want to be comfortable with all the software before going

    to live trade.

  135. Graham - October 23, 2016

    Thanks Dave for making the Amibroker coding videos.

    How can I make Amibroker backtester display an additional column in the report. I want to show an MA value.


  136. Sahil - November 26, 2016

    Hi Dave,
    I have been following your videos and it has been very helpful .
    I have a question – can you help how to code resistance and target in the Afl .
    I think it would help to code formulas a shade better .
    Looking forward .

  137. Gale Williams - December 9, 2016

    Thanks for the videos. It cleared up what I was reading and helped me with the code, I love to code. Not many places that offer so much free information. Do you have a donation place?

    Can you place a note or something about what your doing if you get a chance. I suspect we would like to hear if you continue to do OK in the market… gives the rest of us hope that we can find and use a decent trading system with hard work and some good basics in coding for Amibroker.

    Thanks for the excellent help and totally awesome videos. Has anyone invented a decent structure that has backtesting, optimization, scanning and plotting so that you can put it in one code block vs snippets?

  138. pinank thakker - January 6, 2017


    I very new to amibroker, and thanks a ton for all the videos that you have published. Helped me lot.

    The ease with which you explain things is wonderful.

    I have been trying to plot a daily ema 50 on weekly time frame. Have not been successful.

    Is this possible? If yes. Pls Help.

  139. Ron Compton - April 9, 2017

    Hi Dave,

    I won’t repeat the effusive but well deserved praise you’ve received but I do concur.
    Since you’ve obviously tested and backtested many, many systems, which has proven to be the most robust? By robust I mean the most consistent good return with the lowest drawdowns? My examination seems to show that it’s very hard to get a system that consistently returns more than its maximum drawdown .

    I’ve just watched your video of seven systems updated for out of sample results and none of them seem good enough to rely upon. What’s the best (meaning most consistent good returns with low drawdown) you have found?

  140. David McLachlan - April 16, 2017

    Hi Ron,

    Excellent question. If I had the answer, I’d most likely be trading it for a bank, or create my own private equity firm! 🙂

    The incredible Howard Bandy has one answer, that I agree with – short term mean reversion systems seem to hold the most promise for the things you are after. They too have their drawbacks though, because they trade a lot the commission is high.

    Happy trending! (Or mean reverting!) – Dave

  141. Rod - April 17, 2017

    Hi Dave,
    Great site and lots of useful info with regard to Amibroker. Just wondering if you could help me with a problem I seem to be having with plotting the Apply stop for ATR. I was using it and it was plotting fine but I had a problem with Amibroker. Now when I try plotting it it comes up as ={EMPTY} on the chart. This happens if I try opening a new window or overlaying it. It’s got me stumped?? Keep up the good work, your site is a great resource. I watch it again and again. Cheers

  142. Patrick - May 9, 2017

    Hi Dave,

    Thanks for all your work posting about how to use Amibroker. I’m learning a lot already.

    I have a question in the similar direction as Ron. When you are designing a trading system for yourself, what’s the minimum CAR/MDD you would consider trading?

    Also, you have a page titled “Using Trend Lines As A Brilliant Way To Enter And Exit A Stock For Profit”. In there you talk about “Two Different Methods for Buying and Selling with Trend Lines”. Then you mention that there are four more methods covered in your “Complete Trading And Investment Course”. Unfortunately, that course seems closed to new members. So is there really no way for us to learn about those other four methods from you 🙂

  143. scott chan - May 19, 2017

    hi DAVID!!

    i am new and keep watching your video,after that i have the question in afl
    i want to make is the buy singal is higher than last buy signal just the same thing in trend follow trade the “Highlow”!!
    for example ;

    high = cross(ma(c,5),ma(c,12));
    low = cross(ma(c,12),ma(c,5));

    buy = ?????

    i want to make the afl happen buy in “highlow”
    how to make this

  144. Jonas - September 23, 2017

    Hi Dave,

    I am new to ASX and wanted to know if there is any way to obtain the number of buyers and sellers and the respective volumes and types (institutional vs individual) for ASX stocks on a daily based in an Excel format?
    Thank you very much in advance for your help.

  145. Mark - October 6, 2017

    Hi Dave

    I absolutely love your Amibroker lessons, thank you very much for taking the time.

    Have you a video on how to code your Dow/Gann system?



  146. Pedro - November 1, 2017

    Wich of your system can i use to trade in MT4 and where can i get it?

  147. Thomas - November 2, 2017

    Hi Dave,

    Thanks for the great wealth of information you have provided!

    I have now ditched Metastock in favor of Amibroker and enjoy watching your videos on the subject. I have also ditched excel in favour of a portfolio manager stock portfolio organizer which has helped me manage trade risk.


  148. Jose - February 9, 2018

    Hello Dave,

    Thank you very much for the work you do. Im new user of Amibroker, and with your website and videos everything is much easier.

    Kind Regards from Spain


  149. David McLachlan - February 21, 2018

    Thank you Jose!

    It is great to have you here.

    Cheers – Dave

Leave a Reply