Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
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