How to program indicator to change background color? - MultiCharts | futures io social day trading
futures io futures trading


How to program indicator to change background color?
Updated: Views / Replies:1,441 / 7
Created: by gztanwei Attachments:2

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

How to program indicator to change background color?

  #1 (permalink)
Elite Member
toronto
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 33 since Sep 2009
Thanks: 3 given, 10 received

How to program indicator to change background color?

Hi guys,

I am trying to program an indicator to change background color when some conditions are met.

I thought this is done straight forward with PlotAttributes constructor, but I can't see the change of background color at all. Could you help?

 
Code
Plot1 = AddPlot(new PlotAttributes("", EPlotShapes.LeftTick, Color.Blue,Color.LightBlue,1,EPlotStyle.Solid,false));
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #2 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


gztanwei View Post
I am trying to program an indicator to change background color when some conditions are met.

I thought this is done straight forward with PlotAttributes constructor, but I can't see the change of background color at all. Could you help?

Background colour changes set by `PlotAttributes()` only affect the background of cells in the Scanner/Watchlist window. For indicators added to charts this value is discarded.

There's a tutorial on `PlotAttributes` here: Setting plot options programmatically in MultiCharts .NET: a closer look at PlotAttributes | TradingCode.net

Reply With Quote
The following user says Thank You to Jura for this post:
 
  #3 (permalink)
Elite Member
toronto
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 33 since Sep 2009
Thanks: 3 given, 10 received



Jura View Post
Background colour changes set by `PlotAttributes()` only affect the background of cells in the Scanner/Watchlist window. For indicators added to charts this value is discarded.

There's a tutorial on `PlotAttributes` here: Setting plot options programmatically in MultiCharts .NET: a closer look at PlotAttributes | TradingCode.net

Thanks. So is changing background color of the chart possible in MC?

Like in below chart in NT, I used different color to represent different "state" of the market.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #4 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


gztanwei View Post
Thanks. So is changing background color of the chart possible in MC?

Like in below chart in NT, I used different color to represent different "state" of the market.

That's not possible no, and certainly not possible like it is in NT.

You could do a workaround where you draw a bunch of plots, all with the same colour, to make it look like there's another background colour. But that's a lot of coding work and will very likely negatively impact the performance of your script. So a hack, nothing more.


Last edited by Jura; August 26th, 2015 at 12:54 PM. Reason: Unclear sentence
Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

Yes, you can do that nicely in MC.NET, too. You will have to use GDI for that, though.

Regards,
ABCTG


gztanwei View Post
Thanks. So is changing background color of the chart possible in MC?

Like in below chart in NT, I used different color to represent different "state" of the market.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Reply With Quote
 
  #6 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


ABCTG View Post
Yes, you can do that nicely in MC.NET, too. You will have to use GDI for that, though.

Never looked into that yet. Do you have a code example/snippet for that?

Reply With Quote
 
  #7 (permalink)
Elite Member
toronto
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 33 since Sep 2009
Thanks: 3 given, 10 received


Jura View Post
Never looked into that yet. Do you have a code example/snippet for that?

For NinjaTrader? For NT, it is the "BackColorAllSeries"

Example:
 
Code
			if(_CBBP_Signal_up>=1)	BackColorAllSeries[0]=Color.LightGoldenrodYellow;
			if(_CBBP_Signal_down>=1)	BackColorAllSeries[0]=Color.LightBlue;

Reply With Quote
 
  #8 (permalink)
Elite Member
toronto
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 33 since Sep 2009
Thanks: 3 given, 10 received


ABCTG View Post
Yes, you can do that nicely in MC.NET, too. You will have to use GDI for that, though.

Regards,
ABCTG

Thanks for the reply. Could you share more tips/samples on how to do it? I read this page but didn't get how to do it still.

4.7.1 Chart Custom Draw - MultiCharts

Reply With Quote

Reply



futures io > > > > How to program indicator to change background color?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Background Color function to an indicator michaelf NinjaTrader Programming 33 October 15th, 2014 06:34 PM
Trend indicator, color background jsengxx2 NinjaTrader Programming 1 April 7th, 2014 09:21 AM
Color change in an indicator line macro NinjaTrader Programming 9 March 16th, 2012 06:12 PM
Change color of LineOnClose from an indicator? ThatManFromTexas NinjaTrader 1 May 11th, 2011 07:00 PM
ADX color line change in DM Indicator Joshua 1 vs 8 NinjaTrader Programming 30 October 31st, 2010 04:10 PM


All times are GMT -4. The time now is 03:38 PM.

Copyright © 2017 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
Page generated 2017-12-17 in 0.10 seconds with 20 queries on phoenix via your IP 107.20.115.174