View Single Post
Old 2010-09-02, 11:00 AM   #550 (permalink)
rsmereka
Site Supporter
 
rsmereka's Avatar
 
Posts: 1,991
My Trading Journal


Trading Live with:
Forex Hacked(Copier), Forex Strategy CAD1(manual)
Default

Quote:
Originally Posted by carlprad View Post
Hi Rick

First I'd like to thank you for all of your help so far. You have saved me a lot of time and frustration.

I tried setting up the MT4Analysis by following the steps on the documentation page. Everything was going well until I needed to verify my database. I placed a copy of skeleton.db database in the db/mydb folder and renamed it "carl-demo.db". I then changed the constants.php file to the path

define('TRADE_PATH_LOCAL', '/wamp/www/db/mydb/carl-demo.db');

However, when I go to the configuration page, my database is not listed in the drop-down menu for the databases. Moreover, everything is read-only. Where am I going wrong?

Thanks
Carlos
Hi Carlos,

Your very close. That TRADE_PATH_LOCAL is a directory path not a file name. MT4Analysis can operate on any number of databases in a directory so TRADE_PATH_LOCAL needs to be the path to a directory. In your case (based on what you wrote) try:
Code:
define('TRADE_PATH_LOCAL', '/wamp/www/db/mydb');
MT4Analysis will scan the entire directory and pick up all the files and display them in the database file name drop down.

In regards to the database being read only, in the constants.php file near the top of the file are two lines:
Code:
define('IN_PRODUCTION', 0);
define('DATABASE_RO', 0);
Just make sure that on both lines after the comma, there is a zero.

BTW, I think questions and comments about MT4analysis should be posted to the MT4Analysis thread.

Rick
__________________
MyFXBook Live Statement Mt4Analysis

Last edited by rsmereka; 2010-09-02 at 11:06 AM.
rsmereka is offline   Reply With Quote