Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RSS scripting

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

    RSS scripting

    Hello , I am trying to script the RSS indicator (relative strenght index) to enter a long trade only if the rss is below it's 20 value and short if it is above it's 80 value. I have not been able to make it work. Thank you for all your help!

    #2
    leyland,

    You want to do this through a strategy. I suggest you start with the Strategy Wizard tutorials here to get an example of how to do it: http://www.ninjatrader-support.com/H...tml?Overview34
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I have spent hours going though the tutorials. I am not looking at programming a simple RSI crossover. The RSS includes to moving averages. I am not sure what approach to take with this indicator. Here is the script below. It seems to be fine, however, buy orders are still being placed outside of the range i am programming.

      // Condition set 1
      if (RSS(10, 40, 5)[0] < 10)
      {
      EnterLong(
      5000, "");

      Comment


        #4
        leyland,

        What do you mean by "outside the range"? When you are backtesting remember that your entry orders go in at the open of the next bar because the signal bar has already closed and is untradeable.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          By range, I mean that it is triggering an order even when it is way above the 20 line. Am I to understand that my script below is correct. This is what I really getting at. Is it fine or is there a better way of scripting it using the wizard?

          Comment


            #6
            leyland, not sure I follow, the script appears to be ok, the final test is when you put it at work and track whether it's doing what it should or not. For this you may want to include visual helpers like drawing arrows on your trade entry conditions to check the validity of the generated signals.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            48 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            126 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            66 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X