NexusFi: Find Your Edge


Home Menu

 





MA cross with bar paint


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Kharmaz with 8 posts (2 thanks)
    2. looks_two Silvester17 with 4 posts (21 thanks)
    3. looks_3 SamirOfSalem with 3 posts (4 thanks)
    4. looks_4 Kelsey with 2 posts (1 thanks)
      Best Posters
    1. looks_one Silvester17 with 5.3 thanks per post
    2. looks_two Michael Krall with 2 thanks per post
    3. looks_3 SamirOfSalem with 1.3 thanks per post
    4. looks_4 Kharmaz with 0.3 thanks per post
    1. trending_up 7,244 views
    2. thumb_up 32 thanks given
    3. group 6 followers
    1. forum 21 posts
    2. attach_file 5 attachments




 
Search this Thread

MA cross with bar paint

  #11 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

Would someone be able to convert the double ema to NT8? Thanks....

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
76 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #12 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 74 since Jan 2020
Thanks Given: 23
Thanks Received: 44


Kharmaz View Post
Would someone be able to convert the double ema to NT8? Thanks....

Here's a quick re-hash of NinjaTrader 8's built-in MA ribbons, modified to repaint bars and or backgrounds on Cross Above/Down.

I hope this helps.

Attached Files
Elite Membership required to download: fioMAcrossover.zip
Reply With Quote
Thanked by:
  #13 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4


Shukran Samir! Thank you.

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

Would anyone be able to code the Ripster 47 EMA Cloud from TradingView to NT8? It basically paints the gap between two moving averages.Thanks


//@version=4
study("Ripster EMA Clouds","Ripster EMA Clouds", overlay=true)
matype = input(title="MA Type", type=input.string, defval="EMA", options=["EMA", "SMA"])

ma_len1 = input(title="Short EMA1 Length", type=input.integer, defval=8)
ma_len2 = input(title="Long EMA1 Length", type=input.integer, defval=9)
ma_len3 = input(title="Short EMA2 Length", type=input.integer, defval=5)
ma_len4 = input(title="Long EMA2 Length", type=input.integer, defval=13)
ma_len5 = input(title="Short EMA3 Length", type=input.integer, defval=34)
ma_len6 = input(title="Long EMA3 Length", type=input.integer, defval=50)
ma_len7 = input(title="Short EMA4 Length", type=input.integer, defval=72)
ma_len8 = input(title="Long EMA4 Length", type=input.integer, defval=89)
ma_len9 = input(title="Short EMA5 Length", type=input.integer, defval=180)
ma_len10 = input(title="Long EMA5 Length", type=input.integer, defval=200)

src = input(title="Source", type=input.source, defval=hl2)
ma_offset = input(title="Offset", type=input.integer, defval=0)
//res = input(title="Resolution", type=resolution, defval="240")

f_ma(malen) =>
float result = 0
if (matype == "EMA")
result := ema(src, malen)
if (matype == "SMA")
result := sma(src, malen)
result

htf_ma1 = f_ma(ma_len1)
htf_ma2 = f_ma(ma_len2)
htf_ma3 = f_ma(ma_len3)
htf_ma4 = f_ma(ma_len4)
htf_ma5 = f_ma(ma_len5)
htf_ma6 = f_ma(ma_len6)
htf_ma7 = f_ma(ma_len7)
htf_ma8 = f_ma(ma_len8)
htf_ma9 = f_ma(ma_len9)
htf_ma10 = f_ma(ma_len10)

//plot(out1, color=green, offset=ma_offset)
//plot(out2, color=red, offset=ma_offset)

//lengthshort = input(8, minval = 1, title = "Short EMA Length")
//lengthlong = input(200, minval = 2, title = "Long EMA Length")
//emacloudleading = input(50, minval = 0, title = "Leading Period For EMA Cloud")
//src = input(hl2, title = "Source")
showlong = input(false, title="Show Long Alerts")
showshort = input(false, title="Show Short Alerts")
showLine = input(false, title="Display EMA Line")
ema1 = input(true, title="Show EMA Cloud-1")
ema2 = input(true, title="Show EMA Cloud-2")
ema3 = input(true, title="Show EMA Cloud-3")
ema4 = input(true, title="Show EMA Cloud-4")
ema5 = input(true, title="Show EMA Cloud-5")

emacloudleading = input(0, minval=0, title="Leading Period For EMA Cloud")
mashort1 = htf_ma1
malong1 = htf_ma2
mashort2 = htf_ma3
malong2 = htf_ma4
mashort3 = htf_ma5
malong3 = htf_ma6
mashort4 = htf_ma7
malong4 = htf_ma8
mashort5 = htf_ma9
malong5 = htf_ma10

cloudcolour1 = mashort1 >= malong1 ? #036103 : #880e4f
cloudcolour2 = mashort2 >= malong2 ? #4caf50 : #f44336
cloudcolour3 = mashort3 >= malong3 ? #2196f3 : #ffb74d
cloudcolour4 = mashort4 >= malong4 ? #009688 : #f06292
cloudcolour5 = mashort5 >= malong5 ? #05bed5 : #e65100
//03abc1

mashortcolor1 = mashort1 >= mashort1[1] ? color.olive : color.maroon
mashortcolor2 = mashort2 >= mashort2[1] ? color.olive : color.maroon
mashortcolor3 = mashort3 >= mashort3[1] ? color.olive : color.maroon
mashortcolor4 = mashort4 >= mashort4[1] ? color.olive : color.maroon
mashortcolor5 = mashort5 >= mashort5[1] ? color.olive : color.maroon


mashortline1 = plot(ema1 ? mashort1 : na, color=showLine ? mashortcolor1 : na, linewidth=1, offset=emacloudleading, title="Short Leading EMA1")
mashortline2 = plot(ema2 ? mashort2 : na, color=showLine ? mashortcolor2 : na, linewidth=1, offset=emacloudleading, title="Short Leading EMA2")
mashortline3 = plot(ema3 ?mashort3 : na, color=showLine ? mashortcolor3 : na, linewidth=1, offset=emacloudleading, title="Short Leading EMA3")
mashortline4 = plot(ema4 ? mashort4 :na , color=showLine ? mashortcolor4 : na, linewidth=1, offset=emacloudleading, title="Short Leading EMA4")
mashortline5 = plot(ema5 ? mashort5 : na, color=showLine ? mashortcolor5 : na, linewidth=1, offset=emacloudleading, title="Short Leading EMA5")

malongcolor1 = malong1 >= malong1[1] ? color.green : color.red
malongcolor2 = malong2 >= malong2[1] ? color.green : color.red
malongcolor3 = malong3 >= malong3[1] ? color.green : color.red
malongcolor4 = malong4 >= malong4[1] ? color.green : color.red
malongcolor5 = malong5 >= malong5[1] ? color.green : color.red

malongline1 = plot(ema1 ? malong1 : na, color=showLine ? malongcolor1 : na, linewidth=3, offset=emacloudleading, title="Long Leading EMA1")
malongline2 = plot(ema2 ? malong2 : na, color=showLine ? malongcolor2 : na, linewidth=3, offset=emacloudleading, title="Long Leading EMA2")
malongline3 = plot(ema3 ? malong3 : na, color=showLine ? malongcolor3 : na, linewidth=3, offset=emacloudleading, title="Long Leading EMA3")
malongline4 = plot(ema4 ? malong4 : na, color=showLine ? malongcolor4 : na, linewidth=3, offset=emacloudleading, title="Long Leading EMA4")
malongline5 = plot(ema5 ? malong5 : na, color=showLine ? malongcolor5 : na, linewidth=3, offset=emacloudleading, title="Long Leading EMA5")

fill(mashortline1, malongline1, color=cloudcolour1, transp=45, title="MA Cloud1")
fill(mashortline2, malongline2, color=cloudcolour2, transp=65, title="MA Cloud2")
fill(mashortline3, malongline3, color=cloudcolour3, transp=70, title="MA Cloud3")
fill(mashortline4, malongline4, color=cloudcolour4, transp=65, title="MA Cloud4")
fill(mashortline5, malongline5, color=cloudcolour5, transp=65, title="MA Cloud5")

Reply With Quote
  #15 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 74 since Jan 2020
Thanks Given: 23
Thanks Received: 44


Kharmaz View Post
Would anyone be able to code the Ripster 47 EMA Cloud from TradingView to NT8? It basically paints the gap between two moving averages.Thanks


If it suffices, i've added shading between MAs to the indicator already posted.

Color selections are now moved to the Plots group (way at the bottom).

If you want only the gap painted and not the MAs themselves, set the colors of the two MAs to Transparent or their opacity to 0.

I hope this helps.

Attached Files
Elite Membership required to download: fioMAcrossover.zip
Reply With Quote
Thanked by:
  #16 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

Thanks Samir. The ema cloud worked. Would you be able to help with converting and RSI histogram from Tradingview to NT8?

study(title="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
  #17 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

I need help with converting RSI histogram from Tradingview to NT8. Would anyone be able to assist? Thanks

study(title="RSI_Histogram")
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)
Screenshot_20220306-212401

Attached Thumbnails
Click image for larger version

Name:	Screenshot_20220306-212401.png
Views:	112
Size:	166.9 KB
ID:	322606  
Reply With Quote
  #18 (permalink)
SpartanGR77
Boston, MA
 
Posts: 2 since Jan 2023
Thanks Given: 0
Thanks Received: 0

Hey Kharmaz,

Just wondering if you ever found a ripster cloud for NinjaTrader? In the same boat, would like to get one. I tried the above but couldnt set it up like Ripsters. Thanks





Kharmaz View Post
Thanks Samir. The ema cloud worked. Would you be able to help with converting and RSI histogram from Tradingview to NT8?

study(title="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
  #19 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

@SamirOfSalem will you be able to convert Keltner Universal from NT7 to NT8?



Thanks

Reply With Quote
Thanked by:
  #20 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,497
Thanks Received: 26,292



Kharmaz View Post
@SamirOfSalem will you be able to convert Keltner Universal from NT7 to NT8?



Thanks

@Kharmaz, the indicator you have referenced and the link you have provided are from the FIO Downloads section, which is Elite-member only. (The system will not allow it to be downloaded by a non-Elite member. And if it were posted in a non-Elite thread, we would just delete the post.)

Elite members have paid for some benefits, and these are among them. Non-Elite members are certainly welcome, and it is everyone's choice whether to go the Elite route or not. (I would not bother doing so just for an indicator, btw . Only consider it if you think that what you have seen here is worth finding more of. Your call on that one.)

But this indicator will stay in the Elite area, sorry.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:




Last Updated on April 27, 2023


© 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