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

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 :

        NinjaScript C# programming tutorial ebook available on Smashwords.com
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by llanqui, Yesterday, 09:59 AM
        2 responses
        15 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by ThoriSten, Today, 03:56 AM
        0 responses
        2 views
        0 likes
        Last Post ThoriSten  
        Started by PhillT, 04-19-2024, 02:16 PM
        3 responses
        18 views
        0 likes
        Last Post mangel2000  
        Started by TraderBCL, Today, 02:37 AM
        0 responses
        1 view
        0 likes
        Last Post TraderBCL  
        Started by mangel2000, Today, 02:23 AM
        0 responses
        10 views
        0 likes
        Last Post mangel2000  
        Working...
        X