Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Data reading from file #465487
04/30/17 13:31
04/30/17 13:31
Joined: Dec 2016
Posts: 43
F
Fiber Offline OP
Newbie
Fiber  Offline OP
Newbie
F

Joined: Dec 2016
Posts: 43
Hello,

Any ideas, why I can not read data from file? Export is ok, file created with values.

Code:
function run()
{	
	set(PLOTNOW);
	LookBack = 140;
  	vars Price = series(priceClose());
  	vars Trend = series(EMA(Price,100));
	vars TrendImport = series(0);
	print(TO_CSV,"%.4fn",Trend[0]);
	plot ("Trend", Trend,NEW,BLUE);
	file_read ("Log\WriteAndRead.csv", TrendImport, 0);
	plot ("TrendImport", TrendImport,NEW,RED);
}


Re: Data reading from file [Re: Fiber] #465597
05/05/17 13:37
05/05/17 13:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You need to store the data in the same format that you want to read. But you're storing it as text and reading it as variable - that can't work.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1