Machine Learning Algo for Trading

Discussion in 'Automated Trading' started by stepseazy, Jun 13, 2016.

  1. 931

    931

    With backtester need pay attention to execution levels, so algos exec levels wont get much better than would be with incoming tick data and probably cant fully use last bar for simulation if on live it will be calculating on each incoming tick.

    I saw tremendous returns on first simple momentum based algo and automated parameter search implementation, then started to see it has to be too good to be true and it only found flaws, after making test conditions harder it got more realistic and most momenutm based algos tested have month of gaps on out of sample data or dont even break even.
     
    Last edited: Dec 9, 2016
    #121     Dec 9, 2016
  2. Hey guys, pretty nice discussion so far.

    How do you get adapt the CNN's design to work well with time series data? I was under the impression that these nets are better suited for machine vision tasks, and other nets such as RNN's (LSTM in particular) and Markov Nets are better suited for time series tasks.

    Anyone has experience using Reinforcement Learning on market data? I've gotten bitter-sweet results using Heuristic search algorithms and would love to hear about other experiences with such approaches.
     
    #122     Dec 13, 2016
  3. userque

    userque

    I'm not into CNN's, but I recall someone in the industry hinting that the data is first converted into a two-dimension image--at least that's how he was doing it. I assumed he was referring to a type of common stock chart image is fed into the CNN.
     
    #123     Dec 13, 2016
  4. Maybe, literally teach the CNN to read the chart with colors and all...
     
    #124     Dec 13, 2016
  5. userque

    userque

    I hadn't considered colors...but I suppose so...if it adds relevant meaning.

    Train it with the input being a chart with some number of days/hours/minutes, output being that chart, but with so number of days/hours/minutes into the future??
     
    #125     Dec 13, 2016
    eusdaiki likes this.
  6. Here is an interesting simple approach and basic R code. You can use your own attributes and the code to get you started after you download the R package. You do not need the DLPAL software attributes to play around. The code is well explained. Good point also about ML being GIGO. I think the simple classifier gml will give you an idea if there is high noise in your attributes.
     
    #126     Dec 15, 2016
  7. 931

    931

    Feeding algos with matrix or pixels with colors seems very inefficient idea.
    Would it be used for the purposes of finding ways for pattern recognition?
     
    #127     Dec 18, 2016
  8. Im not sure if it is the right approach... if anything it'll allow to reuse techniques developed for machine vision (such as CNN's) and *maybe* avoid some of the pitfalls of working with timeseries data...

    Although RNN's do seem to be a more natural fit for the problem at hand. My initial impression is that LSTM's should be a good fit.

    Phased LSTM's also seem quite promising (they are LSTMs with a time gate). They show good results dealing with asynchronious streams, this may be a good fit when dealing with tick data as it is received from the market at irregular times...

    https://arxiv.org/abs/1610.09513
     
    #128     Dec 20, 2016
  9. #129     Dec 20, 2016