• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Coloring SMA indicator based on slope

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

    Coloring SMA indicator based on slope

    Hi,

    I would like to color my 50SMA based on its slope. I found some sample indicators and am starting to get a sense of how the code works but i have not been able to successfully edit my SMA.

    I tried the sample script i found on this forum but it draws a lower and higher SMA and not the actual line.

    I would really appreciate if someone could provide me with a simple script that would draw a basic SMA and color the line based on the slope.

    I have limited programming knowledge but i am working on improving. Thanks a lot for helping me in the meantime

    #2
    reno,

    You can use the following video to help you learn : http://www.youtube.com/watch?v=JZpo01eSO9c

    Here is a link to our educational resources : http://www.ninjatrader.com/support/h...indicators.htm

    Also please find attached a ColoredSMA indicator you can adapt for your uses.
    Attached Files
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Hey Adam,

      Thank you very much, the video is awesome, exactly the kind of stuff I needed (and more).

      Comment


        #4
        reno,

        I am glad you liked it. I am not sure if we will have more videos like that made anytime in the near future but it's at least a good way to get some idea where to start.

        Actually, I forgot to add something :

        http://ninjalaunchpad.com/
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Stefan1982, Today, 09:26 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by ArmKnuckle, Today, 03:08 PM
        0 responses
        4 views
        0 likes
        Last Post ArmKnuckle  
        Started by Mykro, Today, 02:51 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_BrendanC  
        Started by 5element, Today, 02:46 PM
        0 responses
        7 views
        0 likes
        Last Post 5element  
        Started by darkgreen, Today, 09:36 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X