yes - you have solved my problem
I am sorry it has been a long drawn out process
Many, many thanks
Bob M
Dunedin, New Zealand
Type: Posts; User: BobM
yes - you have solved my problem
I am sorry it has been a long drawn out process
Many, many thanks
Bob M
Dunedin, New Zealand
yes - logfile is written to :)
bw.close(), fos.close() and osw.close()
you suggest I delete 2 of the above
do I leave all 3 flushes ?
in the onStart method in the strategy
logger = new BM_mod14.Logger(console, "", true, true, false);
output current:-
c:\Users\rgmat\Desktop>java logger.java
This is a test 2...
How does your code call the Logger class's constructor? What statements have: new Logger() in them?
Logger l = new Logger(new IConsole(), "BobsLog.txt", false, false, false
How does your code...
error: can't find main(String[]) method in class: IConsole
--- Update ---
[QUOTE=Norm;171051]Also these questions about how the Logger program is used in the Dukascopy environment:
Why do...
errors..........
c:\Users\rgmat\Desktop>javac logger.java
location: class Logger.IConsole
logger.java:113: error: non-static variable this cannot be referenced from a static context
...
current code
class Logger {
private IConsole console = null;
private String logFile = "C:/Users/Bob/Documents/BM_mod14.log";
private boolean info = true;
...
output 2 errors
c:\Users\rgmat\Desktop>javac logger.java
logger.java:5: error: illegal start of expression
private IConsole console = null;
^
logger.java:91: error: class,...
but running on the Dukascopy platform or as a stand alone program ?
--- Update ---
output
c:\Users\rgmat\Desktop>javac logger.java
logger.java:5: error: illegal start of expression
...
but running on the Dukascopy platform or as a stand alone program ?
I am confused as usual................
Are we running this on the Dukascopy platform
It seems we are with IConsole
but we need other Dukascopy components as well
or are we running a stand...
Am I correct in thinking that the 3 flushes and closes are the reason that the log file is gone by the time I go to look for it ?
Bob M
Thanks Norm
Will do
Bob M
Hi Norm
"Where is a main method for testing the code?"
Unsure what you mean - I am simply running the whole code
"What is printed on the console when the code is executed?"
The various INFO...
current code
class Logger {
private IConsole console = null;
private String logFile = "C:/Users/Bob/Documents/BM_mod10.log";
private boolean info ...
no - can't seem to produce the log
no exceptions !
currently INFO: messages appear on the console
Bob M
Have done !
Will see what the output is, if any, on Monday [today is Saturday here in NZ]
Bob M
Hi
Following is the user class Logger
class Logger {
private IConsole console = null;
private String logFile = "C:/Users/Bob/Documents/BM_mod12.log";
...
You were correct Norm,
Of all the many variables, only 3 have different values depending on the currency pair traded
One a boolean and the other two integer values
Now hard coded...........
All...
Norm
Thank you for expending so much energy in trying to unravel my brain
I need to go away and convince myself that removing the whole property concept and hard-coding the values results in...
re your second point:-
That is exactly what I have coded in the meantime
I have commented out all the put, get, containsKey code
and have a whole lot of variable = value lines
It is just...
That's where I am at a loss
All I understand is that I need to create a properties class which has 3 methods
putProperty(), getProperty() and containsKeyProperty()
The first should be identical...
[QUOTE=Norm;170906]Where is the variable: properties given a value? In other words: Where is it to the left of an =?
public class BM_mod10 implements IStrategy {
//
private ...
no
/**
* The subscription to instruments must be provided in onStart method. By
* default, Remote Server is not subscribing the strategy to any
* instruments.
*
...