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)
Hi, I would appreciate if someone can help me with this.
I haven't used ToS for the last 3 years (and my account was deleted due to no longer being available in my country) but I decided to use it again. However, backups did not work as intended and now I only have some xml files to work with to recover some old indicators.
One of the files seems to register the indicators, but the "code" is just a long sentence of gibberish. Does someone know how (if) I can translate it back to thinkscript code?
Here is one example for the indicator "Correlation_mine_test" as named in the end of the code:
Can you help answer these questions from other members on NexusFi?
IMO, no way to recover this. Looks a lot like opening a PDF file on a text program like notepad. I MAY be able to help if you knew the formulas or names of the indicators you were using.
IMO, no way to recover this. Looks a lot like opening a PDF file on a text program like notepad. I MAY be able to help if you knew the formulas or names of the indicators you were using.
Thanks for the comment. Unfortunately, I only have the names (which are at the end of the string of text). I thought TS might have translated it to another type of code like hex or something, but as you say there is probably no way to recover it.
Your indicators most likely will be embedded in the workspace file. Each time you modify the indicator it embeds the old and the new version.
You will need parse it and extract the area of interest where you indicator is.
Example of workspace file name:
workspace.owwnd31gf2yxmrs.tos.prod
Example of embedded indicator snippet:
"# THREE TEN OSCILLATOR\n# Last Update 06 APR 2009\n\ndeclare lower;\n\ninput price = close;\n\ndef SMA3 = average(price, 3);\ndef SMA10 = average(price, 10);\n\ndef osc = SMA3-SMA10;\ndef ave = average(osc, 16);\n\nplot deltaHistogram = osc-ave;\ndeltaHistogram.setPaintingStrategy(paintingStrategy.HISTOGRAM);\ndeltaHistogram.assignValueColor(if deltaHistogram > 0 then color.green else color.red);\ndeltaHistogram.hide();\n\nplot osc310 = osc;\nosc310.setDefaultColor(color.red);\n\nplot ave16 = ave;\nave16.setDefaultColor(color.cyan);\n\nplot zero = 0;\nzero.setDefaultColor(color.white);",name="EWosc3_10"})}
Buena Suerte
JT
Malthus
Thanks for the comment. Unfortunately, I only have the names (which are at the end of the string of text). I thought TS might have translated it to another type of code like hex or something, but as you say there is probably no way to recover it.
Again, thanks!
TWYS NWYT(Price Advertises Opportunity; Time Regulates it; Volume Measures its Success/Failure ---- Dalton)
Your indicators most likely will be embedded in the workspace file. Each time you modify the indicator it embeds the old and the new version.
You will need parse it and extract the area of interest where you indicator is.
Example of workspace file name:
workspace.owwnd31gf2yxmrs.tos.prod
Example of embedded indicator snippet:
"# THREE TEN OSCILLATOR\n# Last Update 06 APR 2009\n\ndeclare lower;\n\ninput price = close;\n\ndef SMA3 = average(price, 3);\ndef SMA10 = average(price, 10);\n\ndef osc = SMA3-SMA10;\ndef ave = average(osc, 16);\n\nplot deltaHistogram = osc-ave;\ndeltaHistogram.setPaintingStrategy(paintingStrategy.HISTOGRAM);\ndeltaHistogram.assignValueColor(if deltaHistogram > 0 then color.green else color.red);\ndeltaHistogram.hide();\n\nplot osc310 = osc;\nosc310.setDefaultColor(color.red);\n\nplot ave16 = ave;\nave16.setDefaultColor(color.cyan);\n\nplot zero = 0;\nzero.setDefaultColor(color.white);",name="EWosc3_10"})}
Buena Suerte
JT
Really good idea, thanks!
Apparently either the indicators were not embedded in the file or not with the original names. I'll extract all indicators and see if any of them correspond to the ones I lost.