EasyLanguage OBV On Balance Volume Indicator - futures io
futures io futures trading



EasyLanguage OBV On Balance Volume Indicator


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 3 posts (18 thanks)
    2. looks_two Supio with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 jfan98 with 1 posts (0 thanks)
    1. trending_up 11,718 views
    2. thumb_up 18 thanks given
    3. group 8 followers
    1. forum 9 posts
    2. attach_file 3 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

EasyLanguage OBV On Balance Volume Indicator

(login for full post details)
  #1 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,313 given, 97,574 received

Here is my custom version of the OBV (On Balance Volume) indicator.

Plot 1, 2, 3 and 4 should be invisible and are just used for color reference.

Let me know what you think.

Below is the code, attached is the .pla for MultiCharts.





 
Code
                            
// Big Mike Trading https://futures.io

// April 6 2010
// Indicator
// Plot 1, 2, 3, 4 should be "Invisible" and are used for color place holders only

inputs:
    
Length),
    
Smoothing );

variables:
    
var0) ;

var0 XAverage(XAverage(RSI(OBVLength), Smoothing), Smoothing) - 50;

Plot1var0"AboveRising" );
Plot2var0"AboveFalling" );
Plot3var0"BelowRising" );
Plot4var0"BelowFalling" );
Plot5var0"OBV"iff(var0>0iff(var0>var0[1], GetPlotColor(1), GetPlotColor(2)), iff(var0>var0[1], GetPlotColor(3), GetPlotColor(4))) );
Plot60"Zero" ); 
Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Attached Files
Register to download File Type: pla BMT OBV.pla (3.9 KB, 191 views)
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
The following 15 users say Thank You to Big Mike for this post:

Can you help answer these questions
from other members on futures io?
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-FIre
Trading: GC, ES
 
Posts: 73 since Mar 2010
Thanks: 40 given, 32 received


Nice!! Is there an ninja-version of this?

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,313 given, 97,574 received


phyzfer View Post
Nice!! Is there an ninja-version of this?

Yeah I wrote a couple for NT a while back, Elite only:




The first one is pretty similar to what I've written here for EasyLanguage, but it adds a simple calc for divergence. The second one is quite a bit different.

If you have any questions regarding them, please use those threads (not this one). This one is for the EasyLanguage version.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
Australia
 
Experience: Intermediate
Platform: Ninja
 
vast's Avatar
 
Posts: 167 since Jun 2009
Thanks: 154 given, 62 received

Mike
Are you using a simple EMA for the OBV? The EL is XAverage?
Also, are you using a period of 3 and smooth of 3? I tried this on a NT version and looked quite different.
Thanks for a great video
Regards

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,313 given, 97,574 received


vast View Post
Mike
Are you using a simple EMA for the OBV? The EL is XAverage?
Also, are you using a period of 3 and smooth of 3? I tried this on a NT version and looked quite different.
Thanks for a great video
Regards

XAverage = EMA.

Check the OBV code itself, I think that is where the difference lies between MC and NT.

Function: OBV

 
Code
                            
if BarType >= 2 then                              
    begin
    
if Close Close[1then 
        OBV 
OBV[1] + Volume 
    
else if Close Close[1then 
        OBV 
OBV[1] - Volume 
    
else 
        
OBV OBV[1] ;
    
end
else                                                                              
                                                                                 
    
begin
    
if Close Close[1then 
        OBV 
OBV[1] + Ticks 
    
else if Close Close[1then 
        OBV 
OBV[1] - Ticks 
    
else 
        
OBV OBV[1] ;
    
end 
Definition of "BarType":
 
Code
BarType
Returns a numerical value, indicating the resolution units of the data series that the study is applied to. 
 



Usage
BarType 

The following values are returned for each type of resolution units: 

  0 – Ticks (Ticks & Contracts)
  1 – Intra-Day (Seconds, Minutes, & Hours)
  2 – Days
  3 – Weeks
  4 – Months, Quarters, & Years
  5 – Points & Changes 
 



Example
Assign a value, indicating the resolution units of the data series that the study is applied to, to Value1 variable: 

Value1=BarType;
Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
The following 3 users say Thank You to Big Mike for this post:
 
(login for full post details)
  #7 (permalink)
Monterey Park
 
 
Posts: 1 since Aug 2010
Thanks: 0 given, 0 received

Nice, but can you add an OBV average line on the OBV chart?

Reply With Quote
 
(login for full post details)
  #8 (permalink)
vancouver bc canada
 
Experience: Intermediate
Platform: Multicharts
Trading: oil, gold, currency futures
 
Posts: 8 since Mar 2012
Thanks: 0 given, 3 received

This is a slightly modified version of BM_OBV which works with Renko & line break charts.

Attached Files
Register to download File Type: pla BMT_OBV.pla (6.3 KB, 29 views)
Reply With Quote
 
(login for full post details)
  #9 (permalink)
vancouver bc canada
 
Experience: Intermediate
Platform: Multicharts
Trading: oil, gold, currency futures
 
Posts: 8 since Mar 2012
Thanks: 0 given, 3 received

This is a slightly modified version of BM_OBV which works with Renko & line break charts.

PS: I just realized MC adapted their volume indicators to work with all types of tick charts with MC v8 RC which makes my modification unneccessary if you are using MC v8 RC and above but the mod is still useful for MC v8 beta2 and below.

Attached Files
Register to download File Type: pla BMT_OBV.pla (6.6 KB, 37 views)
Reply With Quote
 
(login for full post details)
  #10 (permalink)
memphis tn usa
 
 
Posts: 1 since Jun 2012
Thanks: 0 given, 0 received


Hello Big Mike
Is there any way to convert or re-right this code for obv indicator for trade station.

thanks
Kelly

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > EasyLanguage OBV On Balance Volume Indicator


Last Updated on November 1, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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