ninja background colour dependant on indicator - futures io
futures io futures trading



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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

ninja background colour dependant on indicator

(login for full post details)
  #1 (permalink)
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
 
Posts: 5 since Oct 2010
Thanks: 6 given, 1 received

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 futures io?
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Cross border fund flows / fx correlations
Treasury Notes and Bonds
Neurological explanations for trading Success
Psychology and Money Management
SimplerOptions
Trading Reviews and Vendors
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Big Mike in Ecuador
30 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 839 received


 
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
The following user says Thank You to vegasfoster for this post:
 
(login for full post details)
  #4 (permalink)
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
 
Posts: 5 since Oct 2010
Thanks: 6 given, 1 received

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
 
(login for full post details)
  #5 (permalink)
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,206 given, 4,333 received


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
 
(login for full post details)
  #6 (permalink)
NY
 
Experience: Advanced
Platform: Esignal, MBT navigator
Trading: Currencies
 
Posts: 2,526 since Jun 2009
Thanks: 1,396 given, 2,576 received

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=20210306-1806-20e0-994f-943b0677e339

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:	261
Size:	94.0 KB
ID:	27795  
Attached Files
Register to download File Type: zip MacdAvgSlope.zip (4.6 KB, 143 views)
Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
 
Posts: 5 since Oct 2010
Thanks: 6 given, 1 received

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
 
(login for full post details)
  #8 (permalink)
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,206 given, 4,333 received


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:	255
Size:	62.2 KB
ID:	27892  
Attached Files
Register to download File Type: zip StochasticColorBackGround.zip (9.9 KB, 150 views)
Reply With Quote
The following 4 users say Thank You to ThatManFromTexas for this post:
 
(login for full post details)
  #9 (permalink)
Christchurch, New Zealand
 
Experience: Intermediate
Platform: Ninja
Trading: cl
 
Posts: 5 since Oct 2010
Thanks: 6 given, 1 received

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
 
(login for full post details)
  #10 (permalink)
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,206 given, 4,333 received



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


futures io Trading Community Platforms and Indicators NinjaTrader > ninja background colour dependant on indicator


Last Updated on January 6, 2011


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts