How do you learn to program trading ?

Discussion in 'Automated Trading' started by traderwald, Aug 8, 2020.

  1. 931

    931

    Is processing complexity not portion of the information transfer delay?

    How is risk managment connected?
     
    #21     Aug 9, 2020
  2. The heavy processing is done offline beforehand, a few microseconds won't make or break it. Risk management is connected by controlling responses to inventory jumps
     
    #22     Aug 9, 2020
  3. 931

    931

    Accessing lookup tables or means for seeking precalculated info seems like light processing.
    Then idk if it would matter if its Python, C or ASM. Perhaps bigger delay is in networking or elsewhere.
     
    Last edited: Aug 9, 2020
    #23     Aug 9, 2020
  4. You might be right, im using memory mapped files for lookup , there is room for optimization, my first jump would be from Java to C rather than straight to asm. Networking delay is ther but its only about 60 micros
     
    #24     Aug 9, 2020
  5. 931

    931

    Are you using M.2 drive?
    Maybe single file that is constantly opened is faster than files?
     
    #25     Aug 9, 2020
  6. Ssd. The sections are mapped into ram before they are accessed so storage latency is not an issue and I have 1TB of ram in the machine , but enough to store the whole day for several symbols
     
    #26     Aug 9, 2020
  7. Java has a 2GB memory map limit, so I map 20 minutes or so worth of trading into each segment , and make sure the next segment is mapped before its needed and then unmap the segments no longer needed after time has passed. I let garbage collection do this now. Remains to be seen whether its worth it to port to C, since errors are a lot harder to debug in C/asm and its slower to develop in
     
    #27     Aug 9, 2020
  8. I considered it but would have cost another 2k on top of a 20k machine. Main ram speed seems to be the issue. Hft studies show that profitability decreases as a function of latency , 125ms totally kills any profitability. I dont think the difference between 60 and 61 microseconds is even statistically distinguishable
     
    #28     Aug 9, 2020
  9. 931

    931

    I thought of 0.5-1TB RAM but made disk buffering algo instead.
     
    #29     Aug 9, 2020
  10. 931

    931

    Oh , HFT..
    Im at retail level spreads.

    I always thought. How HFT traders overcome spreads?
     
    #30     Aug 9, 2020