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 1,364 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 4 attachments




 
Search this Thread

Paint bars

  #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?
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090



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:	128
Size:	110.9 KB
ID:	150036   Click image for larger version

Name:	Sine Wave.png
Views:	128
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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts