Click here to Login





                                                   Keyboard shortcut for previous layout

  0

0
Seeker
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?


QuantShare
2021-02-16 09:48:56

  0

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:

if(!Global.ContainsVariable("layout_index"))
{
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);




Seeker
2021-02-17 08:30:44

  0

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.


QuantShare
2021-03-09 09:40:34

  0

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
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
Open Interest Data for Equity, Index and Futures Securities
Morningstar Annual Fundamentals 2.0 for US and International Stoc...
Historical Intraday Data for U.S. Stocks
Stop Loss for the N-first Trading Bars only
Average Stock Performance for each U.S Exchange

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









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.