Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   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

  0

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...
Stocks with an EPS Several Times Higher than the Industry Average...
Stocks with the highest Volume Increase
Trading Rules to use with the Trading System Optimizer
Consecutive Up and Down Bars - Works With Any Trading Indicator

How-to Lessons
How to create a chart with a black background
How to associate an index with a list of stocks
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...
How to automate the data downloading process

Related Forum Threads
Ranking System with Trading System Help, Revisited
problem with nse data
Creating Watchlist with Two Timeframes
How can I see charts with logarithmic scale on y-axis?
Issues with 'company_desc' object/database

Blog Posts
Working with the formula editor
Display several stock market charts with one click
Trading System: Buy stocks with the highest Sharpe ratio
Ranking stocks based on their correlation with the S&P 500 Index
Screening with the composite indicators









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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items