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!
See more
See less

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 mattbsea, Today, 05:44 PM
    0 responses
    4 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    31 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    20 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Working...
    X