NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 08-28-2008, 02:18 PM   #1
duck_CA
Senior Member
 
Join Date: Jan 2008
Location: sacramento CA
Posts: 181
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Yahoo to duck_CA Send a message via Skype™ to duck_CA
Default plotting price on right side of chart

is there a way to have the price plotted on top of the horizontal line on the right side of the chart?
currently i can set the color of the line and also would like to be able to have a option of a "dotted line" if at all possible



#region
Using declarations
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
///<summary>
/// Enter the description of your new custom indicator here
///</summary>
[Description("Enter the description of your new custom indicator here")]
[Gui.Design.DisplayName("CrunchLines")]
publicclass CrunchLines : Indicator
{
#region Variables
// Wizard generated variables
privatedouble l1i = 1; // Default setting for L1i
// User defined variables (add any user defined variables below)
#endregion
///<summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
///</summary>
protectedoverridevoid Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Magenta), PlotStyle.Line, "Plot0"));


Add(new Line(Color.FromKnownColor(KnownColor.White), 12739, "L01"));
Add(new Line(Color.FromKnownColor(KnownColor.White), 12494, "L01"));
Add(new Line(Color.FromKnownColor(KnownColor.White), 12109, "L01"));
Add(new Line(Color.FromKnownColor(KnownColor.White), 11584, "L01"));

CalculateOnBarClose = false;
Overlay =
true;
PriceTypeSupported =
false;
//double L1i = 13189.0;
PaintPriceMarkers =true;
duck_CA is offline  
Reply With Quote
Old 08-28-2008, 02:36 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is not possible.
NinjaTrader_Ray 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
Server Side vs. Client side Khepfere Connecting 4 07-05-2008 03:43 PM
Need Help with plotting line at the open price on the hour dpanglin Indicator Development 5 01-18-2008 10:33 AM
Server Side vs. Client Side solasc ATM Strategies (Discretionary Trading) 1 11-19-2007 12:06 PM
Right Side of Chart pgabriel Charting 1 07-17-2007 09:33 AM
Plotting text -> Y = price, X = time... funk101 Indicator Development 11 05-25-2007 01:25 PM


All times are GMT -6. The time now is 08:34 PM.