example:
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Chart Symbol Watermark
Collapse
X
-
Chart Symbol Watermark
I love the watermark on tradestation charts that allows me to see at a glance what instrument and timeframe I'm looking at. Is there a way to add this to ninjatrader?
example:
Tags: None
-
Hello,
Thank you for contacting us.
This is not a feature of NinjaTrader by default however this effect could be added to a chart with custom programming. If you are not a programmer yourself NinjaTrader Ecosystem is partnered with a number of NinjaScript consultants who could create this at your direction. For more information regarding NinjaScript consultants please contact me at Info [AT] NinjaTraderEcosystem [DOT] com.KyleNinjaTrader Customer Service
-
Originally posted by reach4thelasers View PostI love the watermark on tradestation charts that allows me to see at a glance what instrument and timeframe I'm looking at. Is there a way to add this to ninjatrader?
example:
https://www.tradestation.com/trading...Watermark.ashx
Comment
-
Here's my attempt at using DrawTextFixed for the watermark. Unfortunately this is currently drawn in front on the chart - which is obviously too obtrusive. My code is here, I have left comments in with the various properties I have tried to set to force the watermark to appear behind the bars, but I just can't seem to get it. Any ideas?
(attached a pic also)
[Description("Chart Symbol Watermark")]
public class Watermark : Indicator
{
#region Variables
// Wizard generated variables
private string myInput0 = @""; // Default setting for MyInput0
// User defined variables (add any user defined variables below)
#endregion
protected override void Initialize()
{
ZOrder = -1;
this.Panel = 0;
this.Overlay = true;
this.ZOrder = -99999999;
}
protected override void OnStartUp()
{
var instrumentName = this.Instrument.FullName;
var chartPeriod = this.BarsPeriod;
Font instrumentFont = new Font("Helvetica", 72f, FontStyle.Regular);
Font periodFont = new Font("Helvetica", 32f, FontStyle.Regular);
ITextFixed obj1 = DrawTextFixed("Instrument", instrumentName + "\n", TextPosition.Center, Color.LightGray, instrumentFont, Color.Transparent, Color.Transparent, 0);
ITextFixed obj2 = DrawTextFixed("Period", "\n\n"+ chartPeriod.ToString(), TextPosition.Center, Color.LightGray, periodFont, Color.Transparent, Color.Transparent, 0);
// obj1.SeparateZOrder = true;
// obj1.AutoScale = true;
// obj2.SeparateZOrder = true;
// obj1.Locked = false;
// obj2.AutoScale = true;
// obj2.Locked = false;
// this.ZOrder = -9999999;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
}
Comment
-
Comment
-
Originally posted by reach4thelasers View PostHere's my attempt at using DrawTextFixed for the watermark. Unfortunately this is currently drawn in front on the chart - which is obviously too obtrusive. My code is here, I have left comments in with the various properties I have tried to set to force the watermark to appear behind the bars, but I just can't seem to get it. Any ideas?
(attached a pic also)
ref: http://ninjatrader.com/support/helpG...ng_a_chart.htm. It is the 7th video on the page.
You could also try setting the SeparateZOrder property on the IText to true.
Comment
-
Originally posted by reach4thelasers View PostIf anyone knows a way of making DrawTextFixed appear in the background please let me know - until then here is what I have settled on.
Also I tried adding the same .cs file to a zip file with the proper folder structure and when I import it, I don't receive any errors. However, the indicator cannot be found in the Indicator list.
I'm a complete newbie to this stuff. Thanks.
Comment
-
Hello,
I am unsure of a good way to use the DrawTextFixed or any DrawingObject in general for 7 in this case as mentioned the ZOrder is kind of strange in NT7. This is one of the items addressed in the NT8 update.
For this, I would likely suggest to use the Plot override instead and control the Indicators ZOrder. This would assume that the indicator doesn't specifically need to plot over the bars. This also seemed to work when reloading the workspace, I would have to say that basing logic on the ZOrder in NT7 is flaky at best so there may be cases where this does not work as I had expected.
This appears behind the bars initially in my tests and is also affected by changing the charts ZOrder as expected. I would likely suggest opting for using the Plot Override to draw the water mark as close as possible to the X Axis or in the gap between the scale and the bar. Controlling the Min/Max autoscale may be a better approach than relying on controlling ZOrder in nt7.
For NT8, please ensure to use the NT8 sub forums for questions. You would likely need to post what you are trying in the NT8 section as the syntax between platforms is different.
I look forward to being of further assistance.Attached FilesJesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
147 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment