• 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 Sparkyboy, Yesterday, 08:08 PM
        3 responses
        28 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by ttodua, Yesterday, 02:51 AM
        2 responses
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by PeterGolz, 01-17-2020, 10:42 AM
        8 responses
        45 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by GARZONJ, Today, 09:39 AM
        2 responses
        24 views
        0 likes
        Last Post Sparkyboy  
        Started by Obelixtrader, Yesterday, 08:16 AM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X