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

Vma

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

    Vma

    I have created a VMA(Close,4,2) using the indicators
    area in NT but can not create a custom indicator.

    The code I'm using is:

    // trying the VMA to plot
    double value = VMA(Close, 4,2)[0];
    Plot0.Set(Close[0]);

    I'm not sure if this is right or not.
    I have not done anything in the Indicator Wizard except hit
    ENTER as I have done in the past.

    I do get a plot on the screen but it doesn't match the
    VMA(Close,4,2) plot, which is what I want.

    -Stephen

    #2
    Try

    Plot0.Set(VMA(Close, 4,2)[0]);
    RayNinjaTrader Customer Service

    Comment


      #3
      It worked. I do appreciate the help here.
      (especially after I try and fail to do X for an hour)

      My plan is to use the VMA as the integral part of
      an indicator that will create a chart with paint bars.
      The idea is to take a (modified) VMA and use the slope
      to make either 5 (or maybe 7) different colored OHLC bars.

      I can see 'slope' has come up recently.

      The MSDN link doesn't work, as I believe someone
      mentioned. I'll try to read the previous posts on slope
      or find this math function somewhere.

      Any hints here are fine.

      To anyone interested in using slope in trading, my
      take is to use it in a VMA. The slope of a VMA changes
      faster than just about any other moving average.



      It's hard when I hit a wall, so thanks again.

      -Stephen
      Last edited by stephenszpak; 05-26-2008, 09:11 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by swestendorf, Today, 11:14 AM
      2 responses
      5 views
      0 likes
      Last Post NinjaTrader_Kimberly  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      4 responses
      13 views
      0 likes
      Last Post xiinteractive  
      Started by Mupulen, Today, 11:26 AM
      0 responses
      2 views
      0 likes
      Last Post Mupulen
      by Mupulen
       
      Started by Sparkyboy, Today, 10:57 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by TheMarlin801, 10-13-2020, 01:40 AM
      21 responses
      3,917 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Working...
      X