NexusFi: Find Your Edge


Home Menu

 





Help Modifying OBV indicator to plot standard candlesticks


Discussion in NinjaTrader

Updated
    1. trending_up 1,629 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 markus3500 
Cleveland OH
 
Experience: Intermediate
Platform: NINJATRADER 7
Trading: ES
Posts: 74 since Dec 2012
Thanks Given: 32
Thanks Received: 15

I am trying to get the the standard OBV indicator in NT7 to plot in standard candlesticks. The only choices available are "line" primarily among others like dot, dash..ect but no candlesticks. I have successfully applied HiekenAshi to it and it works great but I don't like the smoothing appearance of HeikenAshi. I would much prefer standard Candlesticks. Does anyone know if the existing indicator can be modified to add standard Candlesticks or another workaround that would work?


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
400 Million Barrels to Address Middle East Supply Disruption
Commodities
Energy Futures Shatter All-Time Daily Volume: 8.3 Millio …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
Blash's Avatar
 Blash 
Chicago, IL
Legendary Market Chamois
 
Experience: None
Platform: NT8,NT7,TWS
Broker: InteractiveBrokers, S5T, IQFeed
Trading: The one I'm creating in the present....Index Futures mini/micro, ZF
Posts: 2,307 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,511


markus3500 View Post
I am trying to get the the standard OBV indicator in NT7 to plot in standard candlesticks. The only choices available are "line" primarily among others like dot, dash..ect but no candlesticks. I have successfully applied HiekenAshi to it and it works great but I don't like the smoothing appearance of HeikenAshi. I would much prefer standard Candlesticks. Does anyone know if the existing indicator can be modified to add standard Candlesticks or another workaround that would work?

OBV is just a single value per bar from this...

 
Code
protected override void OnBarUpdate()
		{
			if (CurrentBar == 0)
				Value.Set(0);
			else
			{
				if (Close[0] > Close[1])
					Value.Set(Value[1]+ Volume[0]);
				else if (Close[0]  < Close[1])
					Value.Set(Value[1] - Volume[0]);
				else
					Value.Set(Value[1]);
Candlesticks are a DataSeries with 5 values OHLC vol. What would make up all this missing data?

Ron


...My calamity is My providence, outwardly it is fire and vengeance, but inwardly it is light and mercy...
The steed of this Valley is pain; and if there be no pain this journey will never end.
Buy Low And Sell High (read left to right or right to left....lol)
Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on June 10, 2016


© 2026 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 - Downloads - Top
no new posts