NexusFi: Find Your Edge


Home Menu

 





Help Modifying OBV indicator to plot standard candlesticks


Discussion in NinjaTrader

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




 
Search this Thread

Help Modifying OBV indicator to plot standard candlesticks

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Futures True Range Report
The Elite Circle
Build trailing stop for micro index(s)
Psychology and Money Management
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
  #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,311 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,518


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 Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on June 10, 2016


© 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