NexusFi: Find Your Edge


Home Menu

 





NT8 Assign paintbar colors to other indicator


Discussion in NinjaTrader

Updated
    1. trending_up 1,938 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 tradenoob 
Richmond, VA
 
Experience: Intermediate
Platform: Sierra Chart
Trading: ES
Posts: 3 since Aug 2013
Thanks Given: 24
Thanks Received: 0

Hi all,

I have a paintbar indicator I've made and want to match the standard VOL indicator's color to reflect the paintbar colors of the candlesticks. I've cloned the VOL indicator with the intent to do this but it seems I'm not going about it the right way.

Was wondering if anyone knew the proper way to do this.

FYI I'm currently grabbing the standard volume indicator simply by using a Name check against ChartControl.Indicators, which seems to work properly. I'm then setting its BarBrushes[barsAgo] to the new color in the same method I use to paint the bars. I thought this would work but I'm getting an index out of range error.

Thanks in advance for any insight.

EDIT: I could also just clone the logic into the VOL indicator however I was trying to avoid this. But if I had to do it, it wouldn't be a big deal. It only calculates stuff for each bar once.


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks




Last Updated on December 28, 2016


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts