NexusFi: Find Your Edge


Home Menu

 





RSI estimator


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one zug7 with 2 posts (0 thanks)
    2. looks_two sw88 with 2 posts (1 thanks)
    3. looks_3 rleplae with 2 posts (1 thanks)
    4. looks_4 choke35 with 1 posts (0 thanks)
    1. trending_up 1,737 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

RSI estimator

  #1 (permalink)
 sw88 
New Haven, CT/USA
 
Experience: Beginner
Platform: MT4, thinkorswim
Trading: stocks
Posts: 34 since Jul 2015
Thanks Given: 5
Thanks Received: 3

Can someone possibly help write a code or offer advice about estimate RSI? Basically, input value x period RSI, y level (say 70 or 30), then produce estimated closing price for x period RSI to show up somewhere on screen. Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
Deepmoney LLM
Elite Quantitative GenAI/LLM
Futures True Range Report
The Elite Circle
 

  #2 (permalink)
 PeakGrowth 
Sydney, Australia
 
Experience: Intermediate
Platform: Sierra Chart, IRESS
Broker: IB, IQFeed
Trading: ES, SPI, ASX stocks, options
Posts: 399 since Jun 2015
Thanks Given: 169
Thanks Received: 465


sw88 View Post
Can someone possibly help write a code or offer advice about estimate RSI? Basically, input value x period RSI, y level (say 70 or 30), then produce estimated closing price for x period RSI to show up somewhere on screen. Thanks!

Let me know if you find someone that can see into the future too, I got a few indicators I want them to code for me.

edit: I'm just being snarky don't worry about me

Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558



sw88 View Post
Can someone possibly help write a code or offer advice about estimate RSI? Basically, input value x period RSI, y level (say 70 or 30), then produce estimated closing price for x period RSI to show up somewhere on screen. Thanks!

If you google for "reverse engineering RSI" you will find literally thousands of links, codes included.
If you want to understand the logics behind reverse engineering the RSI and see some standard code for that, read e.g.

https://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&sqi=2&ved=0ahUKEwjz2vmzloPKAhULPRoKHcQ5DYAQFggrMAE&url=https%3A%2F%2Fwww.forex-tsd.com%2Ffiledata%2Ffetch%3Fid%3D1069096%26d%3D1405769764&usg=AFQjCNHfZp_LHtGnQ0hVGccJOy_7wO5Hxg&bvm=bv.110151844,d.ZWU&cad=rja

and

https://ftp://80.240.216.180/Transmission/%D0%A4%D0%B0%D0%B9%D0%BB%D1%8B/S&C%20on%20DVD%2011.26/VOLUMES/V21/C08/168SILI.pdf

Reply With Quote
  #4 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


sw88 View Post
Can someone possibly help write a code or offer advice about estimate RSI? Basically, input value x period RSI, y level (say 70 or 30), then produce estimated closing price for x period RSI to show up somewhere on screen. Thanks!

I have seen this question before (and answered before).
The answer will depend on the number of bars you add

As RSI is based on an average over a period, it depends how many new bars you are feeding into the formula

The answer will be :
if you add one bar : X
if you add two bars : X1 and X2 for the bar after
etc...

Of course you can calculate the valued needed for the next bar, in order to reach above 70 or below 30

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 sw88 
New Haven, CT/USA
 
Experience: Beginner
Platform: MT4, thinkorswim
Trading: stocks
Posts: 34 since Jul 2015
Thanks Given: 5
Thanks Received: 3

Thanks.
rleplae View Post
I have seen this question before (and answered before).
The answer will depend on the number of bars you add

As RSI is based on an average over a period, it depends how many new bars you are feeding into the formula

The answer will be :
if you add one bar : X
if you add two bars : X1 and X2 for the bar after
etc...

Of course you can calculate the valued needed for the next bar, in order to reach above 70 or below 30


Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 zug7 
auckland New Zealand
 
Experience: Intermediate
Platform: trading Blox, Tradestatio
Trading: futures
Posts: 7 since Oct 2014
Thanks Given: 1
Thanks Received: 1


sw88 View Post
Can someone possibly help write a code or offer advice about estimate RSI? Basically, input value x period RSI, y level (say 70 or 30), then produce estimated closing price for x period RSI to show up somewhere on screen. Thanks!

I don't like re-engineering the RSI. I wanted to know: Where does an instrument close so that the RSI is > 70 with tonight's close. And here is how I solved this:

Let's say this is a RSI with 20 bars. - I have done this for RSI with end of day data and it works just fine: Based on this example I would take the last 19 known closes and put it in a separate series and use yesterday's close as the assumed close for tonight and calculate the 20-day RSI. Let's say you want a higher close then the current RSI - there are 2 outcomes after calculating the RSI with these 20 values: the assumed close is already higher or it is lower than the desired RSI.

IF this assumed close is lower than the desired RSI and you want it higher : You can then code a loop in which you take this assumed close, increase the close by one tick, calculate the RSI again and check if it is higher. You repeat that until you find the first assumed close which is higher than the desired RSI. That is the close you are looking for. - If the first assumed close is already higher than the RSI you run through a similar loop but you subtract one tick until you find the first value which is lower than the RSI. You will then use the previous value which was the last close above the RSI.

I hope this makes sense.

Reply With Quote
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


zug7 View Post
I don't like re-engineering the RSI. I wanted to know: Where does an instrument close so that the RSI is > 70 with tonight's close. And here is how I solved this:

Let's say this is a RSI with 20 bars. - I have done this for RSI with end of day data and it works just fine: Based on this example I would take the last 19 known closes and put it in a separate series and use yesterday's close as the assumed close for tonight and calculate the 20-day RSI. Let's say you want a higher close then the current RSI - there are 2 outcomes after calculating the RSI with these 20 values: the assumed close is already higher or it is lower than the desired RSI.

IF this assumed close is lower than the desired RSI and you want it higher : You can then code a loop in which you take this assumed close, increase the close by one tick, calculate the RSI again and check if it is higher. You repeat that until you find the first assumed close which is higher than the desired RSI. That is the close you are looking for. - If the first assumed close is already higher than the RSI you run through a similar loop but you subtract one tick until you find the first value which is lower than the RSI. You will then use the previous value which was the last close above the RSI.

I hope this makes sense.

It is much more efficient to create the formula, rather than trial and error in a loop
the formula is fairly simple (linear algebra)

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 zug7 
auckland New Zealand
 
Experience: Intermediate
Platform: trading Blox, Tradestatio
Trading: futures
Posts: 7 since Oct 2014
Thanks Given: 1
Thanks Received: 1


rleplae View Post
It is much more efficient to create the formula, rather than trial and error in a loop
the formula is fairly simple (linear algebra)

It is certainly more efficient to create the formula. - Everyone to his own: I personally couldn't care less about efficiency in my computer statements. But I do care about the correct value. And not calculating the RSI with a different method gives me more confidence. - By the way with the same method any indicator (irrespective of its complexity) can be calculated.

You might not like it, but the user who has originally asked the question has now another option he/she could use.

Reply With Quote





Last Updated on January 1, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts