Announcement

Collapse
No announcement yet.

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.

    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?

        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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            161 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            310 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            245 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            350 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X