Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Short-Term Swings as published in Sept 2010's S&C Magazine

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

    Short-Term Swings as published in Sept 2010's S&C Magazine

    The "Short-Term Swings" indicator written by Josh shows trend by drawing trend lines in red / green.
    I am trying to build a strategy which sends a buy order if the line color is GREEN and a sell order if the color is RED. To get this, I wanted to build an IF ... THEN condition using the condition builder in NT strategy wizard. Here comes the problem. When I open up the "Short-Term Swings" indicator in the strategy wizard , I do not see any True/False parameter about the green / red lines. I believe that these events are certainly generated by the indicator for the plotting function. But I can not access it because these are directly given to the plotter function without using a parameter. Sadly I am not a programmer otherwise I would have been able to do.

    I am seeking help from the author of this indicator (Josh) or other forum members for chnages in the code so that the parameter for color is exposed.

    #2
    Hello,

    Thanks for the forum post.

    What you would need to do is add these changes into the indicator itself unfortunately since they are not designed in by default.

    To so this you will want to use this sample

    BrettNinjaTrader Product Management

    Comment


      #3
      maybe a bit late, but because I didn't find a real solution for the "non-C#programmer", I thought the following strategy might be helpfull to all who want to experiment with the ShortTermSwings indicator in a strategy from within the strategy builder.

      The attached strategy goes long when the Shorttermswings indicator becomes green, and goes short when it goes red.
      This strategy can be eddited in the strategybuilder if you would like to add improvements....


      Marco


      update 10/27/2011
      added stoplosss and profit target to strategy so it has some configurable parameters, in order to use it in the strategy optimizer
      Attached Files
      Last edited by marcow; 10-27-2011, 01:10 PM.

      Comment


        #4
        Hi marcow, thanks for sharing!
        AustinNinjaTrader Customer Service

        Comment


          #5
          Marco...check your NT PM, please.

          Thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          649 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X