Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Pattern with SMA

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

    Chart Pattern with SMA

    Hi,

    How can I code a specific chart pattern to light up ONLY when it closes below a specific SMA?

    #2
    Hello joeyfreshwater,

    Thanks for your post and welcome to the NinjaTrader forums!

    You would need to create the logic of the chart pattern and combine it with the logic of the current bars close relative to the current value of the SMA.

    Depending on what chart pattern you need, you may be able to use the indicator "CandleStickPatterns" in your NinjaTrader. When the indicator detects the selected pattern it will produce a signal of +1.

    To "light" up the chart pattern, there are a number of means to draw attention to the pattern, it just depends on what you would like to do.

    If you are not familiar with Ninjascript, which is based on C#, you can walk through a tutorial here: https://ninjatrader.com/support/help...indicators.htm

    If you are not familiar with C# programming language you can do an online search for C# tutorials.

    In addition, you are welcome to attend the free Ninjascript webinar: https://ninjatrader.com/Webinar/NinjaScript-Editor-401

    If you cannot attend, you can view a previous recording here: https://www.youtube.com/watch?v=H7aD...We0Nf&index=15

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X