Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

startegy development newbie questions

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

    startegy development newbie questions

    hi all,

    I have been developing a few indicators and am looking to implement some trading.

    my requirements are quite simple. I need to:

    1. Enter the market long / short based on signals from my indicators
    2. Once I enter the market, no more trades can be taken till I am flat again
    3. I enter automated but need the trader to manage the position once entered
    4. Entry is with market orders

    My first question is to confirm that I should be using Atm Strategies? AtmStrategyCreate?

    #2
    Hi onnb1, yes if you wish to manually manage then a automatically entered position using ATM strategies triggered via NinjaScript would be a good option. A full working example can be reviewed in your default NT install via the 'SampleAtmStrategy'.

    Comment


      #3
      Thanks for this - every bit helps.

      I have the indicator logic which I developed. It draws a visual on the chart and has the entry signal logic. Now, I understand strategies don't produce plots? If that is so, how is it recommended to organize things so that the strategy and indicator share code? In the end, this strategy / indicator needs to be distributed commercially - what is the recommended practice in this case? Am I making sense?

      Comment


        #4
        The strategy could access per default the plot values the indicator would offer, if you wish to access internal signal calcs or variable value please work with the concepts of this reference sample here - http://www.ninjatrader.com/support/f...ead.php?t=4991

        You can for example set an internal signal series in your indicator that you would expose for the strategy to 'read' / access, so you can handle the execution logic accordingly then.

        Comment


          #5
          thanks. you mention default values of the indicator and I see that from the reference example in the link. The indicator has parameters. What if I want the user to be able to configure the indicator? Do I need to expose those params in the strategy?

          Comment


            #6
            You would then create user inputs in the strategy to pass the parameters to the indicator method you call internally for the signals - http://www.ninjatrader.com/support/f...ead.php?t=5782

            This means you can then later on optimize them as well if desired in our Strategy Analyzer.

            Comment


              #7
              Hi - I had a look at the sample implementation at this link: http://www.ninjatrader.com/support/f...ead.php?t=4991

              I created a bool data series within the indicator that is set to true when a trade signal is given and false otherwise. From the example, I can see that I can access this series from code. I had expected to see that data series in the strategy wizard but don't see it - I am trying to understand if I am doing something wrong or is this not supported?

              Onn

              Comment


                #8
                You're are not doing anything wrong here, Plots would be listed in the wizard, but not custom exposed series unfortunately.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                672 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                379 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                111 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                575 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                582 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X