Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
DRAWTEXTFIXED in other than panel 1
Collapse
X
-
Hello Ct,
Thank you for your post.
You can draw in the Indicator Panel created when adding the Indicator to the chart or you can draw in the Price Panel.
You can dictate which of the two Panels the objects are drawn on with DrawOnPricePanel and Overlay.- DrawOnPricePanel: http://www.ninjatrader.com/support/h...pricepanel.htm
- Overlay: http://www.ninjatrader.com/support/h...t7/overlay.htm
Please let me know if I may be of further assistance.
-
Patrick
Just as a test I tried
Overlay = false;
DrawOnPricePanel = false;
DrawTextFixed("tag1", "XXX" , TextPosition.TopRight);
The panel is blank, no plots are displayed and not even the test text "XXX" is shown. If I comment out the DrawTextFixed my plots are fine.
I already had specified:
Overlay = false;
DrawOnPricePanel = false;
Tried the following but got the same result.
DrawText("tag1", "XXX", 0, 100, Color.Black);Last edited by ct; 06-10-2013, 06:41 AM.
Comment
-
Patrick
Here is my an exact code snippet:
protected override void Initialize()
{
Overlay = false;
DrawOnPricePanel = false;
// DrawTextFixed("tag1", "XXX" , TextPosition.TopRight);
DrawText("tag1", "XXX", 0, 0, Color.Black);
It just shows the indicator name on the far right of the panel with no parameters.
I am on version 13.
Wait................. Idiot on the receiving end. I was trying to draw in the initialize routine before I had a bar.Last edited by ct; 06-10-2013, 07:06 AM.
Comment
-
Patrick
Works perfect when this moron waits for the bars to paint first.
The ninja help text on DrawTExtField says "Draws text in one of 5 available pre-defined fixed locations on panel 1 (price panel) of a chart." so I assumed it could only be used for panel 1 but in actuality will draw in the panel specified.
Many thanks.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by smartromain, 03-13-2024, 01:42 AM
|
5 responses
92 views
0 likes
|
Last Post
by AndreiBig
Today, 06:08 AM
|
||
Started by Noerclou, Today, 04:55 AM
|
0 responses
4 views
0 likes
|
Last Post
by Noerclou
Today, 04:55 AM
|
||
Started by llanqui, Yesterday, 09:59 AM
|
2 responses
17 views
0 likes
|
Last Post
by llanqui
Today, 04:00 AM
|
||
Started by ThoriSten, Today, 03:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by ThoriSten
Today, 03:56 AM
|
||
Started by PhillT, 04-19-2024, 02:16 PM
|
3 responses
25 views
0 likes
|
Last Post
by mangel2000
Today, 03:04 AM
|
Comment