NexusFi: Find Your Edge


Home Menu

 





Paint bars


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one manlinden with 3 posts (0 thanks)
    2. looks_two cory with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 wuileng with 1 posts (0 thanks)
    1. trending_up 2,057 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 4 attachments




 
Search this Thread
  #1 (permalink)
 manlinden 
Brussels Belgium
 
Experience: Intermediate
Platform: Ninjatrader
Trading: es
Posts: 4 since Feb 2012
Thanks Given: 7
Thanks Received: 0

Hi ,

I 'm new with NT programming.

I m using a SMI and Sinewave indicator on the Tos platform and trying to do the simular with NT.

Im looking to insert a paintbar fututre in the 2 indicators for NT I found and downloaded.

Can somebody help me ?
Thanks alot.


Attached Files
Elite Membership required to download: SMI.cs
Elite Membership required to download: HilbertSW.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Daytrading to swingtrading
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098



manlinden View Post
Hi ,

I 'm new with NT programming.

I m using a SMI and Sinewave indicator on the Tos platform and trying to do the simular with NT.

Im looking to insert a paintbar fututre in the 2 indicators for NT I found and downloaded.

Can somebody help me ?
Thanks alot.

"insert a paintbar fututre" ? any picture?


Reply With Quote
  #4 (permalink)
 manlinden 
Brussels Belgium
 
Experience: Intermediate
Platform: Ninjatrader
Trading: es
Posts: 4 since Feb 2012
Thanks Given: 7
Thanks Received: 0

Cory ,

Thanks for the reply.

I m looking for a paintbar future who changes the colour of the bars whenever the fast and the slow line of the SMI crosses.

Looking for the same future on the Sine Wave indicator when the Lead Wave and the Sine Wave crosses.

I added pictures.

Thanks.


Attached Thumbnails
Click image for larger version

Name:	SMI.png
Views:	241
Size:	110.9 KB
ID:	150036   Click image for larger version

Name:	Sine Wave.png
Views:	208
Size:	106.5 KB
ID:	150037  
Started this thread Reply With Quote
  #5 (permalink)
 wuileng 
Kuala Lumpur + Malaysia
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: ES
Posts: 26 since Aug 2012
Thanks Given: 13
Thanks Received: 9

You can use code similar to the following in your indicators to colour bars, in case you were wondering how this is done:
 
Code
if (Input[0] > 0)
{
	CandleOutlineColor 	= Color.DarkGreen;
	BarColor 		= Color.DarkGreen;
}
else if (Input[0] < 0)
{
	CandleOutlineColor 	= Color.Firebrick;
	BarColor 		= Color.Firebrick;
}

Just change the if conditions to match what you need, and the colors as well, so for your first example it would be something like this (not exactly this since you would need to declare SMI and I'm not sure if the plots are called Fast or Slow):
 
Code
if (SMI.Fast[0] > SMI.Slow[0])
{
	CandleOutlineColor 	= Color.DarkGreen;
	BarColor 		= Color.DarkGreen;
}
else if (SMI.Fast[0] < SMI.Slow[0])
{
	CandleOutlineColor 	= Color.Firebrick;
	BarColor 		= Color.Firebrick;
}

To change the colour of indicator plots, use:
 
Code
PlotColors[0][0] = Color.DarkGreen;


Reply With Quote
  #6 (permalink)
 manlinden 
Brussels Belgium
 
Experience: Intermediate
Platform: Ninjatrader
Trading: es
Posts: 4 since Feb 2012
Thanks Given: 7
Thanks Received: 0

Hi Wuileng,

Thank you for the suggestion . I ll give it a try and let you know if its works.

cheers


Started this thread Reply With Quote




Last Updated on July 1, 2014


© 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