tradingview-assistant-chrome-extension icon indicating copy to clipboard operation
tradingview-assistant-chrome-extension copied to clipboard

Export/Import pitfalls

Open Jason5480 opened this issue 1 year ago • 8 comments

Hello @akumidv. I have heard quite a lot lately about your plugin and I was really interested in the export/import functionality it provides so I took the chance and gave it a try. So, I created a small "proof of concept" example that fits my needs and can be found here TradingView_Assistant_Proof_of_Concept.txt. As you might have guessed I had an unpleasant surprise when I found that none of the exported settings was able to be imported correctly. However, I can see the potential of what you are doing here and this is why I spent the time filling out this report. To be more specific on what I did, and how you can reproduce my findings after creating the code I posted above (you can copy-paste it into the "Pine Editor" directly and add it to your chart). Then, I opened the Settings/Input dialog and I changed the "Moving Average Length"s and the "Moving Average Color"s for both Fast and Slow. Then I changed the alert messages I want to receive for Long and Short positions. Then I moved to the Strategy/Properties setting and I set the commission to a better reflect my case. last b ut not least I went to the Settings/Style and unchecked some other options. You can find screenshots of the exact setup here. exported_inputs exported_properties exported_style

After filling in all of my settings I pressed the export button and the file produced by the tool was the following. TVA PoC.csv

Then I pressed the "Reset settings" to get the default back. I pressed the import button and used the previously exported file I attached previously. The result can be shown in the screenshots below. imported_inputs imported_properties imported_style

At this point, I want to thank you for providing this tool to the community and I really appreciate this open-source contribution. I am a big fan of the concept but I am also javascript illiterate :D By inspecting the *.csv file I came to the following conclusions and I would ask for your help/opinion on that matter.

  • Colors are not exported
  • Strings are not exported
  • Integers are exported but they are imported on reverse(random) order
  • Settings from the Properties, Style, and Visibility(?) tabs are not exported
  • Timestamps are not exported*

That's all I have for now! Let me know your thoughts on this.

Best, Jason

Edit: After creating the example I posted above I realized that I use time range filters very often in my scripts and usually I have two timestamps From and To. The pinescript code look like this:

` fromDateTime = input.time(defval = timestamp('01 Jan 2022 00:00'), title = 'From', group = 'Time Window')

toDateTime = input.time(defval = timestamp('01 Jan 2023 00:00'), title = 'To', group = 'Time Window') `

But those timestamps weren't exported either.

Jason5480 avatar Feb 16 '23 19:02 Jason5480