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 ="example.txt", "w")
file:write("Lalala. Alvanaar is amazing.")

but it does not work
Posts: 62
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
    db = storagedb.get_db(name);

Will storagedb library suffice?


Also see Rate_log.lua ... f&start=10
User avatar
FXCodeBase: Confirmed User
Posts: 18330
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 6 guests