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:	350
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:	326
Size:	5.8 KB
ID:	1156849

      Comment


        #4
        From Strat builder Click image for larger version

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

        Comment


          #5
          Trade Mngmt Click image for larger version

Name:	enter.jpg
Views:	312
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:	336
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 cls71, Today, 04:45 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post cls71
                  by cls71
                   
                  Started by mjairg, 07-20-2023, 11:57 PM
                  3 responses
                  213 views
                  1 like
                  Last Post PaulMohn  
                  Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                  4 responses
                  544 views
                  0 likes
                  Last Post PaulMohn  
                  Started by GLFX005, Today, 03:23 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post GLFX005
                  by GLFX005
                   
                  Started by XXtrader, Yesterday, 11:30 PM
                  2 responses
                  12 views
                  0 likes
                  Last Post XXtrader  
                  Working...
                  X