Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IsFirstTickOfBar and drawing issues

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

    IsFirstTickOfBar and drawing issues

    I create a script that uses if (IsFirstTickOfBar)

    It has a fibanacci drawing

    after it goes through the IsFirstTickOfBar

    I check volume for my algorithm

    What I found out is if I try Calculate.OnBarClose it will draw my fibanacci
    but it won't be able to calculate my volume and if I use Calculate.OnEachTick;

    It will not draw my fibinacci but calculate my volume

    Calculate.OnEachTick;



    if (IsFirstTickOfBar)
    {
    Draw fibanacci
    }
    else
    {
    calculate volume
    }


    why will it not draw my fib?
    Would try and catch slow the process in order for the fib to draw?

    #2
    Hello ballboy11,

    Thanks for your post.

    The Fibonnacci would draw in any mode (OnEachTick or OnBarUpdate or OnEachTick with IsFirstTickOfBar).

    Do you see any errors posted in the "log" tab of the control center when you apply the script?

    Can you post your code section that shows the complete Draw.F.. statement?

    Comment


      #3
      my Fibonnacci has been working all the time but for some reason if I change the parameters to Calculate.OnEachTick and use an if else statement it won't work.
      the Print statements show it is going through the algo


      There are no errors on log trace files


      I did find out if you are coding from each tick from close you have to close n8 totally and reload. it has some residual memory issues
      Last edited by ballboy11; 07-28-2017, 12:57 PM.

      Comment


        #4
        Hello ballboy11,

        Thanks for your reply.

        If you would prefer, please feel free to send your code into Platformsupport[at]Ninjatrader[dot]com along with a description of what you are trying to do and we can take a quick look to see if there is anything we can suggest. Send the e-mail marked Att: Paul and please include a link to this thread.

        Comment


          #5
          thanks I will wait until monday when the markets open and try again and if I have issues I ll email you

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X