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

Current price 7 tick moves over and above over and indicator

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

    Current price 7 tick moves over and above over and indicator

    Hi all, I'm trying to create an indicator that shows the current price 7 tick moves over and above over the mean plot of the DonchianChannel indicator for example. I mean if the current mean plot of the DonchianChannel is on 3200,25 the indicator has to show two horizontal lines, one on 3202 and other on 3198,50 (ES).
    I'm ataching and image as example.
    Thanks a lot!

    #2
    Hello zigzager,

    Thanks for your post.

    You can use the the horizontal line drawing tool or the line drawing tool to draw this line in an indicator. You can then draw the line at an offset of 7 * TickSize.

    Draw.HorizontalLine - https://ninjatrader.com/support/help...zontalline.htm

    Draw.Line - https://ninjatrader.com/support/help.../draw_line.htm

    Also to consider, you could use the Strategy Builder to generate this code. Please see the resource below for drawing in the Strategy Builder. You can unlock the code and then implement the same in an indicator.

    How to draw on a chart using the Strategy Builder - https://ninjatrader.com/support/help...ToDrawOnAChart

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks a lot Jim! I was trying to do that on NT7 but I'm no capable to do it using the Strategy Builder but I can in NT8.

      Comment


        #4
        Hello zigzager,

        The Strategy Wizard can be used to draw on the chart and generate NinjaScript syntax as well. Please see the resources below.

        Strategy Wizard Actions examples (How to draw on a chart) - https://ninjatrader.com/support/help...gy_actions.htm

        DrawHorizontalLine() - https://ninjatrader.com/support/help...zontalline.htm

        DrawLine() - https://ninjatrader.com/support/help...7/drawline.htm

        We look forward to assisting.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Barry Milan, Today, 10:35 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by WeyldFalcon, 12-10-2020, 06:48 PM
        14 responses
        1,428 views
        0 likes
        Last Post Handclap0241  
        Started by DJ888, Yesterday, 06:09 PM
        2 responses
        9 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        40 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Today, 08:51 AM
        2 responses
        16 views
        0 likes
        Last Post bill2023  
        Working...
        X