• 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

Modified BarsPeriodType.Tick

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

    Modified BarsPeriodType.Tick

    Hi,
    I wanna modify BarsPeriodType.Tick. I'm not quite understand how this thing works, I just need add one condition: If bar isn't completed (GetPercentComplete !=1) --- don't AddBar. Only when GetPercentComplete == 1 --- add new bar.
    I created new bar period type (only changed State.SetDefaults so this will not conflict with original BarsPeriodType.Tick)
    Attached Files

    #2
    Hi Leeroy_Jenkins, thanks for your note.

    You would need to modify a chart style script rather than the BarType. The ChartBars.Bars object has a PercentComplete property where you can control the OnRender method to only draw when a bar is 100% complete.

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by lju45, Today, 07:38 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by morrnel, Yesterday, 11:35 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by evanp90, Today, 06:30 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by sandman, Today, 07:13 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by GLFX005, Today, 03:54 AM
    2 responses
    10 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Working...
    X