Variable Bar Width Study - Sierra Chart | futures io social day trading
futures io futures trading


Variable Bar Width Study
Updated: Views / Replies:622 / 0
Created: by josh Attachments:3

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Variable Bar Width Study

  #1 (permalink)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received

Variable Bar Width Study

One of the biggest pet peeves I have is when I change the bar width on a chart, and study/indicator bars do not change with it. It's one thing I miss about Investor R/T, my volume bars would always resize when I change my bar spacing on the chart, and would basically be the maximum size they could be without running together.

So, a while back I wrote a simple SC study that would accomplish the same thing, and after seeing someone's chart today with squished up volume bars (that would be @GaryD ), I thought I would compile it and share it.

So to do this, put the DLL in your Sierra Data folder (and if you like, put the source in the ACS_Source folder too). When you want to add a study that has bars as the draw type and want them to change dynamically with the bar spacing of your chart, add the study and make it invisible. Then add this custom study (it should be under the Variable Bar Width category which you can change by modifying the SCDLLName() call at the top of the source file and recompiling). In the study parameters, have "Based On" set to your study that you just hid, and be sure it's in the correct region, and that scale settings are appropriate as well.

By default, the study bars will be as wide as they can be and should have only a small space between them. When you compress the bars, the study bars will compress to maintain this spacing. However, if you wish to make the bars a little narrower, change the Offset study input to a negative number and this reduced bar width (additional spacing) will be maintained as you resize the bar spacing on the chart.

I have also included a study collection file that you can put in your Data folder as well, that has the settings preset for volume, so that if you choose Analysis->Vol, you will have a dynamically changing Volume study.

The study enables "update always" which means that whatever you update interval is set to in your general settings, this chart will update always at that interval, regardless of whether you have data coming in or not. This is so it works instantly, and will work correctly if you are using it on the weekend for example, when markets are closed and no data is coming in to update the chart. Honestly I don't think there is a performance hit for normal use, because data comes in usually at much faster than the update interval, and SC capped the update interval at 100ms for "update always" functionality anyway, so it's really not that big of a deal IMO.

As a disclaimer, this works fine for me, but I take no responsibility if you add it and something goes wrong

Attached Files
Register to download File Type: dll VariableBarWidth.dll (12.5 KB, 23 views)
Register to download File Type: stdycollct Vol-.StdyCollct (15.2 KB, 19 views)
Register to download File Type: cpp VariableBarWidth.cpp (871 Bytes, 26 views)
Reply With Quote
The following 8 users say Thank You to josh for this post:

Reply



futures io > > > > Variable Bar Width Study

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Color bar study always outputting 0 to spreadsheet study vegasfoster Sierra Chart 2 January 3rd, 2013 01:30 PM
A Case Study in Custom Bar Types rk142 The Elite Circle 59 September 20th, 2012 10:24 AM
[SC] Overlay a study, but only at bar open Nicolas11 Sierra Chart Programming 3 August 13th, 2012 09:59 AM
PAINT BAR STUDY gparkis NinjaTrader Programming 2 February 16th, 2012 08:22 PM
Variable Bar Chart DavidHP Traders Hideout 0 December 4th, 2009 04:53 PM


All times are GMT -4. The time now is 05:54 PM.

Copyright © 2017 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
Page generated 2017-12-12 in 0.07 seconds with 20 queries on phoenix via your IP 54.167.44.32