Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Questions about "Slope"

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

    Questions about "Slope"

    Is it possible to implement a statement like the following in a strategy.....

    if (Slope WMA(5)[0] > Slope WMA(40[0])
    Do something

    #2
    Sure, I can tell the syntax is incorrect but concept is fine, please check Help Guide for correct syntax.
    RayNinjaTrader Customer Service

    Comment


      #3
      I'd recommend using the MASlopePlot indicator posted by Gumphrie.

      Its much better than the normal slope function in my opinion because it returns a value congruent with the way most people actually think about slope (degrees).

      The section in the manual related to slope should probably be clarified with an example result. It would likely save a lot of head scratching and redundant questions...

      Comment


        #4
        I agree Ray....problem is that The section in the manual related to slope should probably be clarified with an example. There is nothing there that refers to my question. Could you give me the correct syntax?

        Comment


          #5
          Not exactly sure what you want to achieve but e.g. this would be a correct usage of the Slope method:
          Code:
          Slope(WMA(10), startBarAgo, endBarAgo)
          Note: You need to set values for startBarAgo and endBarAgo

          Comment


            #6
            Thanks Dierk! So if I wanted to see if the slope of WMA(40) was less than the slope of WMA(5), how would that look?
            Last edited by edgeliner; 05-21-2008, 11:45 AM.

            Comment


              #7
              if (Slope(WMA(40), startBarAgo, endBarAgo) < Slope(WMA(5), startBarAgo, endBarAgo))
              // Do something
              RayNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              648 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              573 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              575 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X