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

Connect the Bars with line

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

    Connect the Bars with line

    Can someone help me to draw the lines to connect HH /HL and LL/LH. Please do not worry about locating the HH/ HL and LL/LH.
    What I need how to plot the line once the above points are identified . In other words something like a ZIGZAG indicator. I tried to explore the that indicator. But it is little complicated to me as I am not a pro in C#.
    For the demonstration purposes you may try to connect every 15bars . Please connect the bars at the close of the bar.
    Attached Files

    #2
    Hello Simple,

    Thank you for your post.

    The ZigZag uses custom plotting, you can find the same code used in our CustomPlotSample under Tools > Edit NinjaScript > Indicator > CustomPlotSample.

    You could potentially just use the DrawLine() method in NinjaScript: http://www.ninjatrader.com/support/h...7/drawline.htm

    Comment


      #3
      Hello!
      Is there any up to date solution for this? I am unable to locate this "CustomPlotSample" file.
      I am looking for a solution to do this with AddPlot() not with DrawLine().
      Thanks for the answer.

      Comment


        #4
        Hello snbence, thanks for your note.

        The CustomPlotSample is still in NinjaTrader 7. If you are using NinjaTrader 8 it is in the NinjaScript editor Indicator folder titled SampleCustomRender. Plots would need a value for every bar, so it would be easier to do it with the line draw object otherwise you would need to calculate a point/slope formula to get a correct line.

        Please let me know if you have any further questions.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Working...
        X