Click here to Login





                                                   Keyboard command for time-frame change

  0

0
Seeker
2014-01-24 15:16:34


Is there any keyboard command for changing chart time-frame? Also, for adding and reducing number of bars plotted as well as for scrolling the chart left and right.



QuantShare
2014-01-24 18:01:37

  0

You should create custom shortcuts for this:
http://www.quantshare.com/sa-565-custom-shortcuts-move-a-chart-to-display-the-last-quotes-data

For scrolling the chart left and right, use "Left/Right" keys.




Seeker
2014-02-01 06:36:01

  0

I have created the short-cuts for historical data with the code:

Charts.GetSelectedChart().TimeFrame=

Can we also refer to an intra-day time-frame using this simple code or does it require more definitions? I tried -3600 for hourlies but plots custom daily. Also, it would be good to have a quarterly time-frame also added in the available time-frames.

In plotfixed, the pane title goes too high and gets chopped. How to get the historical data to exclude any week-ends so that the plotfixed with dayofweek function do not show values for it.



QuantShare
2014-02-01 11:32:35

  0

For historical periods, type:

Chart chart = Charts.GetSelectedChart();
chart.IsHistorical = true;


Thanks for reporting the "plotfixed" issue. It will be fixed soon.



Seeker
2014-02-01 13:55:42

  0

Got it. thanks. Also, two queries related to plot fixed:

1) If the chart has occassional week-end data, how to plot it excluding week-ends (for historical)?
2) Similar to dayofweek and dayofmonth, a weekofmonth could be useful if want to plot a fixed chart showing the performance during each of the weeks of the month ( 1 to 5).

Lastly, about the quarterly time-frame.



QuantShare
2014-02-01 17:04:39

  -1

Best Answer
1/ You can count Saturdays and Sundays as Fridays
dw = dayofweek();
a = iff(dw == 6 || dw == 7, 5, dw);

2/ Download this function from here: Week of Month

3/ Quarterly time-frame: We will add this to the todo list





Week of Month (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

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
Intraday Data for NSE Stocks
Indicator -> Moving average -> Rate of change -> Trading rule
Extensive Fundamental Data for U.S. Stocks
Stop Loss for the N-first Trading Bars only
Year to Date Change Indicator

How-to Lessons
How to dynamically change the number of positions in a portfolio?
How to download EOD quotes for active and valid stocks only
How to get stocks for a particular index using the global script
How to get fundamental data for U.S. Stocks
How to download earnings calendar data for various stocks

Related Forum Threads
Keyboard shortcut for previous layout
Data time-frame
Custom Multi-Dimensional Fitness Formula (CMDFF) for Optimizer
Create and Export each database for each market
Black background charts ..how to change cross hairs colors?

Blog Posts
How to download the history of dividend payments for stocks in th...
How to Select the Best Market Indicator for your Trading System
Different Ticker Symbols for Each Data Source
Step by step on how to get free realtime/delayed data for stocks,...
10 ways to download historical stock quotes data for free









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 © 2024 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.