• 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 waterman, Today, 07:02 PM
    0 responses
    1 view
    0 likes
    Last Post waterman  
    Started by authenticx, Today, 03:51 PM
    0 responses
    12 views
    0 likes
    Last Post authenticx  
    Started by PN720, Today, 12:54 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by linuxguru, Yesterday, 05:59 PM
    1 response
    30 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by xasser, Today, 02:17 PM
    3 responses
    39 views
    0 likes
    Last Post xasser
    by xasser
     
    Working...
    X