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 lorem, Today, 09:18 AM
          1 response
          4 views
          0 likes
          Last Post lorem
          by lorem
           
          Started by bmartz, Today, 09:30 AM
          0 responses
          3 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by GussJ, 03-04-2020, 03:11 PM
          14 responses
          3,244 views
          0 likes
          Last Post GussJ
          by GussJ
           
          Started by ArkansasClint, Today, 09:28 AM
          0 responses
          0 views
          0 likes
          Last Post ArkansasClint  
          Started by hazylizard, Today, 08:38 AM
          4 responses
          12 views
          0 likes
          Last Post hazylizard  
          Working...
          X