Conversion of TradingView indicator into NT8 - futures io
futures io



Conversion of TradingView indicator into NT8


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Conversion of TradingView indicator into NT8

(login for full post details)
  #1 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
 
Posts: 62 since Oct 2020
Thanks: 49 given, 54 received

Hello FIO,

Can someone convert this TradingView indicator into NT8?

//@version=3
study("Blended Candles")
theEMA = input(50)
theEMA2 = input(200)
lb = input(3,title = "Lookback")
out = ema(close, theEMA)
out2 = ema(close, theEMA2)
hc = highest(high,lb + 1)
oc = open[lb]
cc = close
lc = lowest(low,lb + 1)

plot(out, color=red,linewidth=2,transp=30)
plot(out2, color=green,linewidth=2,transp=30)
plotcandle(oc, hc, lc, cc, color = oc < cc ? green : red , wickcolor = white , bordercolor = white)

Attached Thumbnails
Click image for larger version

Name:	blended.png
Views:	63
Size:	51.2 KB
ID:	328090  
Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
IKYP - How I solved email troubles on VPS
NinjaTrader
CME 2023 Fee Increases (MES +16%!)
Traders Hideout
strategy builder help
Traders Hideout
Finding the Lowest Price and its Location in a Variable …
ThinkOrSwim
Sierra Chart Teton_Denali vs TT Platform
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on futures io
1 Tick from the ES/Per day
18 thanks
What if a broker declare bankruptcy!!! Ftx first whose next?
12 thanks
HFT Algo: anyone doing HFT here?
8 thanks
Want your NinjaTrader indicator created, free?
7 thanks
commission
7 thanks
 
(login for full post details)
  #2 (permalink)
 Tasker_182 
Legendary Market Wizard
Cedar Rapids, iowa
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
 
Tasker_182's Avatar
 
Posts: 708 since Aug 2009
Thanks: 471 given, 1,371 received


Abusamjad91 View Post
Hello FIO,

Can someone convert this TradingView indicator into NT8?

//@version=3
study("Blended Candles")
theEMA = input(50)
theEMA2 = input(200)
lb = input(3,title = "Lookback")
out = ema(close, theEMA)
out2 = ema(close, theEMA2)
hc = highest(high,lb + 1)
oc = open[lb]
cc = close
lc = lowest(low,lb + 1)

plot(out, color=red,linewidth=2,transp=30)
plot(out2, color=green,linewidth=2,transp=30)
plotcandle(oc, hc, lc, cc, color = oc < cc ? green : red , wickcolor = white , bordercolor = white)


I'm not familiar with TradingView code so I took a stab at this. As near as i can tell the indicator does not use the values of either of the EMAs in the bar calculations so I left those off. You can easily add EMAs to the chart in NinjaTrader.

In calculating the candles I'm understanding (I think) that:
1) Close of the candle is the real close of the source candle so no changes there.
2) The Open of the candle is from the Candle from the lookback period (default is 3 so for discussion we can assume we use the Open price of the 3rd candle back, whatever it may be)
3) The High is determined as the maximum high value over the lookback period plus 1
4) The Low is determined as the minimum low value of the lookback period plus 1.

Those 4 values then are used to create and color each candle.

To be clear these candle representations DO NOT correctly show actual price.

I've attached a screenshot that shows the indicator applied with default values to a ES 1 minute bar series, below that is a copy of the original 1 minute bars which clearly show no relationship. The screenshot also shows the two EMAs manually added.

I hope this is what you need.




Screenshot_20221117_040813

Be yourself; everyone else is already taken. Oscar Wilde
Attached Files
Register to download File Type: cs BlendedCandles.cs (9.5 KB, 7 views)
Reply With Quote
The following 3 users say Thank You to Tasker_182 for this post:
 
(login for full post details)
  #3 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
 
Posts: 62 since Oct 2020
Thanks: 49 given, 54 received


Thank you @ Tasker_182. Your work is much appreciated! This is what I was looking for.

Started this thread Reply With Quote
The following user says Thank You to Abusamjad91 for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Conversion of TradingView indicator into NT8


Last Updated on November 17, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2022 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts