Click here to Login

                                                   Keyboard shortcut for previous layout


2021-02-15 23:34:36

QS has the keyboard shortcut for Next Layout with CTRL+ALT N. Is there any way to get a similar shortcut for Previous Layout?

2021-02-16 09:48:56


You can create a custom script to do that and assign a shortcut to it using the "Add Shortcut" button after selecting "Divers -> List of shortcuts".

The script should be created using "Tools -> Script Editor".

Something like this:

Global.SetVariable("layout_index", 0);
int index = (int)Global.GetVariable("layout_index");
string[] layouts = App.Main.GetLayoutNames();
App.Main.UpdateChartLayout(Charts.GetSelectedChartId(), layouts[index]);
index = index - 1;
if(index < 0)
index = layouts.Length - 1;
Global.SetVariable("layout_index", index);

2021-02-17 08:30:44


Thanks. Tried to work with this. It first goes to the last layout and then goes back to previous from there. I am not able to figure out how to make it go the previous layout of the currently selected layout.

2021-03-09 09:40:34


This is unfortunately not possible since there is no way to know which current layout is selected unless the script updates it itself.

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
S&P 500 Dividend Yield - Average data for S&P 500 Index Stocks
Historical Intraday Data for U.S. Stocks
Stock Bounces off its Previous Resistance or Support Line
Stop Loss for the N-first Trading Bars only
Time-series Sum for the first Minutes/Hours of a Trading Day

How-to Lessons
How to install the previous version of QuantShare
How to add future bars to plan for market scenarios
How to download earnings calendar data for various stocks
How to download EOD quotes for active and valid stocks only
How to get stocks for a particular index using the global script

Related Forum Threads
Keyboard command for time-frame change
Previous day value for indicator in Screener?
change layout
Charts not visible " No Quotes for any stock"
In-Sample and Out-Of-Sample Dates for Optimization

Blog Posts
Step by step on how to get free realtime/delayed data for stocks,...
Update Chart Layout based on Active Ticker Symbol - Part 2
6 New Ways to Download Free Intraday Data for the U.S. Stock Mark...
Update Chart Layout based on Active Time Frame
Update Chart Layout based on Active Ticker Symbol

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

Copyright 2021
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.