Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adaptive Algorithm

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

    Adaptive Algorithm

    I'm looking for a platform to write, test, and execute an algorithm and I'm not sure Ninja trader will do what I need. So far I've had no luck finding a way to auto execute this algorithm.

    Basic idea of the algorithm:

    -buy stock A at pre designated price of $10 (current price $8)
    -If stock rises to $10, shares are purchased and a trailing stop is set
    -if stock reverses price, trailing stop is triggered.
    -Price at which trailing stop was triggered becomes new buy price, if stock reverses and heads up again it will be purchased at previous sell price and another trailing stop is initialized.
    repeat until cancelled.

    I need this to loop until cancelled. This is part of a bigger trading strategy, therefore it may not make sense.

    Is it possible to do this with Ninja trader? If yes, are there "contractors" that will write this program for a fee? I'm a novice coder, better off paying someone to get it done in a reasonable time frame.

    #2
    this sounds like a multi-day hold?

    Stocks bonds or forex?

    Who would be your broker?

    Comment


      #3
      Not sure on Broker, currently using Scottrade unfortunately but will be moving.

      Is this algorithm possible with ninja trader?

      edit - it's for stocks.

      Comment


        #4
        Subluxator, generally such an algorithm could be coded in our C# based NinjaScript language for an automated strategy, so I understand correctly the entry would also be coming from the script itself via a custom condition or how would you trigger it?

        Our certified consulting partners for custom development would be listed here - http://www.ninjatrader.com/Ecosystem/NonBroker.php#81

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Subluxator, generally such an algorithm could be coded in our C# based NinjaScript language for an automated strategy, so I understand correctly the entry would also be coming from the script itself via a custom condition or how would you trigger it?

          Our certified consulting partners for custom development would be listed here - http://www.ninjatrader.com/Ecosystem/NonBroker.php#81
          I'm trying to learn how automated trading and Ninja trader work, so I don't know how to answer your question. I have a theory/algorithm I want to test and I'm trying to find a solution. I have spoke to some coders that say it can easily be done, but can it accurately be back tested with confidence before being put to use in the market?

          I can see already this is going to take more time and work to figure out that I initially thought, but I'm up for it. I came up with this theory/algorithm as part of a bigger strategy about 6 months ago and I need to see if it works as expected or if I have missed something.

          Any help would be appreciated. I'll start by reading/watching anything educational regarding Ninja trader before paying to have code written. The code won't do me any good if I don't know how to test and implement it.

          Comment


            #6
            It's certainly an involved process to completely automate one's trading / an algorithm. Generally speaking you could submit orders to as low as 1 tick granularity as well in backtesting including bid / ask data, so accuracy can be maintained at a high level for simulating fills. For an even tougher test then you could simulate live trading the algorithm then in Market Replay and our Sim101 account meaning you actually work off live / recorded live data including the exact intrabar formation. To see how this works you can starting working for example with our SampleMACrossover script shipped with NT, Market Replay data could be downloaded for free from our servers for more popular contracts.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X