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 JC195461 with 1 posts (0 thanks)
    1. trending_up 7,696 views
    2. thumb_up 15 thanks given
    3. group 15 followers
    1. forum 16 posts
    2. attach_file 5 attachments




 
Search this Thread

HARSI

  #11 (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,333 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

Wow... I'm an idiot 🤔

I just noticed, that I had my NT chart set on a 180 min chart, so I was comparing the TV H4, to the NT H3.

After replicating the Stoch function from TV, it was working fine. You can even see in the last image I posted, that it had the wrong bar interval in that image too

It seems to match exactly now.
2022-03-26_130511

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
Funded Trader platforms
17 thanks
Trading with Intuition
14 thanks
ApexTraderFunding.com experience and review
13 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #12 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

Would you share the indicator file? Thanks.

Reply With Quote
  #13 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4


Does your indicator print four color histogram?




forrestang View Post
Wow... I'm an idiot 🤔

I just noticed, that I had my NT chart set on a 180 min chart, so I was comparing the TV H4, to the NT H3.

After replicating the Stoch function from TV, it was working fine. You can even see in the last image I posted, that it had the wrong bar interval in that image too

It seems to match exactly now.
2022-03-26_130511


Screenshot_20220(03-10-17-02-05)




Does your indicator print four color histogram?

Reply With Quote
  #14 (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,333 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

Howdy.

For the four-color plot of the bars, mine does not do that. That wasn't in the specs of the TV indicator I ported this from. So I'm not sure what conditions need to be used to produce that coloring.

I am going to eventually add it to the download section when I get a chance to work on it again. Everything works, but I have to add in basic error checking and all of the UI stuff. All the UI stuff is copy/paste from things I've already done, but it is tedious and can take a while.

When I get back to it, I will link it in this thread, and update my-indicator thread as usual.

Reply With Quote
Thanked by:
  #15 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

Here is the code from Tradingview:

study(title="HA_RSI")
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
  #16 (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,333 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

This looks like a different HA calculation.

The jayRogers version does not compare a slow RSI to a fast RSI at any point, to build the initial HA OHLC values.

Reply With Quote
Thanked by:
  #17 (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,333 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

LINK

Reply With Quote
Thanked by:




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