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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    153 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    305 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    176 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X