set custom color - NinjaTrader Programming | futures io social day trading
futures io futures trading


set custom color
Updated: Views / Replies:2,701 / 8
Created: by Blackburn Attachments:1

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 don’t 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
 

set custom color

  #1 (permalink)
Elite Member
Malchow (Meckl.)
 
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Favorite Futures: Stocks
 
Posts: 17 since Mar 2011
Thanks: 15 given, 0 received

set custom color

Hallo,

i want to set custom colors in my strategy like this:

BarColor = "106, 142, 236";
CandleOutlineColor = Color.CornflowerBlue;
BackColor = Color.MidnightBlue;

but i canīt compile this. I get this message:

An implicit conversion from type "string ", "System.Drawing.Color"is not possible.

Do you have any ideas?
Thx Blackburn

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,599 received
Forum Reputation: Legendary



Blackburn View Post
Hallo,

i want to set custom colors in my strategy like this:

BarColor = "106, 142, 236";
CandleOutlineColor = Color.CornflowerBlue;
BackColor = Color.MidnightBlue;

but i canīt compile this. I get this message:

An implicit conversion from type "string ", "System.Drawing.Color"is not possible.

Do you have any ideas?
Thx Blackburn

Try

 
Code
BarColor = Color.FromArgb(106,142,236);

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Rristocrat
zurich
 
Futures Experience: Advanced
Platform: Sierra ahRrrr CQG ...
Favorite Futures: Bund, ES, ...
 
puma's Avatar
 
Posts: 963 since Aug 2010
Thanks: 7,268 given, 1,489 received

re

Hi all

is it possible to use Color.FromArgb(...) in an indicator so that a user can choose the rgb values under the indicator parameters. ?

For me it only works with Color.Blue, Color.Yellow - not with Color.FromArgb(...)

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,599 received
Forum Reputation: Legendary


puma View Post
Hi all

is it possible to use Color.FromArgb(...) in an indicator so that a user can choose the rgb values under the indicator parameters. ?

For me it only works with Color.Blue, Color.Yellow - not with Color.FromArgb(...)

Yes of course this is possible. You just need to declare the properties for three user selectable integers, which can then be used to create the color of your plot.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #6 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,260 since May 2010
Thanks: 153 given, 1,890 received


puma View Post
Hi all

is it possible to use Color.FromArgb(...) in an indicator so that a user can choose the rgb values under the indicator parameters. ?

For me it only works with Color.Blue, Color.Yellow - not with Color.FromArgb(...)

Users can just type the RGB values directly into the plot color property, no need to create three separate properties for each RGB value. Check out the NT8 wishlish thread, this was recently discussed there.

Reply With Quote
The following 3 users say Thank You to NinjaTrader for this post:
 
  #7 (permalink)
Rristocrat
zurich
 
Futures Experience: Advanced
Platform: Sierra ahRrrr CQG ...
Favorite Futures: Bund, ES, ...
 
puma's Avatar
 
Posts: 963 since Aug 2010
Thanks: 7,268 given, 1,489 received

post

here is the link to the post
https://futures.io/ninjatrader/13894-unofficial-nt8-wish-list-thread-4.html#post196727

TY all - will try that

Reply With Quote
 
  #8 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,599 received
Forum Reputation: Legendary


NinjaTrader View Post
Users can just type the RGB values directly into the plot color property, no need to create three separate properties for each RGB value. Check out the NT8 wishlish thread, this was recently discussed there.

Did not know this, thank you for your answer.

The screenshot below shows how to enter that information. In line with the different signatures for ColorFromArgb(), you can enter 4 values (the first one is the alpha value for determining opacity) or 3 values, which is equivalent to alpha = 255 (full color).


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #9 (permalink)
Rristocrat
zurich
 
Futures Experience: Advanced
Platform: Sierra ahRrrr CQG ...
Favorite Futures: Bund, ES, ...
 
puma's Avatar
 
Posts: 963 since Aug 2010
Thanks: 7,268 given, 1,489 received

re

the separator ( ";" or "," ) depends on your country settings

Reply With Quote

Reply



futures io > > > > > set custom color

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crosshair size/color DavidHP NinjaTrader Programming 4 November 15th, 2017 12:56 PM
ZeroLagHMA with color??? bugsbunny NinjaTrader Programming 11 July 20th, 2016 07:22 PM
Background color neilzep NinjaTrader 4 May 17th, 2011 11:58 PM
Set Background Color in EasyLanguage Big Mike EasyLanguage Programming 5 October 27th, 2010 01:45 PM
color bars in tradestation ford7k EasyLanguage Programming 1 September 10th, 2010 02:34 AM


All times are GMT -4. The time now is 03:15 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-11 in 0.10 seconds with 20 queries on phoenix via your IP 54.226.172.30