How to store and load variables in file

Moderator: admin

How to store and load variables in file

Postby zilcho » Tue Sep 13, 2016 7:02 pm

Just a simple question. Is it possible to have my strategy write some variables to a separate file and subsequently read those variables in on the next initialization? Or any way, for that matter, to make a variable persist from one instance to the next?
zilcho
 
Posts: 7
Joined: Thu Jul 21, 2016 7:06 pm

Re: How to store and load variables in file

Postby Apprentice » Thu Sep 15, 2016 4:55 am

U can use Persistent Storage if record will be accessible to from TS.
http://www.fxcodebase.com/documents/Ind ... agedb.html
The storage library lets indicator or strategy save some data and then restore it when the indicator (or strategy) is created again.

Input and Output Facilities is option.
http://www.fxcodebase.com/documents/Ind ... index.html]


XML Parser is one of the options.
http://www.fxcodebase.com/documents/Ind ... t_xml.html
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: How to store and load variables in file

Postby zilcho » Fri Sep 16, 2016 3:29 am

Excellent! I think any of those could work for me. Thank you.
zilcho
 
Posts: 7
Joined: Thu Jul 21, 2016 7:06 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 8 guests