Click here to Login





                                                   Fighting with charts.....

  0

0
Juliettpapa
2011-07-11 14:18:52


I can not center this chart. Not even with my smoothest mouse moves... :-)

http://screencast.com/t/lXWXQh2vR


Maybe you can add "center chart" buttons like these:

http://screencast.com/t/FqFDcfqnIbp

One for "short term", one for "long term" (customizable of course- maybe 20 bars and 100 bars......)



Regards
jp



QuantShare
2011-07-12 15:12:17

  1

Best Answer
This is because the lower bollinger band in your chart returns negative values. The log scale converts the min-scale value to 0.00001 by default.
Centering for log scales will be improved.

You can also update the min scale using the following function:
SetMinScale(0.5);

Or you can ignore scaling for bollinger bands:
plot1(up, down, "bb up", "bb down", colordarkred|22|colordarkred|32|298, colorgreen, colorred, chartline, stylesymbolnone|StyleNoScale);

Regarding the "long term" and "short term" buttons, you can add two shortcuts in the bookmark panel.

For example, the first shortcut will execute a script that updates the number of bars displayed in the current chart. (Tools -> Script Editor)

Chart chart = Charts.GetSelectedChart();
if(chart != null)
{
chart.ScrollBarNbQuotes = 2000;
}




Juliettpapa
2011-07-12 17:36:32

  0

Good tips above. But when using the 200bars and 2000bars buttons the result is not the best:

200 bars: chart must show LAST 200 bars
2000 bars: chart not centered (price, time) look: http://screencast.com/t/r6D4pQUWkqwW

Generally: When changing the value of bars displayed, the chart should center AND stretch itself to fit the time-price window best


Regards
jp



QuantShare
2011-07-13 07:51:24

  0

Add the following line to your script: (Just after "chart.ScrollBarNbQuotes")

chart.ScrollBarIndex = chart.NbQuotes;



Juliettpapa
2011-07-13 09:03:51

  0

Works! Thanks.

A "automatic center chart" would be helpful anyway.

Regards
jp



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Top 20 stocks with the highest 10 day rate of change - Current an...
Minimum Variance Optimization with Solver V1.1- AMM
Short Term Trading System with RSI Ratios
Enhanced Candlestick Chart with Volume Variation
Stock Correlation with its Industry - Change over time

How-to Lessons
How to create a chart with a black background
How to associate an index with a list of stocks
How to use QuantShare with Metastock data
How to screen for stocks having a high correlation with the Dow J...
How to speed up watchlist and screener plug-ins when working with...

Related Forum Threads
problem with nse data
Symbols with 0..9 in name
Ranking with respect to turnover
Need help with a MM Script
Help with Survivorship Bias Free DB

Blog Posts
Working with the formula editor
Create Realtime Quote Sheets with the Watchlist Tool
Industry Analysis - How to Compare Stocks with their Industries
How to measure market strength with the composite tool
Long Term Trading with Technical Analysis









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2025 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.