Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

print to market analyzer column

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

    print to market analyzer column

    Hi,
    I'd like to get this indicator to show the same Print () text in a market analyzer column. Or even show a 1 or a zero, maybe with a change in background color. How might I modify it? Is there a sample somewhere?

    protected override void OnBarUpdate()
    {
    if (Range()[0] > ATR(14)[0] * 2)
    {
    Print("1 ATR is exceeded");
    }
    }

    thanks,
    David
    Last edited by trader3000a; 01-18-2022, 08:37 AM.

    #2
    Hello trader3000a,

    Thanks for your post.

    You can add a transparent plot to your indicator (transparent so it does not change your display) and you can set the plot to some known value when the condition occurs, such as 1 when true or zero when false.

    In the market Analyzer, you would add the indicator through the indicator column. You can then use the 1 or 0 values to set up the cell conditions to display text and colors as you wish.

    For an example of a transparent plot, you can check out the indicator CandleStickPattern which has a plot identified as "PatternFound" which will be 1 when the selected pattern has been found or it will be a zero meaning the pattern has not been found.

    Here is a link to the market analyzer cell conditions: https://ninjatrader.com/support/help...lter_condi.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X