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

Mathematical function

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

    Mathematical function

    Dear Forum,

    I have to draw on graph NT7, a function, like on a Cartesian plane.

    I wrote an indicator that identifies some significant points, such as the minimums that are in the attached figure.

    These two points (values​​) are the parameters of an algebraic equation that plots the indicator.

    You can draw a indicator from the first point, passing through the second?

    Thanks,
    Morphy
    Attached Files

    #2
    Hi Morphy, nice work - I'm however unsure what you now need to do with the results gathered, are you looking to supply the data points identified to a custom indicator, such as an SMA for example? For this you would need to store the points / values in a DataSeries and then calculate your custom indicator on this new series.

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      See everything in the file doc

      Thanks,
      Morphy
      Attached Files

      Comment


        #4
        If you like to draw a trendline from one starting point only, why not use a Ray?

        BertrandNinjaTrader Customer Service

        Comment


          #5
          For some reasons:

          a) I have to draw, too, other functions, not just linear

          b) For reasons of pixels, Ray is precise on points anchored, but on the extreme is incorrect.

          c) I do not know how you calculated the Ray, then I can not use it.

          Thanks,
          Morphy

          Comment


            #6
            Hi Morphy, then you would really need to custom code your objects needed - the DrawRay source is unfortunately not available. If you would like to use full C# custom drawing you could do so by overriding the default plot method, for an exmaple you can look into the CustomPlotSample we install per default with NT.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by KennyK, 05-29-2017, 02:02 AM
            2 responses
            1,279 views
            0 likes
            Last Post marcus2300  
            Started by fernandobr, Today, 09:11 AM
            0 responses
            0 views
            0 likes
            Last Post fernandobr  
            Started by itrader46, Today, 09:04 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by timmbbo, Today, 08:59 AM
            0 responses
            2 views
            0 likes
            Last Post timmbbo
            by timmbbo
             
            Started by bmartz, 03-12-2024, 06:12 AM
            5 responses
            33 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Working...
            X