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 charlesugo_1, 05-26-2026, 05:03 PM
              0 responses
              66 views
              0 likes
              Last Post charlesugo_1  
              Started by DannyP96, 05-18-2026, 02:38 PM
              1 response
              149 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              162 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 05-10-2026, 08:12 PM
              0 responses
              99 views
              0 likes
              Last Post CarlTrading  
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              286 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Working...
              X