NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-12-2012, 01:29 PM   #1
murfinp
Senior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
Default Min Value in Pane

Hi

Is there any way to set a min plot value in a pane .. my lowest value is 15 but the mib always goes to 0

Thanks
murfinp is offline  
Reply With Quote
Old 01-12-2012, 01:43 PM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello murfinp,
Thanks for your post.

You can set a Min value in the following way

Code:
Plots[0].Min = 15;
You can put the code in Initialize

Let me know if I can be of any further assistance.

Regards,
Joydeep.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 01-12-2012, 01:47 PM   #3
murfinp
Senior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
Default

Hi Joydeep

Even with this it still plots from 0

protected override void Initialize()
{
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Orange),1), PlotStyle.Line, "IExtremelyHigh"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Green),1), PlotStyle.Line, "IVeryHigh"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.DarkViolet),1) , PlotStyle.Line, "IHigh"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Firebrick),1), PlotStyle.Line, "IAverage"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.DarkViolet),1) ,PlotStyle.Line,"ILow"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Green),1),Plot Style.Line,"IVeryLow"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Orange),1),Plo tStyle.Line,"IExtremelyLow"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Blue),3),PlotS tyle.Bar,"IVolume"));

Overlay = false;
BarsRequired = averageLength*2;
CalculateOnBarClose = true;

logVolume = new DataSeries(this,MaximumBarsLookBack.Infinite);

Plots[0].Min = 15;
Plots[1].Min = 15;
Plots[2].Min = 15;
Plots[3].Min = 15;
Plots[4].Min = 15;
Plots[5].Min = 15;
Plots[6].Min = 15;
Plots[7].Min = 15;

}
murfinp is offline  
Reply With Quote
Old 01-12-2012, 01:52 PM   #4
murfinp
Senior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
Default

Semmks to be coz the last plot type is bar ... changwe this and it works ok
murfinp is offline  
Reply With Quote
Old 01-12-2012, 02:02 PM   #5
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello murfinp,
Glad you figured it out.

Please let me know if I can assist you any further.
NinjaTrader_Joydeep 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
5 min and 15 min chart with strategy wizard osky1 ATM Strategies (Discretionary Trading) 1 01-02-2012 07:03 PM
How can I place MA for 5 min on 1 min chart? ljiangd Indicator Development 1 08-18-2011 08:55 PM
60 min EMA on 5 min chart kalalex Charting 5 07-09-2011 01:29 PM
Is it possible to create GDI objects in any pane other than Pane 1? David Lean Indicator Development 11 01-23-2010 11:40 AM
Accessing 5 min indicator on close of 1 min bar altrader Strategy Development 3 04-17-2008 01:47 PM


All times are GMT -6. The time now is 12:05 AM.