Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing a line on the price pane from the indicator from the lower pane

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_PatrickH
    replied
    Hello outsource,

    Thank you for your response.

    Can you provide the full condition or explain it further?

    Leave a comment:


  • outsource
    replied
    Originally posted by NinjaTrader_PatrickH View Post
    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.
    Yes,Thanks,Patrick.

    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:


  • NinjaTrader_PatrickH
    replied
    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:


  • outsource
    replied
    Originally posted by NinjaTrader_PatrickH View Post
    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?
    Hi,Patrick,

    Sent

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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:


  • outsource
    replied
    Originally posted by NinjaTrader_Paul View Post
    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.
    This Dave:



    Maybe just you have contacted another Dave.The indicator is the Volume signals.

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    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:


  • outsource
    replied
    Originally posted by NinjaTrader_Paul View Post
    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.
    Hi ,Paul,

    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:


  • NinjaTrader_PaulH
    replied
    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.
    Attached Files

    Leave a comment:


  • outsource
    replied
    Originally posted by NinjaTrader_PatrickH View Post
    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);
    			}
    I tried but it doesn`t change a thing

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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:


  • outsource
    replied
    Originally posted by koganam View Post
    You just use DrawLine().
    Are you referring to some specific DrawLine() method.Simple DrawLine method i used doesn`t work.

    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:


  • koganam
    replied
    Originally posted by outsource View Post
    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!
    You just use DrawLine().

    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!

Latest Posts

Collapse

Topics Statistics Last Post
Started by kinfxhk, 07-14-2026, 09:39 AM
0 responses
125 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 10:18 AM
0 responses
105 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 09:50 AM
0 responses
85 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 07:21 AM
0 responses
105 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-11-2026, 02:11 AM
0 responses
84 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Working...
X