Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Drawing a line on the price pane from the indicator from the lower pane
Collapse
X
-
Hello outsource,
Thank you for your response.
Can you provide the full condition or explain it further?
-
Yes,Thanks,Patrick.Originally posted by NinjaTrader_PatrickH View PostHello outsource,
Thank you for your patience.
If you change DrawOnPricePanel to True it will place all draw objects on the price panel, this will result in irregular plots in the indicator you sent us.
Since the DrawLine() idea is actually quite simple and does not need the indicator you sent, you could just create a new indicator that draws on the price panel and then add that to the same chart. You will then have the line you need.
The thing is,as you could see,the formula to draw a line a bit different then Volume[0] > Volume[1],to create a brand new indicator for that purpose.
Anyway,can you please do a little favour?Can you ask Paul to upload the indicator he`s created,but instead the line to draw a TrendChannel for that simple formula:
Volume[0] > Volume[1]
?
The TrendChannel should start with the Bar[0] and connect High[-1](if the Close[0]>Open[0]) and Low[-1](if Close[0]<Open[0])
Leave a comment:
-
Hello outsource,
Thank you for your patience.
If you change DrawOnPricePanel to True it will place all draw objects on the price panel, this will result in irregular plots in the indicator you sent us.
Since the DrawLine() idea is actually quite simple and does not need the indicator you sent, you could just create a new indicator that draws on the price panel and then add that to the same chart. You will then have the line you need.
Leave a comment:
-
Hello outsource,
Thank you for your response.
We will reference the thread when Dave returns. In the meantime, can you send the file over to us at platformsupport[at]ninjatrader[dot]com?
Leave a comment:
-
This Dave:Originally posted by NinjaTrader_Paul View PostHello outsource,
Thanks for your reply.
As tested the code by itself is fine so the issue may reside elsewhere in the indicator. This is where you might start breaking down the code and using debug/Print statements to find the root issue.
Neither Dave nor I know what indicator you are referring to.
Maybe just you have contacted another Dave.The indicator is the Volume signals.
Leave a comment:
-
Hello outsource,
Thanks for your reply.
As tested the code by itself is fine so the issue may reside elsewhere in the indicator. This is where you might start breaking down the code and using debug/Print statements to find the root issue.
Neither Dave nor I know what indicator you are referring to.
Leave a comment:
-
Hi ,Paul,Originally posted by NinjaTrader_Paul View PostHello outsource,
Thanks for your reply.
Do you see any related errors listed in the "log" tab of the control center after you apply the indicator?
I created a quick indicator to test your code and find that it does produce a line as expected (see attached). Note, I did modify the tag name so that we could see more than just the current line.
no,no errors related in the log.It just paints nothing on the chart.May be due to the indicator architecture.NinjaTrader Dave has got the indicator i want this addition for.Maybe you can contact him sand see if you can add this feature.
Leave a comment:
-
Hello outsource,
Thanks for your reply.
Do you see any related errors listed in the "log" tab of the control center after you apply the indicator?
I created a quick indicator to test your code and find that it does produce a line as expected (see attached). Note, I did modify the tag name so that we could see more than just the current line.
Leave a comment:
-
I tried but it doesn`t change a thingOriginally posted by NinjaTrader_PatrickH View PostHello outsource,
Thank you for your post.
Are you checking for the CurrentBar? For example:
Code:if(CurrentBar <= 1) return; if(Volume[0] > Volume[1]) { DrawLine("tag", 0, Low[0], -1, Low[0], Color.Blue); }
Leave a comment:
-
Hello outsource,
Thank you for your post.
Are you checking for the CurrentBar? For example:
Code:if(CurrentBar <= 1) return; if(Volume[0] > Volume[1]) { DrawLine("tag", 0, Low[0], -1, Low[0], Color.Blue); }
Leave a comment:
-
Are you referring to some specific DrawLine() method.Simple DrawLine method i used doesn`t work.Originally posted by koganam View PostYou just use DrawLine().
For e.g.,
I use this method to draw a line in the price pane:
DrawLine("low" + CurrentBar, true, 0, Low[0], - 1 Low[0], Color.Black, DashStyle.Solid, 2);
I put this line in the Volume indicator - nothing showed up in the Price pane.Last edited by outsource; 05-30-2015, 03:20 PM.
Leave a comment:
-
You just use DrawLine().Originally posted by outsource View PostHello All,
How do i draw a line on the price pane,using a signal from the volume indicator fromthe lower pane?For e.g., the logic is,for the simplicity sake:
if Volume[0] > Volume[1] ---> Draw a line on the Low[0],on the Price pane,with the 1 bar projection into the future.
Thanks to all in advance!
Leave a comment:
-
Drawing a line on the price pane from the indicator from the lower pane
Hello All,
How do i draw a line on the price pane,using a signal from the volume indicator fromthe lower pane?For e.g., the logic is,for the simplicity sake:
if Volume[0] > Volume[1] ---> Draw a line on the Low[0],on the Price pane,with the 1 bar projection into the future.
Thanks to all in advance!Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
125 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
85 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
84 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Leave a comment: