NexusFi: Find Your Edge


Home Menu

 





Please help with RSI Strategy/ Study


Discussion in Sierra Chart

Updated
    1. trending_up 2,512 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617

I'm hoping someone can help with a simple study that I use in ThinkOrSwim and can be coded for Sierra Chart.

The premise is very simple - the study paints a continuous line on the price chart when the RSI is above 51 (entry or long threshold) or below 48 (exit or short threshold.) The user defines the length of RSI, in this case 34 and 55. Obviously two copies of the study would be loaded

Below screenshot is from today 9-12 on a one (1) minute chart /CL chart

Cyan (light blue) is RSI 34 (long/ entry)
Blue is RSI 55 (long/ entry)
Orange is RSI 34 (short/ exit) showing brief failure
Red is is RSI 55 (short/ exit) showing brief failure



Any help would be much appreciated. (I'm more of a hacker than a coder.)

Thank you

-William


Follow me on X Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: EdgeClear, FCM:Phillip, Data:Denali, Routing:Teton
Trading: YM RTY ES NQ
Posts: 480 since Nov 2009
Thanks Given: 222
Thanks Received: 608

This can easily be done with the Spreadsheet Study study.

If you want the details, post again.


Reply With Quote
  #3 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617


Yes sir, thank you

I use Infinity Futures Sierra Chart which has:

Spreadsheet Study
Spreadsheet System for Trading
Spreadsheet System/Alert

Build Custom Studies DLL
New/Open Custom Studies File

I'm fairly proficient/ pretty good in Excel, Open Office etc

Thank you

-William


Follow me on X Started this thread Reply With Quote
  #4 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: EdgeClear, FCM:Phillip, Data:Denali, Routing:Teton
Trading: YM RTY ES NQ
Posts: 480 since Nov 2009
Thanks Given: 222
Thanks Received: 608

Add the Spreadsheet Study study:
-Set the Chart Region to 1.
-Give it a name in the Spreadsheet Name field.
-On the Subgraphs tab, set the Draw Styles of SG1-SG4 to Dash. Set Line Styles and colors.
On the spreadsheet, put these formulas in cells K3-N3, respectively:
=IF(ID1.SG1@3<51,0,IF(AND(ID1.SG1@4<51,ID1.SG1@3>51),E3,K4))
=IF(ID2.SG1@3<51,0,IF(AND(ID2.SG1@4<51,ID2.SG1@3>51),E3,L4))
=IF(ID1.SG1@3>48,0,IF(AND(ID1.SG1@4>48,ID1.SG1@3<48),E3,M4))
=IF(ID2.SG1@3>48,0,IF(AND(ID2.SG1@4>48,ID2.SG1@3<48),E3,N4))
where ID1 is the RSI 34, and ID2 is the RSI 55; edit as necessary.

You could substitute the 51 and 48 with absolute references to user variables in H1 and H2:
$H$1
$H$2

Or you could substitute the 51 and 48 with references to the respective RSI's Line1 and Line2, assuming you set these to 51 and 48 in the RSI study:
ID1.SG2@3
ID1.SG3@3
ID2.SG2@3
ID2.SG3@3

You may want to edit cells K2-N2 with titles:
RSI 34 long
RSI 55 long
RSI 34 short
RSI 55 short


Reply With Quote
Thanked by:
  #5 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617

@tomgilb

Thank you very, very much for helping with this

I made a slight modification to the above code, syntax

For long entry (support) I changed E3, K4 and E3, L4 to D3 respectively

For short entry (resistance) I changed E3, M4 and E3, N4 to C3 respectively

-William


Follow me on X Started this thread Reply With Quote




Last Updated on September 16, 2016


© 2026 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 - Downloads - Top
no new posts