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

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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jamestrader21x, Today, 07:55 AM
    2 responses
    3 views
    0 likes
    Last Post jamestrader21x  
    Started by ematias, Today, 08:03 AM
    0 responses
    3 views
    0 likes
    Last Post ematias
    by ematias
     
    Started by morrnel, Today, 07:31 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by TrippTraders, Yesterday, 09:22 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by testamind, Today, 06:02 AM
    1 response
    1 view
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X