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
    where do we insert the entry conditions

    Comment


      #3
      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


        #4
        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


          #5
          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


            #6
            Have you done any updates on this? I tested it realtime today and it still worked even though theres some changes in NT8.

            Comment


              #7
              I do not what you are talking about

              Comment


                #8
                GM algotrading, just working to get along with your AI Shadow strat. Can’t reach your website. Do you provide the code for the last X bars?

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by aa731, Today, 02:54 AM
                0 responses
                4 views
                0 likes
                Last Post aa731
                by aa731
                 
                Started by thanajo, 05-04-2021, 02:11 AM
                3 responses
                470 views
                0 likes
                Last Post tradingnasdaqprueba  
                Started by Christopher_R, Today, 12:29 AM
                0 responses
                10 views
                0 likes
                Last Post Christopher_R  
                Started by sidlercom80, 10-28-2023, 08:49 AM
                166 responses
                2,237 views
                0 likes
                Last Post sidlercom80  
                Started by thread, Yesterday, 11:58 PM
                0 responses
                5 views
                0 likes
                Last Post thread
                by thread
                 
                Working...
                X