Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New Indicator to track price

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

    New Indicator to track price

    Hello,

    Is there a simple way to make an Indicator which tracks the closing price of a candle but a certain amount of Price level below or above the closing price? For example, if a candle closes at a price of 1750, then the indicator plots a point 30 points below at 1720. It draws a construing line like a MA, but based on a fixed distance from the closing price.

    If the closing prices are falling one next to the other, it plots the same line but above the closing price.

    Thank you for your support!
    Kailash

    #2
    Hello Kailash,

    You add a plot or draw an object at the price you would like.

    For example
    AddPlot(Brushes.Blue, "myPlot");

    Value[0] = Close[0] - 30 * TickSize;
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea, Unfortunately I am NinjaScript illiterate. Can you show me how to do this with Strategy Wizard in NT 8?

      I find that easier.

      Thanks,
      Kailash

      Comment


        #4
        Hello Kailash,

        Attached is a screenshot of how this would look for a drawing object in the Strategy Builder.

        Below is a link to a forum post with helpful information about getting started with NinjaScript.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        44 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        58 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        35 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        95 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        59 views
        0 likes
        Last Post PaulMohn  
        Working...
        X