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 Kirk Thorns, Today, 05:34 PM
    0 responses
    5 views
    0 likes
    Last Post Kirk Thorns  
    Started by JobDjassem, Today, 05:24 PM
    0 responses
    9 views
    0 likes
    Last Post JobDjassem  
    Started by Kirk Thorns, Today, 05:06 PM
    0 responses
    10 views
    0 likes
    Last Post Kirk Thorns  
    Started by CyberNate, Today, 03:11 PM
    5 responses
    29 views
    0 likes
    Last Post CyberNate  
    Started by NinjaTrader_ChrisL, Today, 03:44 PM
    0 responses
    17 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X