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 algospoke, Yesterday, 06:40 PM
            2 responses
            19 views
            0 likes
            Last Post algospoke  
            Started by ghoul, Today, 06:02 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            45 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            21 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            181 views
            0 likes
            Last Post jeronymite  
            Working...
            X