Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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)
Can you help answer these questions from other members on NexusFi?
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