Click here to Login

                                                   Creating charts where the X axis is NOT tied to the time scale?


Josh McCormick
2020-07-27 10:51:36

I was wanting to create a chart where the X axis was not tied to the current timescale (or any timescale for that matter). How do I create that?

As a specific example, let's say the current symbol is SPY. I'd like to create a graph of the Volatility and Sharpe Ratio of the current symbol blended from 0 to 100% against TLT:

On the far left, we have 100% of the current symbol and 0% of TLT. At the center, we have 50% of the current symbol and 50% of TLT. At the far right, we have 100% of TLT. Across the graph we'd plot the Volatility and Sharpe Ratio of the synthetic blended asset.

Is this something QuantShare is capable of performing?

Thanks again,
Josh McCormick

2020-07-27 12:26:03


This is not something QuantShare can plot.

Josh McCormick
2020-07-27 15:07:08


Acknowledged. My fallback position would be to do the calculations, print them with Output() or OutputList(), and then pull the results from the text window.

Back to the graph... I can think of any number of things I'd lot to plot which aren't time-based. If you could take a feature request for static (non-scrolling) plots that aren't attached to a timeline, I'd appreciate it. (Absolutely no promises, right? I understand.)

2020-07-28 19:32:58


Best Answer
There is a PlotFixed function. Please check documentation for more information.

Josh McCormick
2020-07-30 23:17:03


Oh. Wait...
OH, I see! Thank you!

Example from the manual:
PlotFixed(iff(GapUp(), 1, iff(GapDown(), 2, 0)), 1, "", iCount, "Number of No Gaps - Gap Up - Gap Down", colorBlack, ChartBar, StyleSymbolNone);

X-Axis has three values and remains fixed while everything else scrolls. This is *perfect*, thank you!

No more messages


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"


Trading Items
Set the First Trading Bar Values to Not a Number
How far are the close prices from the support line
Foreign Exchange Value of the Dollar - Nominal Indexes
Estimation of the Hurst Exponent - Trading Indicator
Update the Industry Name of your U.S. Stocks

How-to Lessons
How to plot two different time frames in the same chart
How to calculate the average of a time series using the money man...
How to plot a time-series that do not update the chart scale
Difference between the watchlist and the screener tools
How to quickly download the most recent EOD data for your stocks

Related Forum Threads
How can i download additional data not within the standard time p...
Using multiple time frame in the real time version
STOP/Profit targets based on the indicator value at the time of e...
Where is the SMA?
Where are the changes of 2.4.1 listed?

Blog Posts
How to Adjust the Time Displayed in your Intraday Charts
Charting & Scripts - Manage stock charts using the global script
QuantShare Trading Software: New Features in the 3.4.3 Version
QuantShare Trading Software: New Features in the 3.4.0 Version
QuantShare Trading Software: New Features in the 3.4.2 Version

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2023
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.