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

Bar to bar indicator

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

    Bar to bar indicator

    Hi!
    I want to create an indicator that will allow me to specify the beginning and ending bars. I'd like to point at a bar to indicate the start or end. Can you point me toward a similar example?
    Thanks,
    Molrris

    #2
    Hello mornel,

    Thanks for your post.

    I am not sure I fully understand exactly what you are trying to accomplish. So I may accurately assist, please answer the following questions.

    Are you wanting to get the Open price and Close price of bars on the chart?

    Do you want to get the first bar of a trading session and last bar of a trading session?

    Would you like to get the first bar and last bar on a chart window?

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

    Comment


      #3
      I'm laughing Brandon. I want to do the one method you didn't ask.
      I'm looking at my 5k tick chart right now. It is 15:01 now
      I want to click on a bar, say the one painted at 10:16:11 and it draws a line from then until now or the current bar. It could be the close for that bar. If I know the bar I can figure out the value of close.
      I think it would be like an Anchored VWAP beginnning at th bar or a Volume Profile anchored to the bar. Those two examples come to mind.
      Does that make sense?

      Morris

      Comment


        #4
        Hello Morris,

        Thanks for the clarification.

        Below is a link to an example of printing the price and time from mouse click points.
        https://ninjatrader.com/support/foru...624#post792624

        When accessing series information outside of a data driven method, TriggerCustomEvent() must be called, or the Bars.GetValueAt()/.GetClose()/etc must be used.
        https://ninjatrader.com/support/help...ustomevent.htm
        https://ninjatrader.com/support/help...getvalueat.htm
        https://ninjatrader.com/support/help...8/getclose.htm

        Please note that since this requires using custom C# logic to detect mouse click events to get the information of the bar that is clicked this goes beyond the support we would be able to provide in the Support department.

        To find more information about detecting mouse clicks in C#, you could do a Google search for something like 'OnMouseClick event C#'.​

        This forum thread will be open for other community members to share their insights on the topic.

        Please let me know if I may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by esmall, Today, 07:14 PM
        0 responses
        8 views
        0 likes
        Last Post esmall
        by esmall
         
        Started by Option Whisperer, 05-09-2024, 07:58 PM
        6 responses
        26 views
        0 likes
        Last Post Option Whisperer  
        Started by rayyyu12, Today, 05:38 PM
        0 responses
        12 views
        0 likes
        Last Post rayyyu12  
        Started by xepher101, Yesterday, 12:19 PM
        2 responses
        30 views
        0 likes
        Last Post xepher101  
        Started by thumper57, Today, 04:30 PM
        0 responses
        8 views
        0 likes
        Last Post thumper57  
        Working...
        X