TradingView
allanster
20 févr. 2023 16:00

How To Import And Offset CSV Data 

Bitcoin / United States DollarCoinbase

Description

Example method of how to import, offset, and plot ‎CSV data using an array.

NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Commentaires
KioseffTrading
When do I buy?!

Joking of course - great contribution allan!
allanster
@KioseffTrading, thank you for the encouragement and gift!
spiritedMaster43205
Thank you for your script, it was helpful.
I have a dataset that is bigger than the 999 datapoints allowed in the array. Any idea how to solve this?
spiritedMaster43205
@spiritedMaster43205, I found a solution, thanks.
sVm88
@spiritedMaster43205, what was the solution you found plot a dataset bigger than 999 datapoints? Thanks in advance!
A_Traders_Edge
Being as though it has a LOT better chance of being seen if it came from you, I will make a request for a script to solve a problem that Ive run into many the time. Using varip(obv) only allows you to see passing data and not historical but to see how well triggers are performing for a script using varip is impossible.....unless.....you can get the trigger of an alert to add the UNIX time of the trigger to a list that can then be pasted into an input to be populated into an array to allow historical signals to be shown to determine how well a varip script's triggers are historically performing. Could obv be extended to populate the historical data of an indicator that uses varip without having to watch the whole thing play out on the chart. idk....maybe its just me that has run into the issue multiple times, but if not, im sure many would find the information helpful.
allanster
@chasinalts, will consider when time permits.
Snifky
Thanks very much for the script, I haven't found any alternative yet.
Is it possible to use float values for input?
allanster
@Snifky, yes, but would require additional logic to properly format and feed the input data values to the array.
allanster
@Snifky, I published an example using an input that can be seen below:

tradingview.com/script/3K2yD4aY-How-To-Input-And-Offset-CSV-Data/
Plus