Author Topic: Live chat  (Read 2915633 times)

gcr

  • Hero Member
  • *****
  • Posts: 1008
  • Karma: +28/-1
    • View Profile
Re: Live chat
« Reply #6585 on: January 04, 2018, 03:21:16 pm »
I had a look at the leaderboard and have a question of Patrick - the best performer on the board when I looked was Ashburton Inflation ETF (ASHINF) however these units were purchased at 8:23:52 on 2018 - 01 - 02. The market doesn't open to the public until 9:00:00 and only the auction is open and that is exclusively to brokers and opens 10 minutes before public opening. So how was it possible that the holdings were acquired prior to even the auction period, and, further, what price was inserted against the purchase of these units - was it close of business 2017 - 12 -31, or was it based on some or other factor
Please clarify >:D
Thanks
Not everything that counts, can be counted, and, not everything that can be counted counts - Albert Einstein

PlatinumWealth.co.za

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +10/-1
  • Weekend Investor
    • View Profile
    • Platinum Wealth Group
Live chat
« Reply #6586 on: January 04, 2018, 03:22:06 pm »
Saw that too
www.PlatinumWealth.co.za <- South African Investment and Finance forum.

Patrick

  • Administrator
  • Hero Member
  • *****
  • Posts: 2551
  • Karma: +47/-2
    • View Profile
Re: Live chat
« Reply #6587 on: January 04, 2018, 03:46:32 pm »
It's easy, my cron job for adjusting pending orders into actual orders doesn't kick in until 9am, that's the price they should have been given :)
« Last Edit: January 04, 2018, 03:49:25 pm by Patrick »

gcr

  • Hero Member
  • *****
  • Posts: 1008
  • Karma: +28/-1
    • View Profile
Re: Live chat
« Reply #6588 on: January 04, 2018, 03:58:04 pm »
Still don't follow the logic, also given that you use 1/2 hour delayed prices - so should have showed as booked 09:00:01
Are you a robot :LHST:
Not everything that counts, can be counted, and, not everything that can be counted counts - Albert Einstein

Patrick

  • Administrator
  • Hero Member
  • *****
  • Posts: 2551
  • Karma: +47/-2
    • View Profile
Re: Live chat
« Reply #6589 on: January 04, 2018, 04:22:47 pm »
I can explain it in robot :)


Highly dodgy code was here  :wtf:



 :D :D :D

Basically after 9:30 update any orders made since 5pm last night with live prices. This fixes overnight orders and also updates daytime orders with actual live pricing, so nobody can cheat using their actual brokerage account. Sadly I didn't have the date updating, there's always a bug somewhere! I'm sure all the php experts are going to chime in and tell me how I'm using old SQL and that my code looks like a dogs breakfast, but hey, it gets the job done!
« Last Edit: January 05, 2018, 09:56:16 am by Patrick »

Orca

  • Hero Member
  • *****
  • Posts: 2280
  • Karma: +54/-3
    • View Profile
Re: Live chat
« Reply #6590 on: January 04, 2018, 05:36:19 pm »
Thanks for the explanation. Looks easy to follow. Yes. Sigh.  ???
I started here with nothing and still have most of it left.

gcr

  • Hero Member
  • *****
  • Posts: 1008
  • Karma: +28/-1
    • View Profile
Re: Live chat
« Reply #6591 on: January 04, 2018, 06:43:16 pm »
Thanks for the "dogs breakfast" explanation - too many years ago that I dabbled in SQL to check your coding - so accept that your intent is still honourable.
Your "system" is still malleable in the sense that I can see on my live prices that a certain share has increased in value over your 15 min delay prices and can then buy on your system and as such get the benefit of the "delay" between pricing - I am sure I could do the converse with price falls - but then I would in essence be trading rather than investing - which to my understanding is what the competition is all about
Maybe consider restricting frequent buyers/sellers to remove the trading aspect from the competition - just a thought 
Not everything that counts, can be counted, and, not everything that can be counted counts - Albert Einstein

Hamster

  • Hero Member
  • *****
  • Posts: 535
  • Karma: +13/-0
    • View Profile
    • Off Topic
Re: Live chat
« Reply #6592 on: January 04, 2018, 08:54:57 pm »
You are a brave man posting site code with db statements constructed using simple concatenation.

1=1; drop ... and all that.

PlatinumWealth.co.za

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +10/-1
  • Weekend Investor
    • View Profile
    • Platinum Wealth Group
Re: Live chat
« Reply #6593 on: January 04, 2018, 11:18:26 pm »
My paranoid senses went haywire.

Exploits everywhere
www.PlatinumWealth.co.za <- South African Investment and Finance forum.

Patrick

  • Administrator
  • Hero Member
  • *****
  • Posts: 2551
  • Karma: +47/-2
    • View Profile
Live chat
« Reply #6594 on: January 05, 2018, 09:55:24 am »
Lol, I know, I know. One day when I don't have a day job I'll rewrite it fully. Post will now vanish :)

gcr

  • Hero Member
  • *****
  • Posts: 1008
  • Karma: +28/-1
    • View Profile
Re: Live chat
« Reply #6595 on: January 05, 2018, 10:03:32 am »
Lol, I know, I know. One day when I don't have a day job I'll rewrite it fully. Post will now vanish :)
Shouldn't - use it as a frame of reference when you rewrite O:-)
Not everything that counts, can be counted, and, not everything that can be counted counts - Albert Einstein

Snapcase

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +1/-0
    • View Profile
Live chat
« Reply #6596 on: January 05, 2018, 03:31:48 pm »
haha, too many developers on here

Bread

  • Full Member
  • ***
  • Posts: 218
  • Karma: +6/-0
    • View Profile
Re: Live chat
« Reply #6597 on: January 06, 2018, 06:36:48 am »
Your "system" is still malleable in the sense that I can see on my live prices that a certain share has increased in value over your 15 min delay prices and can then buy on your system and as such get the benefit of the "delay" between pricing - I am sure I could do the converse with price falls - but then I would in essence be trading rather than investing - which to my understanding is what the competition is all about
Maybe consider restricting frequent buyers/sellers to remove the trading aspect from the competition - just a thought
I was also under the impression we wouldn't be able to conduct ourselves as traders but as chairmen of investment clubs. When I ran our office competition I had rules to exclude traders.

Patrick

  • Administrator
  • Hero Member
  • *****
  • Posts: 2551
  • Karma: +47/-2
    • View Profile
Live chat
« Reply #6598 on: January 06, 2018, 08:39:21 am »
The live pricing advantage is killed off by the pending delay. You might think you can see the future using your using account, but then your price is adjusted to the actual live price when you purchased.

Patrick

  • Administrator
  • Hero Member
  • *****
  • Posts: 2551
  • Karma: +47/-2
    • View Profile
Live chat
« Reply #6599 on: January 06, 2018, 08:39:58 am »
if you'd like to see it in action take note of the live price on your next purchase here.