Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

need to draw a dot on an indicator in a sub-panel

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

    need to draw a dot on an indicator in a sub-panel

    i did several searches and couldn't find anything...
    i'm trying to draw a "signal dot" on a volume indicator in a sub-panel and i'm not having any luck - is there some line of code i need in initialize or onbarupdate to make sure the dot draws over a histogram bar in a sub-panel ?
    at the moment there is no dot being drawn - i gave the instruction as:
    {DrawDot ("GTABV"+CurrentBar, false, 1, upVolume[1] + SignalOffset, Color.LimeGreen);}

    upVolume[1] would be a histogram bar assigned a positive number in the upVolume DataSeries since the close is greater than the open of that bar
    if (Close[0] > Open[0])
    {
    upVolume.Set (Volume[0]);
    downVolume.Set (0);
    }

    forgot to mention - i do check to see if upVolume is != 0
    if (upVolume != 0 && upVolume >= Average[1])
    {DrawDot............ }

    thanks,
    w
    Last edited by stafe; 08-03-2014, 07:10 PM.

    #2
    Hello W,

    Thank you for your post.

    You will need to set DrawOnPricePanel to false in the Initialize() method: http://www.ninjatrader.com/support/h...pricepanel.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    30 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X