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

A Problem

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

    A Problem

    Hi and thank you in advance for the help

    this indicator starts drawing a line when an event is triggered.

    my problem is that it stops drawing the line before the condition is met due to another event trigger

    any ideas welcome Thanks again
    Last edited by richbois; 07-08-2011, 08:38 AM.

    #2
    richbois, from a quick test I only see the return plot being reset after price crosses back to / through it? So you would like to keep extending this plot still here?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks for the prompt reply Bertrand

      Yes when the price crosses back then the line should stop printing and that it is doing.

      the problem when the price doesNOT return but a new event happens then the old line stops printing

      Comment


        #4
        You would then need to debug your code to understand where exactly it would not work up to your expectations, for example it would also not plot / set any plot value if your if(linePlot && CurrentBar > longBar) would not be true.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          the way i see what is happening is that when the main condition finds a new occurence the Mark.set gets new print and then the values for longbar and oDot changes therefore making the ploting of the old line impossible and a new lineplot starts.

          I tried many other ways to get this to work and i am drawing a blank.

          that is why i came here for a bit of help

          how can i keep the old values until condition is met???

          Comment


            #6
            it took a while but i finally figured out what you were telling me and suceeded with the script

            thanks

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by maybeimnotrader, Yesterday, 05:46 PM
            5 responses
            24 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by NRITV, Today, 01:15 PM
            0 responses
            4 views
            0 likes
            Last Post NRITV
            by NRITV
             
            Started by quantismo, Yesterday, 05:13 PM
            2 responses
            16 views
            0 likes
            Last Post quantismo  
            Started by frankthearm, Today, 09:08 AM
            6 responses
            27 views
            0 likes
            Last Post frankthearm  
            Started by adeelshahzad, Today, 03:54 AM
            5 responses
            33 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X