NexusFi: Find Your Edge


Home Menu

 





Recover old indicators from xml file?


Discussion in ThinkOrSwim

Updated
    1. trending_up 860 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Recover old indicators from xml file?

(login for full post details)
  #1 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708

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:

 
Code
<_B5C9F7C9_54DF_4B0C_BD59_E24CCE136A1D CODE="ZGVjbGFyZSBsb3dlcjsKI0N0aWNrIGJ5IEBEYWxlYnJ1IDEwLzI0LzIwMTUKI0N1bXVsYXRpdmUgdGljawojQ2FuIHJlc2V0IHRvIHN0YXJ0IGF0IGJlZ2lubmluZyBvZiBEYXksIFdlZWssIE1vbnRoLCBZZWFyLCBDaGFydAojVGhhbmtzIHRvIGZ1dHVyZXMuaW8gQHJtZWppYSBmb3Igc2ltaWxhciBjb2RlIGluIFZXQVBfQmFuZHMKZGVjbGFyZSBsb3dlcjsKaW5wdXQgVGltZUZyYW1lID0ge2RlZmF1bHQgRGF5LCBXZWVrLCBNb250aCwgWWVhciwgQ2hhcnR9OwppbnB1dCBzeW1ib2wgPSAiJFRJQ0siOwpkZWYgaXNJbnZhbGlkID0gSXNOYU4oaGxjMyhzeW1ib2wpKTsKZGVmIHByaWNlID0gSWYgKGlzSW52YWxpZCwgMCwgaGxjMyhzeW1ib2wpKTsKaW5wdXQgc2hvd09ubHlUb2RheSA9IFlFUzsKaW5wdXQgYXZlUGVyaW9kMSA9IDEwOwppbn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Rhc2gyLlNldExpbmVXZWlnaHQoNSk7ClQyRGFzaDIuSGlkZVRpdGxlKCk7ClQyRGFzaDIuSGlkZUJ1YmJsZSgpOwoKaW5wdXQgbGVuZ3RoID0gMTA7CmlucHV0IGNvcnJlbGF0aW9uV2l0aFNlY3VyaXR5ID0gIlNQWCI7CgoKcGxvdCBDb3JyZWxhdGlvbiA9IENvcnJlbGF0aW9uKGNsb3NlKEN1bVRpY2spLCBjbG9zZShjb3JyZWxhdGlvbldpdGhTZWN1cml0eSksIGxlbmd0aCk7CkNvcnJlbGF0aW9uLlNldERlZmF1bHRDb2xvcihHZXRDb2xvcig1KSk7" CS="false" NAME="Correlation_mine_test" TYPE="I" UUID="_b5c9f7c9_54df_4b0c_bd59_e24cce136a1d" VERSION="57"/>

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Futures Close-Out Policy
Commodities
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Daytrading ES & NQ
32 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Retail Trading As An Industry
24 thanks
Battlestations: Show us your trading desks!
24 thanks

(login for full post details)
  #2 (permalink)
Afriend247
Los Angeles, California
 
Posts: 9 since Sep 2022
Thanks Given: 3
Thanks Received: 2

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.
Malthus View Post
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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BUQXZlMik7CgojICBDbG9zZSBBYm92ZSAyMDAgVGljawpkZWYgdGlja19jID0gY2xvc2UoIiRUSUNLIik7CmRlZiBUMlVwID0gdGlja19jID49IDIwMDsKZGVmIFQyRG93biA9IHRpY2tfYyA8PSAtMjAwOwoKcGxvdCBUMkRhc2gxID0gaWYgVDJVcCB0aGVuIDAgZWxzZSBEb3VibGUuTmFOOwpUMkRhc2gxLlNldFBhaW50aW5nU3RyYXRlZ3koUGFpbnRpbmdTdHJhdGVneS5TUVVBUkVTKTsKVDJEYXNoMS5TZXREZWZhdWx0Q29sb3IoQ29sb3IuR1JFRU4pOwpUMkRhc2gxLlNldExpbmVXZWlnaHQoNSk7ClQyRGFzaDEuSGlkZVRpdGxlKCk7ClQyRGFzaDEuSGlkZUJ1YmJsZSgpOwoKcGxvdCBUMkRhc2gyID0gaWYgVDJEb3duIHRoZW4gMCBlbHNlIERvdWJsZS5OYU47ClQyRGFzaDIuU2V0UGFpbnRpbmdTdHJhdGVneShQYWludGluZ1N0cmF0ZWd5LlNRVUFSRVMpOwpUMkRhc2gyLlNldERlZmF1bHRDb2xvcihDb2xvci5SRUQpOwpUMkRhc2gyLlNldExpbmVXZWlnaHQoNSk7ClQyRGFzaDIuSGlkZVRpdGxlKCk7ClQyRGFzaDIuSGlkZUJ1YmJsZSgpOwoKaW5wdXQgbGVuZ3RoID0gMTA7CmlucHV0IGNvcnJlbGF0aW9uV2l0aFNlY3VyaXR5ID0gIlNQWCI7CgoKcGxvdCBDb3JyZWxhdGlvbiA9IENvcnJlbGF0aW9uKGNsb3NlKEN1bVRpY2spLCBjbG9zZShjb3JyZWxhdGlvbldpdGhTZWN1cml0eSksIGxlbmd0aCk7CkNvcnJlbGF0aW9uLlNldERlZmF1bHRDb2xvcihHZXRDb2xvcig1KSk7" CS="false" NAME="Correlation_mine_test" TYPE="I" UUID="_b5c9f7c9_54df_4b0c_bd59_e24cce136a1d" VERSION="57"/>


Reply With Quote
The following user says Thank You to Afriend247 for this post:
(login for full post details)
  #3 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708



Afriend247 View Post
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.

Again, thanks!

Started this thread Reply With Quote
(login for full post details)
  #4 (permalink)
 
justtrader's Avatar
 justtrader 
San Francisco, CA
 
Experience: Intermediate
Platform: Ninja Trader, TOS
Trading: es, rty, cl, gc, nq, ym
Posts: 182 since May 2011
Thanks Given: 104
Thanks Received: 173

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:
&quot;# 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 &gt; 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);&quot;,name=&quot;EWosc3_10&quot;})}

Buena Suerte

JT



Malthus View Post
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)
Reply With Quote
The following user says Thank You to justtrader for this post:
(login for full post details)
  #5 (permalink)
 
Malthus's Avatar
 Malthus 
Madrid Spain
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Trading: ES
Posts: 251 since Oct 2014
Thanks Given: 1,252
Thanks Received: 708


justtrader View Post
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:
&quot;# 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 &gt; 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);&quot;,name=&quot;EWosc3_10&quot;})}

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.

Started this thread Reply With Quote





Last Updated on November 30, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts