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 f.saeidi, Today, 12:14 PM
    7 responses
    16 views
    0 likes
    Last Post f.saeidi  
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by philmg, Today, 12:55 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by TradeForge, 04-19-2024, 02:09 AM
    2 responses
    32 views
    0 likes
    Last Post TradeForge  
    Started by aprilfool, 12-03-2022, 03:01 PM
    3 responses
    329 views
    0 likes
    Last Post NinjaTrader_Adrian  
    Working...
    X