NexusFi: Find Your Edge


Home Menu

 





HARSI


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 7 posts (14 thanks)
    2. looks_two Kharmaz with 4 posts (0 thanks)
    3. looks_3 dR5ERNCmCmUYmDcU with 3 posts (0 thanks)
    4. looks_4 ShadowFox with 1 posts (0 thanks)
    1. trending_up 7,656 views
    2. thumb_up 15 thanks given
    3. group 15 followers
    1. forum 16 posts
    2. attach_file 5 attachments




 
Search this Thread

HARSI

  #1 (permalink)
 JC195461 
Redondo Beach, CA
 
Experience: Beginner
Platform: TOS & TS
Trading: Options
Posts: 25 since Feb 2013
Thanks Given: 6
Thanks Received: 14

Hello Everybody,

Does anyone on NT-8 have or could program this Indie?



Thank you,

Jeff

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
How to apply profiles
Traders Hideout
What broker to use for trading palladium futures
Commodities
 
  #2 (permalink)
utilizator
Moncton Canada
 
Posts: 8 since Nov 2017
Thanks Given: 0
Thanks Received: 7

Hi Jeff,

The author's introduction at ht tps ://ww w. tradingview. co m/script/1o4oWbEx-Heikin-Ashi-RSI-Oscillator/
provides the script in Pine Script language ht tps ://ww w. tradingview. c om/pine-script-docs/en/v4/Introduction. ht ml

I might be able to translate it to C# for NT8.

Best,
Adrian

Reply With Quote
Thanked by:
  #3 (permalink)
 
dR5ERNCmCmUYmDcU's Avatar
 dR5ERNCmCmUYmDcU 
Tampa, FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: MES, MNQ
Posts: 45 since Nov 2020
Thanks Given: 4
Thanks Received: 5


Adrian,
Thanks for your reply for this HARSI indicator for NT8. eagerly waiting for this, please keep us posted. Thanks

Reply With Quote
  #4 (permalink)
 
dR5ERNCmCmUYmDcU's Avatar
 dR5ERNCmCmUYmDcU 
Tampa, FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: MES, MNQ
Posts: 45 since Nov 2020
Thanks Given: 4
Thanks Received: 5

I had tried using this on two different monitors but the issue on tradingview.com is futures chart is delayed with 10 mins , which is a big issue.

Reply With Quote
  #5 (permalink)
 
dR5ERNCmCmUYmDcU's Avatar
 dR5ERNCmCmUYmDcU 
Tampa, FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: MES, MNQ
Posts: 45 since Nov 2020
Thanks Given: 4
Thanks Received: 5

Hello Andrian - any idea if this is available in NT* ? awaiting for this one. please let me know. Thanks in advance.

Reply With Quote
  #6 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

I got started on this, after spending some time trying to understand the intricacies of pinescript.

Got the basic functionality working, which is basically getting it to draw the candles(image just shows comparisons between the TV and NT versions, and smoothing vs non-smoothing on each).

But this indie has a lot of stuff in it, so it may take a while.

Also, I probably won't have any time to work on it this week, so it may be a minute.

Unless someone gets to it before I do, I'll eventually finish this one.

Attached Thumbnails
Click image for larger version

Name:	2022-03-20_194029.png
Views:	304
Size:	138.0 KB
ID:	323035  
Reply With Quote
Thanked by:
  #7 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

Would someone assist with coding HARSI/ RSI Divergence indicator below from TradingView to NT8?
adopted from: https://www.tradingview.com/script/4VKd87zy-RS-RSI-Divergence-Candles-V2/



study(title="[RS]RSI Divergence Candles V2")
useHL = input(title='Use high/low series for mapping the wicks?', type=bool, defval=false)
src = input(title='Source Series:', type=source, defval=close)
fast_length = input(title='Fast Length:', type=integer, defval=8)
slow_length = input(title='Slow Length:', type=integer, defval=55)
smooth = input(title='Smooth:', type=integer, defval=10)
overbought = input(title='Overbought Level:', type=float, defval=70)
oversold = input(title='Oversold Level:', type=float, defval=30)

fast_rsi = rsi(src, fast_length)
slow_rsi = rsi(src, slow_length)

smooth_fast_rsi = sma(fast_rsi, smooth)
smooth_slow_rsi = sma(slow_rsi, smooth)

rsi_high = useHL ? max(rsi(high, fast_length), rsi(high, slow_length)) : max(fast_rsi, slow_rsi)
rsi_low = useHL ? min(rsi(low, fast_length), rsi(low, slow_length)) : min(fast_rsi, slow_rsi)
//#9ce0b2//#e0b29c
isBull=smooth_fast_rsi>=smooth_slow_rsi
isExp=abs(smooth_fast_rsi-smooth_slow_rsi)>=abs(smooth_fast_rsi[1]-smooth_slow_rsi[1])
plotcandle(smooth_slow_rsi, rsi_high, rsi_low, smooth_fast_rsi, title='rsi bars', color=isBull and isExp?green:isBull and not isExp?#9ce0b2:not isBull and isExp?maroon:#e0b29c)

hline(100, color=black)
hline(overbought, color=maroon)
hline(50, color=gray)
hline(oversold, color=green)
hline(0, color=black)

Reply With Quote
  #8 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

Mostly works.

Only real outstanding issue... One parts of it is taking a stochastic OF the RSI. THe crossovers are the similar(thats the point of the K/D lines), but it bothers me that they are not humping out the same way when it makes peaks/troughs.

Its likely just something in pinescript I'm not understanding.

Attached Thumbnails
Click image for larger version

Name:	2022-03-25_104842.png
Views:	237
Size:	189.8 KB
ID:	323184  
Reply With Quote
Thanked by:
  #9 (permalink)
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157


forrestang View Post
Mostly works.



Only real outstanding issue... One parts of it is taking a stochastic OF the RSI. THe crossovers are the similar(thats the point of the K/D lines), but it bothers me that they are not humping out the same way when it makes peaks/troughs.



Its likely just something in pinescript I'm not understanding.

Did you catch the simple moving average on the stochastic? Looks like the default sma is 3.

Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


Howdy,

Yeah I was sure to do that in many different ways. It is both in the creation of the K-line and the smoothing of K-line to produce the D-line.

I've tried using all the stochastic functions in NT, and some of them are close... but its not where it should be.

I recently just wrote the same stochastic function(the base on that does not smooth) as in the pinescript library... and THEN smoothed it w/the SMA, and I think this one is the closest.

But its still not right. Circled a few spots.
2022-03-25_211858

Reply With Quote




Last Updated on April 5, 2022


© 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