Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy Entry

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

    Strategy Entry

    What setting on Strategy builder would I need to use to have an entry at a indicator line, not Click image for larger version

Name:	Touch not close.jpg
Views:	352
Size:	7.9 KB
ID:	1156687 on close of candle? See attached
    When price touches line enter long order.

    #2
    Hello JTizz,

    Thank you for your post.

    To have your strategy enter a position when the current price touches the indicator line before the close of the bar, you would set your strategy to Calculate.OnEachTick or Calculate.OnPriceChange instead of Calculate.OnBarClose.

    The condition in your strategy would check if the Close[0] price >= the indicator and then calls an action of EnterLong().

    See this help guide documentation for more information.
    Calculate - https://ninjatrader.com/support/help.../calculate.htm
    Condition Builder - https://ninjatrader.com/support/help...on_builder.htm
    Actions - https://ninjatrader.com/support/help...MarketPosition

    Let us know if we may assist further.

    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      I tried on each tick and on price change but still enters on bar close? Click image for larger version

Name:	on each tick.jpg
Views:	327
Size:	5.8 KB
ID:	1156849

      Comment


        #4
        From Strat builder Click image for larger version

Name:	oneachtic2.jpg
Views:	332
Size:	113.8 KB
ID:	1156851

        Comment


          #5
          Trade Mngmt Click image for larger version

Name:	enter.jpg
Views:	313
Size:	30.0 KB
ID:	1156853

          Comment


            #6
            Hello JTizz,

            Thank you for your note.

            Are you running the strategy in the Strategy Analyzer, on a Chart window, or from the Strategies tab of the Control Center?

            Are you running the strategy on the Playback Connection with Market Replay data or are you running the strategy on live data?

            If you are running the strategy on a Chart window, are you referring to historical trades that are placed or realtime trades?

            I look forward to assisting further.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              Chart window, live data,actual real time trade.

              Comment


                #8
                Click image for larger version

Name:	CHANGE.jpg
Views:	337
Size:	60.3 KB
ID:	1156869

                Comment


                  #9
                  Hello JTizz,

                  Thank you for your note.

                  Please send us a reduced copy of your script so we may further investigate this on our end. Note that a reduced copy refers to a copy of the script that contains the minimum amount of code needed to reproduce the issue. All other code is commented out or removed.

                  Below is a link to a video that demonstrates making a copy of a script.
                  https://www.youtube.com/watch?v=BA0W...utu.be&t=8m15s

                  Also, please provide us with the settings that you are using for your strategy. This includes the instrument, bar type, and bar interval you are enabling the strategy on. For example, using the ES 06-21 instrument with 1-minute bars.

                  I look forward to assisting further.
                  Brandon H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by fx.practic, 10-15-2013, 12:53 AM
                  5 responses
                  5,404 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Started by Shai Samuel, 07-02-2022, 02:46 PM
                  4 responses
                  95 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Started by DJ888, Yesterday, 10:57 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by MacDad, 02-25-2024, 11:48 PM
                  7 responses
                  159 views
                  0 likes
                  Last Post loganjarosz123  
                  Started by Belfortbucks, Yesterday, 09:29 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post Belfortbucks  
                  Working...
                  X