Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I was hoping one of the members with thinkScript skills may be able to help me out. I want to put a label on a chart that displays the current session range for treasuries. I want it to display the range in the minimum movement in fractions.
So, if my label is on the 30yr then it will display the label "Session Range: 24" meaning a 24/32 tick range. I have included my script attempt below. I want to create a dashboard that will display the correct range for each contract type. So I need to divide the equivalent fraction decimal into the range.
I hope this is not confusing. So on my dashboard I would see something like:
Contract Range
/UB 31
/ZB 23
/ZN 1 05
I don't understand how to code the conditions, if getsymbol() = /ZB then contractTick = contractTick30yrBond
Then the range will be divided by the correct decimal to produce the tick count.
Your help would be greatly appreciated.
Ken
Can you help answer these questions from other members on NexusFi?
Thank you for the suggestion. I had kept digging and I eventually found a method of doing what I wanted using the "switch" command. I am putting the code here that I used for others who may want to do something similar. I won't lie, I do not fully understand how to use this command. I just looked at the example code and made it work for me.
won't work.
1st get the names right. To get the names,
click in the symbol entry box on the left
on the little window that opens, click on hen select more
then right click on any of the rows,
select more info
select fundamentals
then DETACH the window, so you don't have to reopen it.
In the window you can select any symbol, the symbol() name is next to the product