I've broken this thing down to it's basics. I'm trying this in the back tester just to see if the files get created. And nothing is happening. Anyone got any ideas? Note: it works live. But I've never had a problem writing in the back tester before. This has me confused.
Here's the code:
Here's the code:
Inserted Code
//+------------------------------------------------------------------+ //| Backtest log values.mq4 | //| Copyright © 2011, NonDisclosure | //| [url]http://no.link.yet[/url] | //+------------------------------------------------------------------+ #property copyright "Copyright © 2011, NonDisclosure" #property link "[url]http://no.link.yet[/url]" int varNorth=0, varSouth=0,varPeriod=3; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- varNorth=FileOpen("North.csv",FILE_CSV|FILE_WRITE,','); varSouth=FileOpen("South.csv",FILE_CSV|FILE_WRITE,','); FileWrite(varNorth,"Date","value"); FileWrite(varSouth,"Date","value"); Print("North: ",varNorth,". varSouth: ",varSouth); //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- FileClose(varNorth); FileClose(varSouth); //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { return(0); } //+------------------------------------------------------------------+