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

Historical text markers

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

    Historical text markers

    Hello,Support and All,

    With the SuperTrend indicator i`m trying to get the historical text markers for the occurance,when the developing bar[0](COBC=false) touches the dotvalue of the bar[0].So far i can only get the markers while the bar is developing,but when i hit F5 it disappears.Any suggestions on how to keep the markers on the chart,without them being dissapeared,are greatly appreciated!
    Attached Files

    #2
    Hello outsource,

    If the object is being drawn in real-time then it also needs to be drawn historically as well.

    When you hit F5 the indicator will reload, removing any drawn objects, and will go through all of the historical data again and redraw them.

    If in the historical data you are also drawing the object then it will appear when you refresh the chart.

    Are you drawing the object historically when the conditions are true?

    (If you re-use the tag name, it will be re-drawn in the new location in real-time once the condition is true for it to draw)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello outsource,

      If the object is being drawn in real-time then it also needs to be drawn historically as well.

      When you hit F5 the indicator will reload, removing any drawn objects, and will go through all of the historical data again and redraw them.

      If in the historical data you are also drawing the object then it will appear when you refresh the chart.

      Are you drawing the object historically when the conditions are true?

      (If you re-use the tag name, it will be re-drawn in the new location in real-time once the condition is true for it to draw)
      Hi,Chelsea,

      just like i said,it draws the text markers only while the bar is developing,when the conditions are met,but doesn`t keep them historically.

      Did you see the source.Tags have nothing to do with it,i think.

      Comment


        #4
        Hi outsource,

        If the indicator is not drawing historically, then add logic to draw historically..
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hi outsource,

          If the indicator is not drawing historically, then add logic to draw historically..
          If i knew,i would.That`s what this thread is for - to find out how.

          Comment


            #6
            Hello outsource,

            I cannot write this code for you.

            Would you like a list of professional NinjaScript consultants who would be happy to write this code at your request?
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Perr0Grande, Today, 08:16 PM
            0 responses
            2 views
            0 likes
            Last Post Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            5 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            11 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Working...
            X