NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 02-02-2010, 05:09 AM   #1
richbois
Member
 
Join Date: Jan 2009
Posts: 67
Thanks: 7
Thanked 2 times in 2 posts
Default Parameters revert back to default

I have a problem and would appeciate some help

in Variables I have
private
Color vColor = Color.Black ;

In properties is have
[XmlIgnore()]
[Description(
"Banner and Add Color")]
[Category(
"Parameters")]
[Gui.Design.DisplayNameAttribute(
"Color for Banners")]
public Color vcolor
{
get { return vColor; }
set { vColor = value; }
}


now my problem is if I change the color in the parameters in the indicator parameter section when on the chart, every time I close and reopen Ninja i lose the new color setup even if i save workspace

I must be missing something simple as all the other parameters stay set except this one.

Thank you for the help
richbois is offline  
Reply With Quote
Old 02-02-2010, 05:35 AM   #2
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

Hi Rich,

You have to serialize the color input as per this thread.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 02-02-2010, 06:42 AM   #3
richbois
Member
 
Join Date: Jan 2009
Posts: 67
Thanks: 7
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by mrlogik View Post
Hi Rich,

You have to serialize the color input as per this thread.

Thank you that did the trick
richbois is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to make Backtest Parameters Dialog Box default to different settings? ChiTrader2000 Strategy Analyzer 9 09-07-2012 10:59 AM
What is the default trailing stop parameters in strategy wizard? Ninja B Strategy Development 6 12-01-2009 07:37 AM
Optimizer parameters Phyre Strategy Development 4 11-10-2009 02:42 PM
Optimizing Parameters doncarlosx Strategy Analyzer 3 04-10-2008 07:15 AM
SAR Parameters jrs Charting 1 05-22-2007 04:23 PM


All times are GMT -6. The time now is 09:43 PM.