Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer - MA Slope

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

    Market Analyzer - MA Slope

    Hello, i searched in the forum and also tutorial but couldnt fin anything.

    I would like something very simple: to scan the market with the market analyzer i need an option that can measure the slope of a weighted moving average (also simple).
    Could you please help me Ninja?
    Thanks a lot

    #2
    Hello polo0202,

    You could make an Indicator for this purpose and then use the Indicator column in the MA.

    You would need to create an indicator that has 1 plot, from OnBarUpdate you could then plot the slope of an indicator:

    Code:
    Value[0] = Slope(WMA(20), 10, 0);
    https://ninjatrader.com/support/help...lightsub=slope
    https://ninjatrader.com/support/help...ghlightsub=WMA
    https://ninjatrader.com/support/help...ghtsub=addplot

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by polo0202 View Post
      Hello, i searched in the forum and also tutorial but couldnt fin anything.

      I would like something very simple: to scan the market with the market analyzer i need an option that can measure the slope of a weighted moving average (also simple).
      Could you please help me Ninja?
      Thanks a lot
      hello Jesse, and thanks for the reply.
      Since i have no idea on how to make an indicator i was wondering if in the Market Analyzer there is instead an option that shows the price percentage change over x periods. Would be the same thing as a slope of a moving average, maybe even better. I saw there is the Net Change, but i cant change the period,
      thanks again

      Comment


        #4
        Hello polo0202,

        The slope would not be able to be used by using the analyzer alone. For the slope an indicator would be needed to report that as a plot, that is because the slope is an analytical tool for scripting and not all tools.

        You can apply indicators like the SMA and adjust its period using the analyzer however adding other steps like a slope would require making that indicator. If you are interested in learning how to make indicators we could walk through the process of making the above mentioned code.

        I look forward to being of further assistance.


        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hyper, Yesterday, 11:10 PM
        1 response
        9 views
        0 likes
        Last Post timko
        by timko
         
        Started by Ousher, Today, 04:01 AM
        0 responses
        6 views
        0 likes
        Last Post Ousher
        by Ousher
         
        Started by kuxosude, Today, 02:17 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by PanicTrades, 05-10-2020, 08:45 AM
        6 responses
        72 views
        0 likes
        Last Post damon_achey  
        Started by soon123, Yesterday, 11:44 PM
        0 responses
        10 views
        0 likes
        Last Post soon123
        by soon123
         
        Working...
        X