Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawn Horizontal Line with price marker?

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

    Drawn Horizontal Line with price marker?

    When my indicator draws a horizontal line I would like it to also "issue" a price marker where that line is at. As the line is drawn and not based on a plot I can't see how to get that done.

    {
    DrawLine("SLup", false, 0, Low[0], 1, Low[0], upColor, DashStyle.Solid, 2);
    }

    This line is drawn only when my conditions are fulfilled. When the conditions change, the line disappears and I would like the price marker to then also disappear.

    Is there a way to accomplish that?

    sandman

    #2
    Hello sandman,

    A price marker can only be created by a plot using documented methods.

    Create a plot, set the pen of the plot to the color you want the marker to appear. Optionally, set each bars PlotColors to Color.Empty to hide the line on the chart but still show the marker.

    When you want the marker to disappear, set the pen color to Color.Transparent.

    PlotColors - http://ninjatrader.com/support/helpG...plotcolors.htm
    Plots - http://ninjatrader.com/support/helpGuides/nt7/plots.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    24 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    14 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
    10 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X