Read Write variable from text

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Read Write variable from text

Postby conjure » Tue Mar 13, 2018 4:57 pm

Hi i have started writing my own strategies and i have a question.
Is it possible to read variable from text,
and then and write variable to another text?

i tried some code i found on google for LUA

Code: Select all
   local file = io.open("example.txt", "w")
file:write("Lalala. Alvanaar is amazing.")
file:close()



but it does not work
conjure
 
Posts: 70
Joined: Sat Jul 22, 2017 7:27 am

Re: Read Write variable from text

Postby Apprentice » Wed Mar 14, 2018 5:17 pm

Code: Select all
require("storagedb");
    db = storagedb.get_db(name);


Will storagedb library suffice?

viewtopic.php?f=17&t=4360


Also see Rate_log.lua
http://74.52.98.35/code/viewtopic.php?f ... f&start=10
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18837
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 9 guests