![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello murfinp,
Thanks for your post. You can set a Min value in the following way Code:
Plots[0].Min = 15; Let me know if I can be of any further assistance. Regards, Joydeep.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
|
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; } |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
|
Semmks to be coz the last plot type is bar ... changwe this and it works ok
|
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello murfinp,
Glad you figured it out. Please let me know if I can assist you any further.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |