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.