Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to Place bid/ask/mkt based on current Range Bar

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

    Is it possible to Place bid/ask/mkt based on current Range Bar

    I use jtRangeMarker8 which is a really nice Indicator that shows a box where the current Range will possibly go. The box shrinks as the Bar grows to allow for the ambiguity of where the bar will go next. I would like to be able to place bids based on those locations. For example, I am using range 10, I am placing a bid on ES and the bar starts at 4125.00. The box now shows all possible distances of the range at 4122.50 - 4127.50. Is there any way to write a script that would place a buy/sell at 4122.50 or 4127.50 depending on a key combination?
    Thank you for any and all assistance.
    Best,
    WeyldFalcon

    #2
    Hello WeyldFalcon,

    Thanks for your post.

    You've posted in the NinjaTrader7 strategy development forum but are referencing jtRangeMarker8 which is only for NinjaTrader8.

    Can you confirm which platform you are working with?

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      8, I clicked the NT8 link, not sure why it placed me in NT7, can you please move it to the NT8 forum?

      Comment


        #4
        Hello WeyldFalcon,

        Thanks for your reply.

        I've tried to move the thread but something is not working right. There is a link in NT8 that directs you to this thread in NT7.

        We will keep trying but for now, let me get you an answer based on NinjaTrader8.

        Yes, it is possible to create a strategy that uses the same type of logic as is used in jtRangeMarker8.1 to determine the high and low prices and can work with keyboard input.

        I don't have any examples that I can point you to.

        If you would like something created for you we can provide a link to 3rd party programmers in the Ninjtrader ecosystem.






        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Hello WeyldFalcon,

          I wanted to share that if you would like to pick up on key presses to submit orders at certain levels, ChartControl.PreviewKeyUp/PreviewKeyDown may be helpful to detect key presses.

          You could implement this in an indicator and use AddOn framework code to submit orders to those price levels, or you could consider exposing the indicator values as plots or public variables so they can be read from a NinjaScript strategy, and the strategy can submit orders with the key presses.

          AddOn Framework code would use Account.CreateOrder and Account.Submit to create and submit orders. You should also be familiar with Order objects as well.

          Account.CreateOrder - https://ninjatrader.com/support/help...reateorder.htm

          Account.Submit - https://ninjatrader.com/support/help...nt8/submit.htm

          Order objects - https://ninjatrader.com/support/help.../nt8/order.htm

          I have attached examples for submitting orders with AddOn Framework code and using ChartControl.PreviewKeyUp/Down.

          If you would like to instead expose the values of the indicator and implement the PreviewKey logic in a strategy, please see the AddPlot documentation and Exposing indicator values that are not plots example for how you can expose indicator values to the strategy.

          AddPlot - https://ninjatrader.com/support/help...8/?addplot.htm

          Exposing indicator values that are not plots - https://ninjatrader.com/support/help...alues_that.htm

          We look forward to assisting.
          Attached Files
          JimNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by wildleanketosale, Today, 03:49 AM
          0 responses
          1 view
          0 likes
          Last Post wildleanketosale  
          Started by wildleanketosale, Today, 03:48 AM
          0 responses
          3 views
          0 likes
          Last Post wildleanketosale  
          Started by hiltonvarai, Today, 03:10 AM
          0 responses
          1 view
          0 likes
          Last Post hiltonvarai  
          Started by afyuwi, Today, 02:33 AM
          0 responses
          2 views
          0 likes
          Last Post afyuwi
          by afyuwi
           
          Started by wushutrades, Today, 01:41 AM
          0 responses
          5 views
          0 likes
          Last Post wushutrades  
          Working...
          X