• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

open source AI machine learning strategy

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    open source AI machine learning strategy

    I've been working on this AI strategy for a long time. This is the stripped down version, so it won't necessarily be profitable as-is, but it's a very powerful engine to build around.

    What it does is place a matrix of simulated trades for every stop/target combination within a range you define. If you set it to 50, the strategy will simultaneously place hundreds of "shadow probes" with S/T values of 1/1, 1/2, 1/3....... all the way to 49/50, 50/50 to find which stop/target value is most profitable at the current moment. Like I said, it probably won't be profitable out of the box, but if you know your particular market and some ninjascript you can tune it up and see some nice returns.

    You must run this on a 1-tick data series. If you want to access a different data series (e.g. check a moving average on a 5 minute time frame) you'll have to add a secondary series, which is super easy. I can post code for that too if you can't find it on the forums.

    The variables in the "control variables" region are the ones you can tweak to get different results.
    Attached Files
    Last edited by algotrading; 07-19-2018, 10:04 AM.

    #2
    Good to know that you are into artificial intelligence for a long time. I wanted to know that is hp customer service using AI techniques to chat in real time with their customers ???

    Comment


      #3
      where do we insert the entry conditions

      Comment


        #4
        What instruments would this strategy work?
        I tried 1 tick chart, on simulated, playback and strategy analyzer and it does not generate any trade.

        Comment


          #5
          Originally posted by gbux11 View Post
          where do we insert the entry conditions
          Sorry this is late, I didn't get a reply notification. There's a region in the code called Entry Logic. You can replace or modify what's there.

          Comment


            #6
            Originally posted by johnnybegoode View Post
            What instruments would this strategy work?
            I tried 1 tick chart, on simulated, playback and strategy analyzer and it does not generate any trade.
            Sorry this is late, I didn't get a reply notification. This should work on any tick based contract. I wouldn't do any backtesting with strategy analyzer because it's very inaccurate with order fills and doesn't use level 2 data. Replay and real time are the best ways to test. If you're not getting trades, it might be because the entry logic only places a trade when the most profitable stop/target combo is > 0. You'll see this in an if statement in the Entry Logic region of the code. Place a print statement on ever tick to print out the maxNetProfitLong and maxNetProfitShort variables to see if they're getting over 0 during the time period you're testing.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Arkadiy_B, Today, 06:43 AM
            0 responses
            2 views
            0 likes
            Last Post Arkadiy_B  
            Started by leontancfa, Today, 06:09 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by soulfx, 12-01-2017, 08:44 AM
            3 responses
            1,019 views
            0 likes
            Last Post NinjaTrader_EricB  
            Started by Parmenides48, 04-09-2019, 03:32 AM
            10 responses
            50 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by NinjaCustomer, Today, 01:48 AM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_EricB  
            Working...
            X