• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 jamarc, Today, 02:30 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by uday12, Yesterday, 04:19 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by grose, Today, 06:53 AM
            2 responses
            7 views
            0 likes
            Last Post grose
            by grose
             
            Started by Bobisam, Yesterday, 04:57 PM
            1 response
            21 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by voltlon, Yesterday, 05:18 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Working...
            X