Forward testing - Aussie Stock Forums

Results 1 to 7 of 7

Thread: Forward testing

  1. #1

    Default Forward testing

    Hi guys,

    I'm relatively new to ASF so forgive me if this has already been discussed (I have searched).

    I've used amibroker to backtest a trading strategy and it appears to have had a good run however I was wondering, is there code in amibroker to simulate a live trading situation... Like a paper trade?

    For this, amibroker would somehow need to know which stocks have been bought and are currently held. It appears to me that anytime an AFL script has been run, it is run independently and does not retain or parse variable data.

    Therefore, the script would have to scan for buying opportunities, "buy" them and update the information to a 3rd party paper trading application/spreadsheet.

    Second to that another script would have to scan the list of held stocks and see if each each requires the exit of the position.

    I.e. For a 30 day MA crossover strategy the amibroker script would scan all stocks in the ASX crossing their 30 day MA in the last day.

    If the stock is not already held, "buy" and add the code and the price bought to the spreadsheet.

    Scan the list of codes held in the spreadsheet and see if any prices are below their 30 day MA. If they are then "sell" and record the sell price on the spreadsheet.

    This is essentially automated paper trading.... Has it already been done in amibroker does anyone know? If not I will do it but it will take time!

    Also, I'm working on a chart slideshow which I will continue to make available for free. I hop people find it useful and that good karma comes my way. Price data and other changes will be added shortly. I'm open to suggestion too.


  2. #2

    Default Re: Forward testing

    I guess this hasn't been done?

  3. #3

    Default Re: Forward testing

    I use AB for back and forward testing, but I didn't really understand the question. Can you re-phrase it and make it more succinct?

  4. #4

    Default Re: Forward testing

    My backtesting method works woo!

    Now I want to run a paper trade letting amibroker buy and sell stocks using the entry and exit requirements of my strategy using real time data.

    I do tend to waffle... Sorry. And I appreciate any help in advance.

  5. #5

    Default Re: Forward testing

    I doubt it's possible without a lot of expertise, and even then... Remember AB would have to know the market depth in quite a lot of detail, otherwise it would be guessing whether a fill is possible.

    Closest I know to real live intra-day paper trading is with Turbo Trader. However the available parameters are probably a lot more restrictive than what you've already programmed for AB. TT will probably allow scripting at some stage in the future. You can basically set and forget.

  6. #6

    Default Re: Forward testing

    Thanks gringotts.

    I spent a bit of time today writing a vbscript that you can include in any AFL scan which posts the date, ticker, price and buy/sell flag for every stock matching your scan criteria to an external server!

    While it doesn't know market depth, at this stage volume traded is enough info for me.

    This got me thinking.

    Wouldn't it be cool if everyone on this forum included this script in their amibroker scans. Then every time a buy signal was triggered it would post the info to the server.

    The server could then trend what everyones scans are saying to buy. Like a broad market sentiment based on technical analysis.

    I'll keep plodding along.


  7. #7

    Default Re: Forward testing

    Problem there would be everyone has different time frames.

    If you want to know what everyone is day trading, it will always be the stocks that are gaining % on volume. There's rarely more than half a dozen of these each day. The more there are, the better the general sentiment.

Similar Threads

  1. Moving Forward Together
    By Logique in forum General Chat
    Replies: 15
    Last Post: 21st-July-2010, 08:31 PM
  2. Out of sample/Forward testing?
    By anthon in forum Trading Strategies/Systems
    Replies: 7
    Last Post: 2nd-January-2010, 06:36 AM
  3. Montecarlo vs. Walk forward testing
    By waza1960 in forum Trading Strategies/Systems
    Replies: 12
    Last Post: 4th-November-2009, 08:51 PM
  4. Forward testing
    By It's Snake Pliskin in forum Trading Strategies/Systems
    Replies: 11
    Last Post: 5th-September-2006, 11:13 AM
  5. GOLD (IAU) going forward ....
    By MARKETWAVES in forum Commodities
    Replies: 1
    Last Post: 15th-May-2005, 02:08 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Aussie Stock Forums