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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          68 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          39 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X