NexusFi: Find Your Edge


Home Menu

 





ninja background colour dependant on indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kiwihsv with 4 posts (0 thanks)
    2. looks_two ThatManFromTexas with 3 posts (4 thanks)
    3. looks_3 Eric j with 1 posts (5 thanks)
    4. looks_4 vegasfoster with 1 posts (1 thanks)
    1. trending_up 5,813 views
    2. thumb_up 10 thanks given
    3. group 2 followers
    1. forum 9 posts
    2. attach_file 4 attachments




 
Search this Thread

ninja background colour dependant on indicator

  #1 (permalink)
 kiwihsv 
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
Posts: 5 since Oct 2010
Thanks Given: 6
Thanks Received: 1

Can someone please give me some guidence. I want to colour my ninja trader background dependant on an indicators levels. For example lets say i only want to trade when the stockhastic's are above 60. I want to colour the the chart background to say grey as a no trade zone when the indicator below 60. How do i do it? in the simplist terms please. Thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #3 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


 
Code
 
if (Condition 1)
{
BackColor = Color.Red;
}
 
else if (Condition 2)
 
{
BackColor = Color.Green;
}

else if...
 


if you need more help pm me

Reply With Quote
Thanked by:
  #4 (permalink)
 kiwihsv 
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
Posts: 5 since Oct 2010
Thanks Given: 6
Thanks Received: 1

Hi Vegas

Thanks for your reply. I cant pm as this was my first post and i need 5 to pm. I am hopeless at this computer stuff. So do i go to Tools=> Edit ninjascript=> indicator then select the indicator i want. eg stockhastic? Then would i insert what you wrote in lines 70 down and if i want the chart grey when the stkhst is above 60 would it be

if (<60)
{
backColor = Color.Grey; ?

Thanks for your help i really appreciate it.

Cheers
Mike

Started this thread Reply With Quote
  #5 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,348


kiwihsv View Post
Can someone please give me some guidence. I want to colour my ninja trader background dependant on an indicators levels. For example lets say i only want to trade when the stockhastic's are above 60. I want to colour the the chart background to say grey as a no trade zone when the indicator below 60. How do i do it? in the simplist terms please. Thanks in advance.

You would need to get someone to write a simple indicator to do that.

What version of Ninja Trader are you on?

Many people use an OverBought and an Oversold threshold , say 80 and 20.

Do you want a color if the stocastic goes below 20 , or just a color for over 60 and a color for under 60?

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #6 (permalink)
 Eric j 
NY
 
Experience: Advanced
Platform: Esignal, MBT navigator
Trading: Currencies
Posts: 2,507 since Jun 2009
Thanks Given: 1,396
Thanks Received: 2,576

You can easily build simple indis with ninja . This I made quickly to paint the background according to the slope of the Macd Avg via ninjascript strategy ---> cut and paste the variables of the strategy ----> paste into a ninjascript new indicator ----> edit the code accordingly and compile . Open the code to this indi and have a look around - you wont break it . See ninja help guide (ninjascript overview) for details -

http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?subid1=20240327-2130-10f0-87d9-b5abd94fd752

Or you can pay a few bucks to have a ninja consultant do it for you . For my money its a good investment of time and resources to learn a little C# , its easier than it looks and itll open up the door to you for making indis .

Attached Thumbnails
Click image for larger version

Name:	simple.jpg
Views:	393
Size:	94.0 KB
ID:	27795  
Attached Files
Elite Membership required to download: MacdAvgSlope.zip
Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 kiwihsv 
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
Posts: 5 since Oct 2010
Thanks Given: 6
Thanks Received: 1

Thanks all for your replies. @tmft i am on version 7 and i want to take trades only when an indicator is above a certain level so my theory was if i can color the chart a grey color when it is below that level to help stop me taking trades. I'll have a play around with your one Eric. Thanks.

Started this thread Reply With Quote
  #8 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,348


kiwihsv View Post
Thanks all for your replies. @tmft i am on version 7 and i want to take trades only when an indicator is above a certain level so my theory was if i can color the chart a grey color when it is below that level to help stop me taking trades. I'll have a play around with your one Eric. Thanks.

Here ya go...

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Attached Thumbnails
Click image for larger version

Name:	StochasticColorBackGround.png
Views:	439
Size:	62.2 KB
ID:	27892  
Attached Files
Elite Membership required to download: StochasticColorBackGround.zip
Reply With Quote
Thanked by:
  #9 (permalink)
 kiwihsv 
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
Posts: 5 since Oct 2010
Thanks Given: 6
Thanks Received: 1

Brilliant. Cheers Tmft. Bloody good of you. I must admit i was struggling a bit with it. So thank you again and to all that helped. I owe you one

Cheers
Mike

Started this thread Reply With Quote
  #10 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,348



kiwihsv View Post
Brilliant. Cheers Tmft. Bloody good of you. I must admit i was struggling a bit with it. So thank you again and to all that helped. I owe you one

Cheers
Mike

You should see all the cool FREE downloads in the Elite Section. Click on the Elite tab on the top of the screen and read all about it. (It's rather painless... )

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote




Last Updated on January 6, 2011


© 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