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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          102 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          144 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          71 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X