Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddChartIndicator

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

    AddChartIndicator

    Hello,

    I have a strategy and I want to draw an indicator on the chart.


    if (State == State.DataLoaded)
    {
    AddChartIndicator(KeltnerChannel(distance, bars));
    }

    but it's not drawing anything.

    This used to work before.




    #2
    Hello jc.am,

    Thanks for your post.

    I don't see anything wrong with what you have posted unless the parameters of distance and bars are incorrect.

    When you apply the strategy, please check the "Log" tab of the NinjaTrader control center for any error messages related to the strategy (or indicator).
    Last edited by NinjaTrader_PaulH; 02-03-2021, 01:38 PM. Reason: Moved topic from "Platform Support" to "Strategy development"

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 11:51 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    24 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X