Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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