Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there an error in this code?

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

    Is there an error in this code?

    Dear friends,
    I made this code for an indicator for SMA to change color if:
    Close[0]>Close[1]; Close[0]>Close[2]; Close[0]<Close[1];Close[0]<Close[2].
    After I looked in "Indicators" and the "SlopofSMA" did not appear on it.
    Could someone help me, please?
    Attached Files
    Last edited by barrosco; 02-24-2009, 09:32 AM. Reason: Attach de code

    #2
    Did you press F5 to compile your code? Also, please see this tip because you will have errors when you run that script: http://www.ninjatrader-support2.com/...ead.php?t=3170
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ???

      Thanks Josh, but I fell very complicate to make this code.
      Last edited by barrosco; 02-24-2009, 11:53 AM. Reason: correction

      Comment


        #4
        barrosco,

        Let us say your indicator is called someIndicator.

        Create another indicator and just do this:
        Plot0.Set(SMA(someIndicator, 20)[0]);
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thans, I got another solution

          Dear Josh,
          Thanks for your gentle help.
          I found (forum) the Indicator Double MA Multi Colored, by JOSH. Thanks again.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          110 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          59 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          37 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          41 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          78 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X