Need simple code for StochRSI please - NinjaTrader Programming | futures io social day trading
futures io futures trading


Need simple code for StochRSI please
Updated: Views / Replies:3,219 / 5
Created: by TraderTom Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Need simple code for StochRSI please

  #1 (permalink)
Just starting out...
USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 1 since Sep 2010
Thanks: 1 given, 0 received

Need simple code for StochRSI please

Hello there,
I use StochRSI indicator a lot in Ninjatrader, however It only display %K line.
I would like it to also display the %D line; StochRSI %D is a moving average of %K over %D Length bars.
I came up with some code by adding D as SMA of StochRSI but it doesn't show the correct results, the D line is way off. can someone help? can I just modify stochRSI.cs and get it done? if so what code should I add and where.

Thank you for your assistance
Tom

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



TraderTom View Post
Hello there,
I use StochRSI indicator a lot in Ninjatrader, however It only display %K line.
I would like it to also display the %D line; StochRSI %D is a moving average of %K over %D Length bars.
I came up with some code by adding D as SMA of StochRSI but it doesn't show the correct results, the D line is way off. can someone help? can I just modify stochRSI.cs and get it done? if so what code should I add and where.

Thank you for your assistance
Tom

Indicator below includes the D signal line. I have also enhanced the original period of the indicator . You can now select a different period for the RSI and the Stochastics K line. If you use the same period for both, the modified indicator displays the same results as the original indicator.

Now, I have to make some reserves. There are about 10 different versions of RSI and Stoch supplied by various charting packages. Some packages use the close, others the typical price to calculate the Stochastics. For smoothing I have seen simple, exponential and weighted smoothing, so you will not necessarily find exactly the same results as with other charting packages.

I intend to start a thread to explain all those different versions of these two indicators and how to use them, but it is not for now.

Attached Files
Register to download File Type: zip anaStochRSI.zip (9.8 KB, 217 views)
Reply With Quote
The following 12 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Trading Apprentice
Vancouver Canada
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
Posts: 2 since Feb 2013
Thanks: 1 given, 0 received

Thank you and a quick question

Hi There
Thank you very much for having posted the stochastic RSI code for Ninja
Where do I need to download it in order to use it and would it work with the new version of Ninja?
Thank you

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


mrback View Post
Hi There
Thank you very much for having posted the stochastic RSI code for Ninja
Where do I need to download it in order to use it and would it work with the new version of Ninja?
Thank you

@mrback: You can download the attachment from the post above. The indicator works with NinjaTrader 7, which is the latest version.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

Update Stochastic RSI

I have reworked the Stochastic RSI. Please disregard the four year old version from post #3.

The new version comes with the following enhancements, when compared to the NinjaTrader default indicator.

- The NinjaTrader default indicator calculates a raw Stochastics directly from the RSI, which is used as an input series. No further smoothing is possible. The enhanced version allows further smoothing of the raw K line. The default period for the K line smoothing is set to 1 (no smoothing).

- The indicator comes with a D line added. The D line is calculated as a SMA of the K line and can be used as signal line.

- The NinjaTrader default version uses the same lookback period for the RSI and the Stochastics. This is in line with the suggestions by Tushar Chande and Stanley Kroll. However, this version allows to select different periods for RSI and Stochastics.

- Code efficiency is improved, which results in a reduced CPU load, when the indicator is set to COBC = false.

Download link:

https://futures.io/download/ninjatrader-7/indicators/1552-download.html?view


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following 11 users say Thank You to Fat Tails for this post:

Reply



futures io > > > > > Need simple code for StochRSI please

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a simple code added to this indie PandaWarrior NinjaTrader Programming 4 January 21st, 2014 10:50 AM
Simple M.A. Summing Code - Won't compile in MC bobbakerr EasyLanguage Programming 12 July 22nd, 2011 09:57 AM
How to code a Simple Moving Average? Fat Tails NinjaTrader Programming 5 October 20th, 2010 09:04 PM
any ninjatrader programmers who can code simple strategies? mystiq NinjaTrader Programming 4 July 8th, 2010 10:45 AM
Missing something very simple on my code sharp2be NinjaTrader Programming 5 May 22nd, 2010 11:40 PM


All times are GMT -4. The time now is 11:42 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-12 in 0.11 seconds with 20 queries on phoenix via your IP 54.234.255.29