Mick's trading bot on the ASX

Discussion in 'Journals' started by themickey, Jul 14, 2023.

  1. themickey

    themickey

    So I've just completed a huge task creating a trading bot, taken several weeks to formulate this particular one and it went through several (over 20) variations until I was happy with it.
    Now it's time to run and see how it performs.

    I'm still tweaking the bot, so at this stage I wouldn't call it a finished job yet.
    I'll update my trading resuts as frequently as I trade at end of each day and keep a running spreadsheet of results on display.
    This bot should also work on USA stocks, but it's too much work for me to run a USA demo, it's busy enough just doing ASX stocks.
    I'm still learning how to run my own bot, so it's a work in progress.

    Below is a sheet I'm tracking on live trades, Betmakers was held only for about a week and you can see the loss there after brokerage of minus $317.78 after brokerage.
    A round trip is $40 in fees where I'm trading. All bets will be a constant $5000 plus fees.

    Item rows 6&7 are indexes and not calculated into the sums on the top line, they're just there so I can compare, rough and ready bellwethers.

    Sorry but I won't be devulging any info on how this is coded, the object of this exercise is to prove that T/A works and a bot can be written.

    In terms of discretionary involvement within the trades, basically nil discretionary, this is 100% rules based. For example today I bought ASM, if I had been trading my discretionary way I wouldn't have bought.

    upload_2023-7-14_19-15-19.png
     
    Last edited: Jul 14, 2023
    fullautotrading, Onra and Darc like this.
  2. Good luck. We flowing
     
  3. tony.m

    tony.m

    Why are you paying 1980s fees in 2023 ?
     
    fullautotrading likes this.
  4. themickey

    themickey

    Because this is Australia where the ASX runs its business still from from the 1980's plus inflation.
    The old grey haired directors still hang on.
    The ASX attempted to introduce new technology recently but it turned out a huge flop not surprising.

    This was published 3 months ago

    ASX Ltd: Watchdog investigates sharemarket operator over failed tech project

    By Clancy Yeates March 29, 2023
    https://www.smh.com.au/business/ban...over-failed-tech-project-20230329-p5cw6x.html

    The corporate watchdog is investigating whether market operator ASX Ltd or its directors breached corporate laws in their handling of a failed technology project to overhaul critical financial infrastructure.

    In a sign of further fallout from a long-running project that was junked last year, ASX Ltd on Wednesday revealed it was under investigation by the Australian Securities and Investments Commission over the CHESS replacement project.

    [​IMG]
    ASIC is investigating the ASX over potential breaches relating to the ill-fated CHESS replacement project.Credit: AFR

    The project had attempted to replace the ASX’s core clearing and settlement system with blockchain-based technology, but it was beset by repeated delays. Last November, the company dumped the project, resulting in $255 million in charges.

    The ill-fated project has sparked tougher regulatory scrutiny of ASX Ltd, with the country’s top financial regulators last year blasting the company over the failure, and demanding ASX Ltd produce a series of reports.

    Now, ASIC was investigating “suspected contraventions” of corporate laws, ASX Ltd said. It said the watchdog would consider whether ASX Ltd, and/or its officers and directors had breached various sections of the Corporations Act, including those relating to continuous disclosure, misleading and deceptive conduct, and false or misleading statements. The regulator was also investigating whether there were breaches of the ASIC Act, including sections dealing with misleading and deceptive conduct and false or misleading representations.

    [​IMG]
    ASX chief executive Helen Lofthouse has said the company needed to revisit the design of the CHESS project.Credit: Michael Quelch

    ASX said the probe into suspected contraventions would look at ASX Ltd’s oversight of the CHESS replacement project, and statements and disclosures it had made on the status of the program. “ASX takes its obligations very seriously and will co-operate fully with ASIC,” ASX Ltd said.

    ASX Ltd, as well as operating key financial market infrastructure, is also responsible for monitoring and enforcing compliance with the market’s listing rules, which include rules on continuous disclosure. ASX Ltd has a distinct compliance division that handles the compliance of listed companies. ASIC is responsible for supervising ASX and monitoring ASX’s compliance with the listing rules.

    Despite ASIC’s investigation, investors did not appear overly worried about the potential impact on ASX, with its shares rising 0.2 per cent to $64.75 by late afternoon.

    An ASIC spokesman confirmed the investigation but did not comment further on the matter. “ASIC acknowledges today’s market announcement by ASX Ltd and confirms that it has commenced an investigation as referred to in the announcement,” he said.


    ASX received the news of ASIC’s investigation on Tuesday night, and on Wednesday ASX Ltd chief executive Helen Lofthouse addressed staff in a meeting on the matter. When the company announced it was dumping the project last year, Lofthouse said it had become clear the company needed to revisit the design of the CHESS project.

    CHESS, a system developed in the 1990s, is used to underpin trading on Australia’s sharemarket. In 2015, ASX Ltd started looking at replacement options. In 2016, it selected a partner to develop and test a platform that would use distributed ledger technology.

    But the ambitious program was repeatedly delayed before being abandoned in November, a move that left other firms in the financial sector frustrated after the investments they had made in the project. In February, ASIC ordered ASX Ltd to provide two extra reports on the bungled project.

    Regulators had also previously said they were considering further action.
     
    Darc likes this.
  5. tony.m

    tony.m

    themickey like most Aussies you enjoy paying more.
     
    themickey likes this.
  6. themickey

    themickey

    Ya gets wot ya's pay for.
    I could go cheaper and shonkier....

    But ostralya is light years behind USA in terms of market info and brokers.
     
    Darc likes this.
  7. You could do those trades for a touch over $13 bucks round trip with IB Mick
     
    Darc likes this.
  8. themickey

    themickey

    Yep, but (a) IB and I don't get along, well, put another way IB and SierraChart don't get along and although I no longer use SC, I wasn't happy with IB and gave up on it.
    (b) The way I'm finacially structured it works better that I don't use IB, (tax and accountants).

    So I'm saving $14 a round trip using IB, mmmm, it's no big deal when my portfolio swings most days into the 4 figures.

    Yeah, I'd like to save every buck, but when you have a wife spending dough likes it's going outta fashion I feel, 'don't sweat the small stuff' buddy. :)
     
    Darc and getthatintoya like this.
  9. themickey

    themickey

    Today is the 2nd day this week the ASX has had a losing day.
    Yesterday I placed some buying and selling limit orders but nothing eventuated.
    Today 3 buy orders were hit, RNU, IG6, BUB.
    My plan for IG6 is it will probably be a short lived trade, then I'll reenter at a lower price.
    BUB is slightly different, although I have bought, there is another buy order again for this at a lower price should it retrace but I wasn't intending on selling my current holding for a quick scalp.

    Today I discovered a glitch in a formulas which was giving me an inaccurate result.
    It's quite common once a large algo gets created to find errors, in this instance it was a structual type error, not so much a formula error but it was in the way I was calculating data and I was getting incorrect dates from several months ago.
    With holidays and stocks going into trading halts etc, often between stocks dates won't match up, I thought I had this sorted but when I was checking a stock today and saw the data saying it was 10% underwater when it wasn't, I had to go searching first for the error, then I had problems getting a 'MATCH' function to operate correctly. Have it sorted now.

    Anyhow, due to being intently sidetracked today, I allowed to Latin Resources to get away on me.
    Yesterday I was going to sell Latin but it was touch and go, so held on.
    Today I was hoping ASX would rise which it usually does following USA overnight, but our negative day was too much for Latin and it went further into the red.
    Tomorrow I'll dump Latin Resources, a day late, but thems the breaks.

    I traded Latin once before recently, but the recent position I've taken was just in the hope it would bounce once again as it's been a strong performer, I think the last two day's ASX negativity is just overwhelming it.

    upload_2023-7-18_14-56-44.png
     
    Darc likes this.
  10. themickey

    themickey

    The ASX continues to display weakness, the mornings will often rally then fizzle out later in the day.

    Yesterday I mentioned I would sell Latin Resources today. I know what happens when you blab publicly on the internet you are gonna sell, that becomes a buy signal for the rest of the mob.

    Now I know that when you open your trap about a stock, you’ll frequently jinx it and armed with this information when the market opened I sat on my hands to watch Latin roar up 9% in the morning so I went along with the ride. So, still holding Latin as I’m now not in a sell signal situation. Screenshot of my current Latin holdings, down $100.54 on initial investment of $6000 and up $567.56 today on that position which is 10.61%.

    [​IMG]

    Due to the fact I’m still learning to drive my latest new algo, I made a very slight blunder, nothing serious. I sold ASX CRN, Coronado Global Resources, coal stock as my initial calculation made the other day was it was underperforming, but I was wrong, it is doing fine. Nevertheless I bailed out a tad over breakeven which had been my plan.

    Anyhow on realizing my error of selling when I should have held, instead of jumping straight back in, bought another similar coal stock to replace it which imo might be a tad better buy atm, ASX WHC, Whitehaven @ $7.05. Whitehaven closed today at $7.00.

    There’s a large number of gold stocks with current buy signals, but I’m not particularly interested in getting more suckered in on more gold, I’m already holding a few gold stocks in my portfolio, that will do, don’t wish for any more.

    ASX PNR, Pantoro gold Ltd which I bought the other day is more or less going gangbusters, I’m happy enough with that, it was up 4.71% today.

    Today on daily figures there was a subtle buy signal on ASX PLL, Piedmont Lithium, the very faintest trace of a buy signal, so I bought in. Probably in a day or so the rest of the public will cotton on if it continues up, hopefully.

    In spite of the fact XMM & XGD, the ASX Metals and Mining and Gold sectors are having their 3rd negative day in a row and the fact the majority of my holdings are resource stocks, I’m managing to show some green in results, I’ve accrued $480 in brokerage fees on paper (my calcs include buy and sell fees upfront), I think we are doing OK atm.

    A minute before the ASX market went into its closing auction period, I sold ASM for $1.23. My buy price the other day was $1.24. It just now closed at $1.245.
    upload_2023-7-19_14-53-26.png
     
    #10     Jul 19, 2023
    Darc likes this.